From: Roland Haeder Date: Fri, 18 Sep 2015 07:12:12 +0000 (+0200) Subject: Added all missing fields (from database) + updated jar X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=58a5fd8188e9d5f294e14783595137550e85fb08;p=jshop-core.git Added all missing fields (from database) + updated jar Signed-off-by:Roland Häder --- diff --git a/lib/jcore.jar b/lib/jcore.jar index 84fd55c..12190be 100644 Binary files a/lib/jcore.jar and b/lib/jcore.jar differ diff --git a/src/org/mxchange/jshopcore/model/customer/Customer.java b/src/org/mxchange/jshopcore/model/customer/Customer.java index 5cf92d3..792d639 100644 --- a/src/org/mxchange/jshopcore/model/customer/Customer.java +++ b/src/org/mxchange/jshopcore/model/customer/Customer.java @@ -16,6 +16,7 @@ */ package org.mxchange.jshopcore.model.customer; +import java.sql.Timestamp; import org.mxchange.jcore.model.contact.Contact; /** @@ -39,6 +40,48 @@ public interface Customer extends Contact { */ public long getContactId(); + /** + * Getter for confirmation key + * + * @return Confirmation key + */ + public String getCustomerConfirmKey (); + + /** + * Setter for confirmation key + * + * @param customerConfirmKey Confirmation key + */ + public void setCustomerConfirmKey (final String customerConfirmKey); + + /** + * Getter for "created" timestamp + * + * @return "created" timestamp + */ + public Timestamp getCustomerCreated (); + + /** + * Setter for "created" timestamp + * + * @param customerCreated "created" timestamp + */ + public void setCustomerCreated (final Timestamp customerCreated); + + /** + * Getter for "locked" timestamp + * + * @return "locked" timestamp + */ + public Timestamp getCustomerLocked (); + + /** + * Getter for "locked" timestamp + * + * @param customerLocked "locked" timestamp + */ + public void setCustomerLocked (final Timestamp customerLocked); + /** * Setter for customer number * @@ -52,4 +95,32 @@ public interface Customer extends Contact { * @return Customer number */ public String getCustomerNumber (); + + /** + * Getter for password hash + * + * @return Password hash + */ + public String getCustomerPasswordHash (); + + /** + * Setter for password hash + * + * @param customerPasswordHash Password hash + */ + public void setCustomerPasswordHash (final String customerPasswordHash); + + /** + * Getter for account status + * + * @return Account status + */ + public String getCustomerStatus (); + + /** + * Setter for account status + * + * @param customerStatus Account status + */ + public void setCustomerStatus (final String customerStatus); } diff --git a/src/org/mxchange/jshopcore/model/customer/ShopCustomer.java b/src/org/mxchange/jshopcore/model/customer/ShopCustomer.java index 7ed3df9..509c06c 100644 --- a/src/org/mxchange/jshopcore/model/customer/ShopCustomer.java +++ b/src/org/mxchange/jshopcore/model/customer/ShopCustomer.java @@ -16,6 +16,7 @@ */ package org.mxchange.jshopcore.model.customer; +import java.sql.Timestamp; import org.mxchange.jcore.model.contact.BaseContact; /** @@ -29,6 +30,21 @@ public class ShopCustomer extends BaseContact implements Customer { */ private long contactId; + /** + * Confirmation key + */ + private String customerConfirmKey; + + /** + * "created" timestamp + */ + private Timestamp customerCreated; + + /** + * "locked" timestamp + */ + private Timestamp customerLocked; + /** * Customer number, this is different to the database entry id. */ @@ -39,6 +55,16 @@ public class ShopCustomer extends BaseContact implements Customer { */ private static final long serialVersionUID = 4_328_454_581_751L; + /** + * Password hash + */ + private String customerPasswordHash; + + /** + * Account status + */ + private String customerStatus; + @Override public long getContactId () { return this.contactId; @@ -49,6 +75,36 @@ public class ShopCustomer extends BaseContact implements Customer { this.contactId = contactId; } + @Override + public String getCustomerConfirmKey () { + return this.customerConfirmKey; + } + + @Override + public void setCustomerConfirmKey (final String customerConfirmKey) { + this.customerConfirmKey = customerConfirmKey; + } + + @Override + public Timestamp getCustomerCreated () { + return this.customerCreated; + } + + @Override + public void setCustomerCreated (final Timestamp customerCreated) { + this.customerCreated = customerCreated; + } + + @Override + public Timestamp getCustomerLocked () { + return this.customerLocked; + } + + @Override + public void setCustomerLocked (final Timestamp customerLocked) { + this.customerLocked = customerLocked; + } + @Override public String getCustomerNumber () { return this.customerNumber; @@ -58,4 +114,24 @@ public class ShopCustomer extends BaseContact implements Customer { public void setCustomerNumber (final String customerNumber) { this.customerNumber = customerNumber; } + + @Override + public String getCustomerPasswordHash () { + return this.customerPasswordHash; + } + + @Override + public void setCustomerPasswordHash (final String customerPasswordHash) { + this.customerPasswordHash = customerPasswordHash; + } + + @Override + public String getCustomerStatus () { + return this.customerStatus; + } + + @Override + public void setCustomerStatus (final String customerStatus) { + this.customerStatus = customerStatus; + } }