KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > lutris > airsent > spec > customer > Customer


1 /*
2  * Copyright (c) 1999-2001 Lutris Technologies, Inc. All Rights
3  * Reserved.
4  *
5  * This source code file is distributed by Lutris Technologies, Inc. for
6  * use only by licensed users of product(s) that include this source
7  * file. Use of this source file or the software that uses it is covered
8  * by the terms and conditions of the Lutris Enhydra Development License
9  * Agreement included with this product.
10  *
11  * This Software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF
12  * ANY KIND, either express or implied. See the License for the specific terms
13  * governing rights and limitations under the License.
14  *
15  * Contributor(s):
16  *
17  * $Id: Customer.java,v 1.1 2004/08/16 09:33:18 slobodan Exp $
18  */

19
20 package com.lutris.airsent.spec.customer;
21
22 import com.lutris.airsent.spec.AirSentException;
23 import com.lutris.airsent.spec.address.Address;
24
25 /**
26  * Interface Customer
27  *
28  *
29  * @author joseph shoop
30  * @version %I%, %G%
31  */

32 public interface Customer extends java.io.Serializable JavaDoc {
33
34     /**
35      * maximum size for business
36      */

37     public static final int MAX_BUSINESS = 64;
38
39     /**
40      * maximum size for login
41      */

42     public static final int MAX_LOGIN = 64;
43
44     /**
45      * maximum size for password
46      */

47     public static final int MAX_PASSWORD = 64;
48
49     /**
50      * maximum size for first name
51      */

52     public static final int MAX_FIRST_NAME = 32;
53
54     /**
55      * maximum size for last name
56      */

57     public static final int MAX_LAST_NAME = 32;
58
59     /**
60      * maximum size for email address
61      */

62     public static final int MAX_EMAIL = 32;
63
64     /**
65      * Gets the customer handle.
66      *
67      * @return database id
68      * @exception if an error occurs
69      */

70     public String JavaDoc getHandle()
71         throws AirSentException;
72
73     /**
74      * Gets the first name.
75      *
76      * @exception if an error occurs
77      */

78     public String JavaDoc getFirstName()
79         throws AirSentException;
80
81     /**
82      * Sets the first name.
83      *
84      * @exception if an error occurs
85      */

86     public void setFirstName(String JavaDoc first)
87         throws AirSentException;
88
89     /**
90      * Gets the last name.
91      *
92      * @return last name
93      * @exception if an error occurs
94      */

95     public String JavaDoc getLastName()
96         throws AirSentException;
97
98     /**
99      * Set the last name.
100      *
101      * @param last last name
102      * @exception if an error occurs
103      */

104     public void setLastName(String JavaDoc last)
105         throws AirSentException;
106
107     /**
108      * Gets the email.
109      *
110      * @return email address
111      * @exception if an error occurs
112      */

113     public String JavaDoc getEmail()
114         throws AirSentException;
115
116     /**
117      * Sets the email.
118      *
119      * @param email email address
120      * @exception if an error occurs
121      */

122     public void setEmail(String JavaDoc email)
123         throws AirSentException;
124
125     /**
126      * Gets the address.
127      *
128      * @return address
129      * @exception if an error occurs
130      */

131     public Address getAddress()
132         throws AirSentException;
133
134     /**
135      * Gets the business.
136      *
137      * @return business
138      * @exception if an error occurs
139      */

140     public String JavaDoc getBusiness()
141         throws AirSentException;
142
143     /**
144      * Sets the business.
145      *
146      * @param business business
147      * @exception if an error occurs
148      */

149     public void setBusiness(String JavaDoc business)
150         throws AirSentException;
151
152     /**
153      * Gets the login.
154      *
155      * @return login name
156      * @exception if an error occurs
157      */

158     public String JavaDoc getLogin()
159         throws AirSentException;
160
161     /**
162      * Sets the login.
163      *
164      * @param login login name
165      * @exception if an error occurs
166      */

167     public void setLogin(String JavaDoc login)
168         throws AirSentException;
169
170     /**
171      * Gets the password.
172      *
173      * @return password
174      * @exception if an error occurs
175      */

176     public String JavaDoc getPassword()
177         throws AirSentException;
178
179     /**
180      * Sets the password.
181      *
182      * @param password password
183      * @exception if an error occurs
184      */

185     public void setPassword(String JavaDoc password)
186         throws AirSentException;
187
188     /**
189      * Saves the customer.
190      *
191      * @exception if an error occurs
192      */

193     public void save()
194         throws AirSentException;
195
196     /**
197      * Deletes the customer.
198      *
199      * @exception if an error occurs
200      */

201     public void delete()
202         throws AirSentException;
203 }
204
205
Popular Tags