*/
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;
* @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
*/
*/
private String street;
+ /**
+ * When the contact has been updated
+ */
+ private Timestamp updated;
+
/**
* ZIP code
*/
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
this.street = street;
}
+ @Override
+ public Timestamp getUpdated () {
+ return this.updated;
+ }
+
+ @Override
+ public void setUpdated (final Timestamp updated) {
+ this.updated = updated;
+ }
+
/**
* ZIP code
*
package org.mxchange.jcore.model.contact;
import java.io.Serializable;
+import java.sql.Timestamp;
import org.mxchange.jcore.model.contact.gender.Gender;
/**
* @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);
}