]> git.mxchange.org Git - jcustomer-core.git/commitdiff
Added all missing fields (from database) + updated jar
authorRoland Haeder <roland@mxchange.org>
Fri, 18 Sep 2015 07:12:12 +0000 (09:12 +0200)
committerRoland Haeder <roland@mxchange.org>
Fri, 18 Sep 2015 07:12:12 +0000 (09:12 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

lib/jcore.jar
src/org/mxchange/jshopcore/model/customer/Customer.java
src/org/mxchange/jshopcore/model/customer/ShopCustomer.java

index 84fd55cbf297f4759a11f63539e65fa2d8a7b388..12190beef63bed67f80a91b64eeee71aede608fc 100644 (file)
Binary files a/lib/jcore.jar and b/lib/jcore.jar differ
index 5cf92d3e7f42997c36039482ecf1976e3f341968..792d639e37f24be2d0b21d409cf5428bcab95a51 100644 (file)
@@ -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);
 }
index 7ed3df971019f5b91f14767c424b2d57ef343520..509c06cc1ee5d285ff39c15cd89eaa7988355816 100644 (file)
@@ -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;
+       }
 }