2 * Copyright (C) 2015 Roland Haeder
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 package org.mxchange.jshopcore.model.customer;
19 import java.sql.Timestamp;
20 import org.mxchange.jcore.model.contact.BaseContact;
23 * A shop customer class.
25 * @author Roland Haeder<roland@mxchange.org>
27 public class ShopCustomer extends BaseContact implements Customer {
29 * Id number from "contact" table
31 private long contactId;
36 private String customerConfirmKey;
41 private Timestamp customerCreated;
46 private Timestamp customerLocked;
49 * Customer number, this is different to the database entry id.
51 private String customerNumber;
56 private static final long serialVersionUID = 4_328_454_581_751L;
61 private String customerPasswordHash;
66 private String customerStatus;
69 public long getContactId () {
70 return this.contactId;
74 public void setContactId (final long contactId) {
75 this.contactId = contactId;
79 public String getCustomerConfirmKey () {
80 return this.customerConfirmKey;
84 public void setCustomerConfirmKey (final String customerConfirmKey) {
85 this.customerConfirmKey = customerConfirmKey;
89 public Timestamp getCustomerCreated () {
90 return this.customerCreated;
94 public void setCustomerCreated (final Timestamp customerCreated) {
95 this.customerCreated = customerCreated;
99 public Timestamp getCustomerLocked () {
100 return this.customerLocked;
104 public void setCustomerLocked (final Timestamp customerLocked) {
105 this.customerLocked = customerLocked;
109 public String getCustomerNumber () {
110 return this.customerNumber;
114 public void setCustomerNumber (final String customerNumber) {
115 this.customerNumber = customerNumber;
119 public String getCustomerPasswordHash () {
120 return this.customerPasswordHash;
124 public void setCustomerPasswordHash (final String customerPasswordHash) {
125 this.customerPasswordHash = customerPasswordHash;
129 public String getCustomerStatus () {
130 return this.customerStatus;
134 public void setCustomerStatus (final String customerStatus) {
135 this.customerStatus = customerStatus;