]> git.mxchange.org Git - jcore.git/commitdiff
updated fields created and updated
authorRoland Haeder <roland@mxchange.org>
Fri, 18 Sep 2015 06:49:49 +0000 (08:49 +0200)
committerRoland Haeder <roland@mxchange.org>
Fri, 18 Sep 2015 06:49:49 +0000 (08:49 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

src/org/mxchange/jcore/model/contact/BaseContact.java
src/org/mxchange/jcore/model/contact/Contact.java

index f978e67efd9ae148524356b2df197aab361ec0dd..0fb4d495b8e1ab51a6dedf0f90e0c245caf20127 100644 (file)
@@ -16,6 +16,7 @@
  */
 package org.mxchange.jcore.model.contact;
 
+import java.sql.Timestamp;
 import java.util.Objects;
 import org.mxchange.jcore.client.Client;
 import org.mxchange.jcore.model.contact.gender.Gender;
@@ -26,12 +27,17 @@ import org.mxchange.jcore.model.contact.gender.Gender;
  * @author Roland Haeder<roland@mxchange.org>
  * @version 0.0
  */
-public abstract class BaseContact implements Contact, Comparable<Contact> {
+public class BaseContact implements Contact, Comparable<Contact> {
        /**
         * Serial number
         */
        private static final long serialVersionUID = 58_744_284_981_863L;
 
+       /**
+        * When the contact has been created
+        */
+       private Timestamp created;
+
        /**
         * Id number
         */
@@ -112,6 +118,11 @@ public abstract class BaseContact implements Contact, Comparable<Contact> {
         */
        private String street;
 
+       /**
+        * When the contact has been updated
+        */
+       private Timestamp updated;
+
        /**
         * ZIP code
         */
@@ -253,6 +264,16 @@ public abstract class BaseContact implements Contact, Comparable<Contact> {
                this.companyName = companyName;
        }
 
+       @Override
+       public Timestamp getCreated () {
+               return this.created;
+       }
+
+       @Override
+       public void setCreated (final Timestamp created) {
+               this.created = created;
+       }
+
        /**
         * Id number
         * @return the id
@@ -452,6 +473,16 @@ public abstract class BaseContact implements Contact, Comparable<Contact> {
                this.street = street;
        }
 
+       @Override
+       public Timestamp getUpdated () {
+               return this.updated;
+       }
+
+       @Override
+       public void setUpdated (final Timestamp updated) {
+               this.updated = updated;
+       }
+
        /**
         * ZIP code
         *
index 15d497efb2d58049bb077022a7f1fd990d12ed3c..33fbe37c3c5af8ff07919c0ad1822572b5b5483a 100644 (file)
@@ -17,6 +17,7 @@
 package org.mxchange.jcore.model.contact;
 
 import java.io.Serializable;
+import java.sql.Timestamp;
 import org.mxchange.jcore.model.contact.gender.Gender;
 
 /**
@@ -260,4 +261,32 @@ public interface Contact extends Serializable {
         * @param ownContact Own contact
         */
        public void setOwnContact (final Boolean ownContact);
+
+       /**
+        * Getter for "created" timestamp
+        *
+        * @return "created" timestamp
+        */
+       public Timestamp getCreated ();
+
+       /**
+        * Setter for "created" timestamp
+        *
+        * @param created "created" timestamp
+        */
+       public void setCreated (final Timestamp created);
+
+       /**
+        * Getter for "updated" timestamp
+        *
+        * @return "updated" timestamp
+        */
+       public Timestamp getUpdated ();
+
+       /**
+        * Getter for "updated" timestamp
+        *
+        * @param updated "updated" timestamp
+        */
+       public void setUpdated (final Timestamp updated);
 }