]> git.mxchange.org Git - jcustomer-core.git/blob - src/org/mxchange/jshopcore/model/customer/ShopCustomer.java
509c06cc1ee5d285ff39c15cd89eaa7988355816
[jcustomer-core.git] / src / org / mxchange / jshopcore / model / customer / ShopCustomer.java
1 /*
2  * Copyright (C) 2015 Roland Haeder
3  *
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.
8  *
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.
13  *
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/>.
16  */
17 package org.mxchange.jshopcore.model.customer;
18
19 import java.sql.Timestamp;
20 import org.mxchange.jcore.model.contact.BaseContact;
21
22 /**
23  * A shop customer class.
24  *
25  * @author Roland Haeder<roland@mxchange.org>
26  */
27 public class ShopCustomer extends BaseContact implements Customer {
28         /**
29          * Id number from "contact" table
30          */
31         private long contactId;
32
33         /**
34          * Confirmation key
35          */
36         private String customerConfirmKey;
37
38         /**
39          * "created" timestamp
40          */
41         private Timestamp customerCreated;
42
43         /**
44          * "locked" timestamp
45          */
46         private Timestamp customerLocked;
47
48         /**
49          * Customer number, this is different to the database entry id.
50          */
51         private String customerNumber;
52
53         /**
54          * Serial number
55          */
56         private static final long serialVersionUID = 4_328_454_581_751L;
57
58         /**
59          * Password hash
60          */
61         private String customerPasswordHash;
62
63         /**
64          * Account status
65          */
66         private String customerStatus;
67
68         @Override
69         public long getContactId () {
70                 return this.contactId;
71         }
72
73         @Override
74         public void setContactId (final long contactId) {
75                 this.contactId = contactId;
76         }
77
78         @Override
79         public String getCustomerConfirmKey () {
80                 return this.customerConfirmKey;
81         }
82
83         @Override
84         public void setCustomerConfirmKey (final String customerConfirmKey) {
85                 this.customerConfirmKey = customerConfirmKey;
86         }
87
88         @Override
89         public Timestamp getCustomerCreated () {
90                 return this.customerCreated;
91         }
92
93         @Override
94         public void setCustomerCreated (final Timestamp customerCreated) {
95                 this.customerCreated = customerCreated;
96         }
97
98         @Override
99         public Timestamp getCustomerLocked () {
100                 return this.customerLocked;
101         }
102
103         @Override
104         public void setCustomerLocked (final Timestamp customerLocked) {
105                 this.customerLocked = customerLocked;
106         }
107
108         @Override
109         public String getCustomerNumber () {
110                 return this.customerNumber;
111         }
112
113         @Override
114         public void setCustomerNumber (final String customerNumber) {
115                 this.customerNumber = customerNumber;
116         }
117
118         @Override
119         public String getCustomerPasswordHash () {
120                 return this.customerPasswordHash;
121         }
122
123         @Override
124         public void setCustomerPasswordHash (final String customerPasswordHash) {
125                 this.customerPasswordHash = customerPasswordHash;
126         }
127
128         @Override
129         public String getCustomerStatus () {
130                 return this.customerStatus;
131         }
132
133         @Override
134         public void setCustomerStatus (final String customerStatus) {
135                 this.customerStatus = customerStatus;
136         }
137 }