From fb044df83735aa2e292ff02830d78dece04595ed Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Fri, 22 Apr 2016 14:17:25 +0200 Subject: [PATCH] added timestamp when a cellphone, land-line or fax number has been updated --- .../jphone/phonenumbers/DialableNumber.java | 15 +++++++++++++++ .../phonenumbers/cellphone/CellphoneNumber.java | 17 +++++++++++++++++ .../jphone/phonenumbers/fax/FaxNumber.java | 17 +++++++++++++++++ .../phonenumbers/landline/LandLineNumber.java | 17 +++++++++++++++++ 4 files changed, 66 insertions(+) diff --git a/src/org/mxchange/jphone/phonenumbers/DialableNumber.java b/src/org/mxchange/jphone/phonenumbers/DialableNumber.java index 5996101..b0b9de3 100644 --- a/src/org/mxchange/jphone/phonenumbers/DialableNumber.java +++ b/src/org/mxchange/jphone/phonenumbers/DialableNumber.java @@ -96,4 +96,19 @@ public interface DialableNumber extends Serializable { * @param phoneEntryCreated Timestamp when this entry has been created */ void setPhoneEntryCreated (final Calendar phoneEntryCreated); + + /** + * Getter for timestamp when this entry has been updated + *

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

+ * @param phoneEntryUpdated Timestamp when this entry has been updated + */ + void setPhoneEntryUpdated (final Calendar phoneEntryUpdated); + } diff --git a/src/org/mxchange/jphone/phonenumbers/cellphone/CellphoneNumber.java b/src/org/mxchange/jphone/phonenumbers/cellphone/CellphoneNumber.java index 75856e5..0f5b727 100644 --- a/src/org/mxchange/jphone/phonenumbers/cellphone/CellphoneNumber.java +++ b/src/org/mxchange/jphone/phonenumbers/cellphone/CellphoneNumber.java @@ -68,6 +68,13 @@ public class CellphoneNumber implements DialableCellphoneNumber { @Column (name = "cellphone_entry_created", nullable = false, updatable = false) private Calendar phoneEntryCreated; + /** + * Timestamp when this entry has been created + */ + @Temporal (TemporalType.TIMESTAMP) + @Column (name = "phone_entry_updated", updatable = false) + private Calendar phoneEntryUpdated; + /** * Id number */ @@ -184,6 +191,16 @@ public class CellphoneNumber implements DialableCellphoneNumber { this.phoneEntryCreated = phoneEntryCreated; } + @Override + public Calendar getPhoneEntryUpdated () { + return this.phoneEntryUpdated; + } + + @Override + public void setPhoneEntryUpdated (final Calendar phoneEntryUpdated) { + this.phoneEntryUpdated = phoneEntryUpdated; + } + @Override public Long getPhoneId () { return this.phoneId; diff --git a/src/org/mxchange/jphone/phonenumbers/fax/FaxNumber.java b/src/org/mxchange/jphone/phonenumbers/fax/FaxNumber.java index 45022e1..dc469d0 100644 --- a/src/org/mxchange/jphone/phonenumbers/fax/FaxNumber.java +++ b/src/org/mxchange/jphone/phonenumbers/fax/FaxNumber.java @@ -74,6 +74,13 @@ public class FaxNumber implements DialableFaxNumber { @Column (name = "fax_entry_created", nullable = false, updatable = false) private Calendar phoneEntryCreated; + /** + * Timestamp when this entry has been created + */ + @Temporal (TemporalType.TIMESTAMP) + @Column (name = "phone_entry_updated", updatable = false) + private Calendar phoneEntryUpdated; + /** * Id number */ @@ -182,6 +189,16 @@ public class FaxNumber implements DialableFaxNumber { this.phoneEntryCreated = phoneEntryCreated; } + @Override + public Calendar getPhoneEntryUpdated () { + return this.phoneEntryUpdated; + } + + @Override + public void setPhoneEntryUpdated (final Calendar phoneEntryUpdated) { + this.phoneEntryUpdated = phoneEntryUpdated; + } + @Override public Long getPhoneId () { return this.phoneId; diff --git a/src/org/mxchange/jphone/phonenumbers/landline/LandLineNumber.java b/src/org/mxchange/jphone/phonenumbers/landline/LandLineNumber.java index 17ab3f0..b3a2fb1 100644 --- a/src/org/mxchange/jphone/phonenumbers/landline/LandLineNumber.java +++ b/src/org/mxchange/jphone/phonenumbers/landline/LandLineNumber.java @@ -74,6 +74,13 @@ public class LandLineNumber implements DialableLandLineNumber { @Column (name = "phone_entry_created", nullable = false, updatable = false) private Calendar phoneEntryCreated; + /** + * Timestamp when this entry has been created + */ + @Temporal (TemporalType.TIMESTAMP) + @Column (name = "phone_entry_updated", updatable = false) + private Calendar phoneEntryUpdated; + /** * Id number */ @@ -182,6 +189,16 @@ public class LandLineNumber implements DialableLandLineNumber { this.phoneEntryCreated = phoneEntryCreated; } + @Override + public Calendar getPhoneEntryUpdated () { + return this.phoneEntryUpdated; + } + + @Override + public void setPhoneEntryUpdated (final Calendar phoneEntryUpdated) { + this.phoneEntryUpdated = phoneEntryUpdated; + } + @Override public Long getPhoneId () { return this.phoneId; -- 2.39.5