001: /*
002: * Copyright (c) 1999-2001 Lutris Technologies, Inc. All Rights
003: * Reserved.
004: *
005: * This source code file is distributed by Lutris Technologies, Inc. for
006: * use only by licensed users of product(s) that include this source
007: * file. Use of this source file or the software that uses it is covered
008: * by the terms and conditions of the Lutris Enhydra Development License
009: * Agreement included with this product.
010: *
011: * This Software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF
012: * ANY KIND, either express or implied. See the License for the specific terms
013: * governing rights and limitations under the License.
014: *
015: * Contributor(s):
016: *
017: * $Id: Customer.java,v 1.1 2006-09-11 12:29:26 sinisa Exp $
018: */
019:
020: package com.lutris.airsent.spec.customer;
021:
022: import com.lutris.airsent.spec.AirSentException;
023: import com.lutris.airsent.spec.address.Address;
024:
025: /**
026: * Interface Customer
027: *
028: *
029: * @author joseph shoop
030: * @version %I%, %G%
031: */
032: public interface Customer extends java.io.Serializable {
033:
034: /**
035: * maximum size for business
036: */
037: public static final int MAX_BUSINESS = 64;
038:
039: /**
040: * maximum size for login
041: */
042: public static final int MAX_LOGIN = 64;
043:
044: /**
045: * maximum size for password
046: */
047: public static final int MAX_PASSWORD = 64;
048:
049: /**
050: * maximum size for first name
051: */
052: public static final int MAX_FIRST_NAME = 32;
053:
054: /**
055: * maximum size for last name
056: */
057: public static final int MAX_LAST_NAME = 32;
058:
059: /**
060: * maximum size for email address
061: */
062: public static final int MAX_EMAIL = 32;
063:
064: /**
065: * Gets the customer handle.
066: *
067: * @return database id
068: * @exception if an error occurs
069: */
070: public String getHandle() throws AirSentException;
071:
072: /**
073: * Gets the first name.
074: *
075: * @exception if an error occurs
076: */
077: public String getFirstName() throws AirSentException;
078:
079: /**
080: * Sets the first name.
081: *
082: * @exception if an error occurs
083: */
084: public void setFirstName(String first) throws AirSentException;
085:
086: /**
087: * Gets the last name.
088: *
089: * @return last name
090: * @exception if an error occurs
091: */
092: public String getLastName() throws AirSentException;
093:
094: /**
095: * Set the last name.
096: *
097: * @param last last name
098: * @exception if an error occurs
099: */
100: public void setLastName(String last) throws AirSentException;
101:
102: /**
103: * Gets the email.
104: *
105: * @return email address
106: * @exception if an error occurs
107: */
108: public String getEmail() throws AirSentException;
109:
110: /**
111: * Sets the email.
112: *
113: * @param email email address
114: * @exception if an error occurs
115: */
116: public void setEmail(String email) throws AirSentException;
117:
118: /**
119: * Gets the address.
120: *
121: * @return address
122: * @exception if an error occurs
123: */
124: public Address getAddress() throws AirSentException;
125:
126: /**
127: * Gets the business.
128: *
129: * @return business
130: * @exception if an error occurs
131: */
132: public String getBusiness() throws AirSentException;
133:
134: /**
135: * Sets the business.
136: *
137: * @param business business
138: * @exception if an error occurs
139: */
140: public void setBusiness(String business) throws AirSentException;
141:
142: /**
143: * Gets the login.
144: *
145: * @return login name
146: * @exception if an error occurs
147: */
148: public String getLogin() throws AirSentException;
149:
150: /**
151: * Sets the login.
152: *
153: * @param login login name
154: * @exception if an error occurs
155: */
156: public void setLogin(String login) throws AirSentException;
157:
158: /**
159: * Gets the password.
160: *
161: * @return password
162: * @exception if an error occurs
163: */
164: public String getPassword() throws AirSentException;
165:
166: /**
167: * Sets the password.
168: *
169: * @param password password
170: * @exception if an error occurs
171: */
172: public void setPassword(String password) throws AirSentException;
173:
174: /**
175: * Saves the customer.
176: *
177: * @exception if an error occurs
178: */
179: public void save() throws AirSentException;
180:
181: /**
182: * Deletes the customer.
183: *
184: * @exception if an error occurs
185: */
186: public void delete() throws AirSentException;
187: }
|