From: Roland Häder Date: Thu, 16 Apr 2020 16:50:33 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b27ed8e01e70fa4944fc6427ea1f5c02a3e56898;p=jphone-core.git Continued: - added field providerEntryUpdated Signed-off-by: Roland Häder --- 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 *