From b27ed8e01e70fa4944fc6427ea1f5c02a3e56898 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Thu, 16 Apr 2020 18:50:33 +0200 Subject: [PATCH] Continued: - added field providerEntryUpdated MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../mobileprovider/CellphoneProvider.java | 19 +++++++++++++++++++ .../mobileprovider/MobileProvider.java | 14 ++++++++++++++ 2 files changed, 33 insertions(+) diff --git a/src/org/mxchange/jphone/model/phonenumbers/mobileprovider/CellphoneProvider.java b/src/org/mxchange/jphone/model/phonenumbers/mobileprovider/CellphoneProvider.java index 5b2c976..7e474e3 100644 --- a/src/org/mxchange/jphone/model/phonenumbers/mobileprovider/CellphoneProvider.java +++ b/src/org/mxchange/jphone/model/phonenumbers/mobileprovider/CellphoneProvider.java @@ -80,6 +80,13 @@ public class CellphoneProvider implements MobileProvider { @Column (name = "provider_entry_created", nullable = false, updatable = false) private Date providerEntryCreated; + /** + * Timestamp when this entry has been created + */ + @Temporal (TemporalType.TIMESTAMP) + @Column (name = "provider_entry_updated", insertable = false) + private Date providerEntryUpdated; + /** * Id number */ @@ -237,6 +244,18 @@ public class CellphoneProvider implements MobileProvider { this.providerEntryCreated = providerEntryCreated; } + @Override + @SuppressWarnings ("ReturnOfDateField") + public Date getProviderEntryUpdated () { + return this.providerEntryUpdated; + } + + @Override + @SuppressWarnings ("AssignmentToDateFieldFromParameter") + public void setProviderEntryUpdated (final Date providerEntryUpdated) { + this.providerEntryUpdated = providerEntryUpdated; + } + @Override public Long getProviderId () { return this.providerId; diff --git a/src/org/mxchange/jphone/model/phonenumbers/mobileprovider/MobileProvider.java b/src/org/mxchange/jphone/model/phonenumbers/mobileprovider/MobileProvider.java index f7c7127..0a0fa61 100644 --- a/src/org/mxchange/jphone/model/phonenumbers/mobileprovider/MobileProvider.java +++ b/src/org/mxchange/jphone/model/phonenumbers/mobileprovider/MobileProvider.java @@ -97,6 +97,20 @@ public interface MobileProvider extends Comparable, Serializable */ void setProviderEntryCreated (final Date providerEntryCreated); + /** + * Getter for timestamp when this entry has been updated + *

+ * @return Timestamp when this entry has been updated + */ + Date getProviderEntryUpdated (); + + /** + * Setter for timestamp when this entry has been updated + *

+ * @param providerEntryUpdated Timestamp when this entry has been updated + */ + void setProviderEntryUpdated (final Date providerEntryUpdated); + /** * Getter for pattern for mail gateway *

-- 2.39.5