X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2Forg%2Fmxchange%2Fjshopcore%2Fmodel%2Fcustomer%2FCustomer.java;h=d2bd2b356744ba42ad66cdb9e0eb3bd971be99c9;hb=2f41e66470201a3057be8757cc53f737d53e2c82;hp=d2b4f7662d74490f2765f2bcf2fcc60fffb415d4;hpb=a0d2c0c322d140424078c0a812fc294bdab54c67;p=jproduct-core.git diff --git a/src/org/mxchange/jshopcore/model/customer/Customer.java b/src/org/mxchange/jshopcore/model/customer/Customer.java index d2b4f76..d2bd2b3 100644 --- a/src/org/mxchange/jshopcore/model/customer/Customer.java +++ b/src/org/mxchange/jshopcore/model/customer/Customer.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2015 Roland Haeder + * Copyright (C) 2016 Roland Haeder * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -17,131 +17,139 @@ package org.mxchange.jshopcore.model.customer; import java.io.Serializable; -import org.mxchange.jcore.model.contact.Contact; +import java.util.Calendar; +import org.mxchange.jcontacts.contact.Contact; +import org.mxchange.jshopcore.model.customer.status.CustomerAccountStatus; /** * A customer interface - * + *

* @author Roland Haeder */ public interface Customer extends Serializable { /** * Copies all attributes from other customer object to this - * + *

* @param customer Source instance */ - public void copyAll (final Customer customer); + void copyAll (final Customer customer); /** - * Setter for contact instance - * - * @param contact Contact instance + * Getter for contact instance + *

+ * @return Contact id number */ - public void setContact (final Contact contact); + Contact getContact (); /** - * Getter for contact instance - * - * @return Contact id number + * Setter for contact instance + *

+ * @param contact Contact instance */ - public Contact getContact(); + void setContact (final Contact contact); /** * Getter for confirmation key - * + *

* @return Confirmation key */ - public String getCustomerConfirmKey (); + String getCustomerConfirmKey (); /** * Setter for confirmation key - * + *

* @param customerConfirmKey Confirmation key */ - public void setCustomerConfirmKey (final String customerConfirmKey); + void setCustomerConfirmKey (final String customerConfirmKey); /** * Getter for "created" timestamp - * + *

* @return "created" timestamp */ - public String getCustomerCreated (); + Calendar getCustomerCreated (); /** * Setter for "created" timestamp - * + *

* @param customerCreated "created" timestamp */ - public void setCustomerCreated (final String customerCreated); + void setCustomerCreated (final Calendar customerCreated); + + /** + * Getter for customer id number + *

+ * @return Customer id number + */ + Long getCustomerId (); + + /** + * Settte for customer id number + *

+ * @param customerId Customer id number + */ + void setCustomerId (final Long customerId); /** * Getter for "locked" timestamp - * + *

* @return "locked" timestamp */ - public String getCustomerLocked (); + Calendar getCustomerLocked (); /** * Getter for "locked" timestamp - * + *

* @param customerLocked "locked" timestamp */ - public void setCustomerLocked (final String customerLocked); + void setCustomerLocked (final Calendar customerLocked); /** - * Setter for customer number - * - * @param customerNumber Customer number + * Getter for customer number + *

+ * @return Customer number */ - public void setCustomerNumber (final String customerNumber); + String getCustomerNumber (); /** - * Getter for customer number - * - * @return Customer number + * Setter for customer number + *

+ * @param customerNumber Customer number */ - public String getCustomerNumber (); + void setCustomerNumber (final String customerNumber); /** * Getter for password hash - * + *

* @return Password hash */ - public String getCustomerPasswordHash (); + String getCustomerPasswordHash (); /** * Setter for password hash - * + *

* @param customerPasswordHash Password hash */ - public void setCustomerPasswordHash (final String customerPasswordHash); + void setCustomerPasswordHash (final String customerPasswordHash); /** * Getter for account status - * + *

* @return Account status */ - public String getCustomerStatus (); + CustomerAccountStatus getCustomerAccountStatus (); /** * Setter for account status - * + *

* @param customerStatus Account status */ - public void setCustomerStatus (final String customerStatus); + void setCustomerAccountStatus (final CustomerAccountStatus customerStatus); - /** - * Getter for customer id number - * - * @return Customer id number - */ - public Long getCustomerId (); + @Override + boolean equals (final Object object); - /** - * Settte for customer id number - * - * @param customerId Customer id number - */ - public void setCustomerId (final Long customerId); + @Override + int hashCode (); }