]> git.mxchange.org Git - jphone-core.git/commitdiff
added timestamp when a cellphone, land-line or fax number has been updated
authorRoland Häder <roland@mxchange.org>
Fri, 22 Apr 2016 12:17:25 +0000 (14:17 +0200)
committerRoland Häder <roland@mxchange.org>
Fri, 22 Apr 2016 12:17:25 +0000 (14:17 +0200)
src/org/mxchange/jphone/phonenumbers/DialableNumber.java
src/org/mxchange/jphone/phonenumbers/cellphone/CellphoneNumber.java
src/org/mxchange/jphone/phonenumbers/fax/FaxNumber.java
src/org/mxchange/jphone/phonenumbers/landline/LandLineNumber.java

index 5996101f5ae30614f562017ef7599a4d6210228d..b0b9de338a880baa0ada2efb7a2828bef93c3450 100644 (file)
@@ -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
+        * <p>
+        * @return Timestamp when this entry has been updated
+        */
+       Calendar getPhoneEntryUpdated ();
+
+       /**
+        * Setter for timestamp when this entry has been updated
+        * <p>
+        * @param phoneEntryUpdated Timestamp when this entry has been updated
+        */
+       void setPhoneEntryUpdated (final Calendar phoneEntryUpdated);
+
 }
index 75856e53d91abc5dc1ce1af46864d7f25600f4af..0f5b7275ff8e35246c6cba5e2de2908c51417e15 100644 (file)
@@ -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;
index 45022e1eaed1ab7e92f6838b46e5d6d221577aed..dc469d0d27f164262b0c05c3c74754e692ecb992 100644 (file)
@@ -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;
index 17ab3f0aafc4019bb45efb5891ad95ddf010b642..b3a2fb1cda7653e8e2dfb4a4592d2bfe3323d04b 100644 (file)
@@ -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;