KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > ebank > util > CustomerDetails


1 /*
2  * Copyright (c) 2004 Sun Microsystems, Inc. All rights reserved. U.S.
3  * Government Rights - Commercial software. Government users are subject
4  * to the Sun Microsystems, Inc. standard license agreement and
5  * applicable provisions of the FAR and its supplements. Use is subject
6  * to license terms.
7  *
8  * This distribution may include materials developed by third parties.
9  * Sun, Sun Microsystems, the Sun logo, Java and J2EE are trademarks
10  * or registered trademarks of Sun Microsystems, Inc. in the U.S. and
11  * other countries.
12  *
13  * Copyright (c) 2004 Sun Microsystems, Inc. Tous droits reserves.
14  *
15  * Droits du gouvernement americain, utilisateurs gouvernementaux - logiciel
16  * commercial. Les utilisateurs gouvernementaux sont soumis au contrat de
17  * licence standard de Sun Microsystems, Inc., ainsi qu'aux dispositions
18  * en vigueur de la FAR (Federal Acquisition Regulations) et des
19  * supplements a celles-ci. Distribue par des licences qui en
20  * restreignent l'utilisation.
21  *
22  * Cette distribution peut comprendre des composants developpes par des
23  * tierces parties. Sun, Sun Microsystems, le logo Sun, Java et J2EE
24  * sont des marques de fabrique ou des marques deposees de Sun
25  * Microsystems, Inc. aux Etats-Unis et dans d'autres pays.
26  */

27
28
29 package com.sun.ebank.util;
30
31
32 /**
33  * This class holds the details of a customer entity.
34  * It contains getters and setters for each variable.
35  */

36 public class CustomerDetails implements java.io.Serializable JavaDoc {
37     private String JavaDoc customerId;
38     private String JavaDoc lastName;
39     private String JavaDoc firstName;
40     private String JavaDoc middleInitial;
41     private String JavaDoc street;
42     private String JavaDoc city;
43     private String JavaDoc state;
44     private String JavaDoc zip;
45     private String JavaDoc phone;
46     private String JavaDoc email;
47
48     public CustomerDetails(String JavaDoc customerId, String JavaDoc lastName,
49         String JavaDoc firstName, String JavaDoc middleInitial, String JavaDoc street, String JavaDoc city,
50         String JavaDoc state, String JavaDoc zip, String JavaDoc phone, String JavaDoc email) {
51         this.customerId = customerId;
52         this.lastName = lastName;
53         this.firstName = firstName;
54         this.middleInitial = middleInitial;
55         this.street = street;
56         this.city = city;
57         this.state = state;
58         this.zip = zip;
59         this.phone = phone;
60         this.email = email;
61     }
62
63     // getters
64
public String JavaDoc getCustomerId() {
65         return customerId;
66     }
67
68     public String JavaDoc getLastName() {
69         return lastName;
70     }
71
72     public String JavaDoc getFirstName() {
73         return firstName;
74     }
75
76     public String JavaDoc getMiddleInitial() {
77         return middleInitial;
78     }
79
80     public String JavaDoc getStreet() {
81         return street;
82     }
83
84     public String JavaDoc getCity() {
85         return city;
86     }
87
88     public String JavaDoc getState() {
89         return state;
90     }
91
92     public String JavaDoc getZip() {
93         return zip;
94     }
95
96     public String JavaDoc getPhone() {
97         return phone;
98     }
99
100     public String JavaDoc getEmail() {
101         return email;
102     }
103
104     // setters
105
public void setCustomerId(String JavaDoc customerId) {
106         this.customerId = customerId;
107     }
108
109     public void setLastName(String JavaDoc lastName) {
110         this.lastName = lastName;
111     }
112
113     public void setFirstName(String JavaDoc firstName) {
114         this.firstName = firstName;
115     }
116
117     public void setMiddleInitial(String JavaDoc middleInitial) {
118         this.middleInitial = middleInitial;
119     }
120
121     public void setStreet(String JavaDoc street) {
122         this.street = street;
123     }
124
125     public void setCity(String JavaDoc city) {
126         this.city = city;
127     }
128
129     public void setState(String JavaDoc state) {
130         this.state = state;
131     }
132
133     public void setZip(String JavaDoc zip) {
134         this.zip = zip;
135     }
136
137     public void setPhone(String JavaDoc phone) {
138         this.phone = phone;
139     }
140
141     public void setEmail(String JavaDoc email) {
142         this.email = email;
143     }
144 }
145  // CustomerDetails
146
Popular Tags