]> git.mxchange.org Git - jcore.git/blobdiff - src/org/mxchange/jcore/model/contact/Contact.java
JPA started
[jcore.git] / src / org / mxchange / jcore / model / contact / Contact.java
index abc887909c60c4cae78d9d0992817c7ea9572bd7..8cbc93db20a5f289d7dadead864562f4d9c3551e 100644 (file)
 package org.mxchange.jcore.model.contact;
 
 import java.io.Serializable;
-import org.mxchange.jcore.client.Client;
+import java.sql.Timestamp;
+import java.util.Date;
 import org.mxchange.jcore.model.contact.gender.Gender;
 
 /**
  * A general contact interface
  *
- * @author Roland Haeder
+ * @author Roland Haeder<roland@mxchange.org>
  */
 public interface Contact extends Serializable {
-       /**
-        * Some "getter" for translated gender of the contact
-        *
-        * @return Translated / human-readable gender
-        */
-       public String getTranslatedGender ();
-
        /**
         * Id number
         * @return the contactId
         */
-       public Long getContactId ();
+       public Long getId ();
 
        /**
         * Id number
-        * @param contactId the contactId to set
+        * @param id the contactId to set
         */
-       public void setContactId (final Long contactId);
+       public void setId (final Long id);
 
        /**
         * Gender of the contact
@@ -88,14 +82,14 @@ public interface Contact extends Serializable {
        public void setFamilyName (final String familyName);
 
        /**
-        * Companyname
+        * Company name
         *
         * @return the companyName
         */
        public String getCompanyName ();
 
        /**
-        * Companyname
+        * Company name
         *
         * @param companyName the companyName to set
         */
@@ -232,14 +226,14 @@ public interface Contact extends Serializable {
         *
         * @return the birthday
         */
-       public String getBirthday ();
+       public Date getBirthday ();
 
        /**
         * Birth day
         *
         * @param birthday the birthday to set
         */
-       public void setBirthday (final String birthday);
+       public void setBirthday (final Date birthday);
 
        /**
         * Comments
@@ -260,12 +254,40 @@ public interface Contact extends Serializable {
         *
         * @return Own data?
         */
-       public boolean isOwnContact ();
+       public Boolean isOwnContact ();
+
+       /**
+        * Setter for own contact
+        *
+        * @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 ();
 
        /**
-        * Shows the contact to the user
+        * Getter for "updated" timestamp
         *
-        * @param client Client instance to call back
+        * @param updated "updated" timestamp
         */
-       public void show (final Client client);
+       public void setUpdated (final Timestamp updated);
 }