001: // Customer.java
002:
003: package org.objectweb.jonas.stests.appli;
004:
005: import java.rmi.RemoteException;
006: import javax.ejb.EJBObject;
007:
008: /**
009: * Customer remote interface
010: */
011: public interface Customer extends EJBObject {
012:
013: /**
014: * Get the customer ID.
015: * <p>
016: * @return String
017: * @exception java.rmi.RemoteException Remote exception
018: */
019: /*------------------------------------------------------------------*/
020: public Integer getCustomerID() throws RemoteException;
021:
022: /*------------------------------------------------------------------*/
023: /**
024: * Get the customer first name.
025: * <p>
026: * @return String
027: * @exception java.rmi.RemoteException Remote exception
028: */
029: /*------------------------------------------------------------------*/
030: public String getFirstName() throws RemoteException;
031:
032: /*------------------------------------------------------------------*/
033: /**
034: * Set the customer first name.
035: * <p>
036: * @param fn Customer first name <i>(Mandatory)</i>
037: * @return void
038: * @exception java.rmi.RemoteException Remote exception
039: */
040: /*------------------------------------------------------------------*/
041: public void setFirstName(String fn) throws RemoteException;
042:
043: /*------------------------------------------------------------------*/
044: /**
045: * Get the customer last name.
046: * <p>
047: * @return String
048: * @exception java.rmi.RemoteException Remote exception
049: */
050: /*------------------------------------------------------------------*/
051: public String getLastName() throws RemoteException;
052:
053: /*------------------------------------------------------------------*/
054: /**
055: * Set the customer last name.
056: * <p>
057: * @param ln Customer last name <i>(Mandatory)</i>
058: * @return void
059: * @exception java.rmi.RemoteException Remote exception
060: */
061: /*------------------------------------------------------------------*/
062: public void setLastName(String ln) throws RemoteException;
063:
064: /*------------------------------------------------------------------*/
065: /**
066: * Get the customer middle initials.
067: * <p>
068: * @return String
069: * @exception java.rmi.RemoteException Remote exception
070: */
071: /*------------------------------------------------------------------*/
072: public String getMiddleInitials() throws RemoteException;
073:
074: /*------------------------------------------------------------------*/
075: /**
076: * Set the customer initials.
077: * <p>
078: * @param mi Customer middle initial <i>(Mandatory)</i>
079: * @return void
080: * @exception java.rmi.RemoteException Remote exception
081: */
082: /*------------------------------------------------------------------*/
083: public void setMiddleInitials(String mi) throws RemoteException;
084:
085: /*------------------------------------------------------------------*/
086: /**
087: * Get the customer phone number.
088: * <p>
089: * @return String
090: * @exception java.rmi.RemoteException Remote exception
091: */
092: /*------------------------------------------------------------------*/
093: public String getPhone() throws RemoteException;
094:
095: /*------------------------------------------------------------------*/
096: /**
097: * Set the customer phone number.
098: * <p>
099: * @param phone Customer phone number <i>(Mandatory)</i>
100: * @return void
101: * @exception java.rmi.RemoteException Remote exception
102: */
103: /*------------------------------------------------------------------*/
104: public void setPhone(String phone) throws RemoteException;
105:
106: /*------------------------------------------------------------------*/
107: /**
108: * Get the customer's address line 1.
109: * <p>
110: * @return String
111: * @exception java.rmi.RemoteException Remote exception
112: */
113: /*------------------------------------------------------------------*/
114: public String getAddressLine1() throws RemoteException;
115:
116: /*------------------------------------------------------------------*/
117: /**
118: * Set the customer's address line 1.
119: * <p>
120: * @param line Customer address line 1 <i>(Mandatory)</i>
121: * @return void
122: * @exception java.rmi.RemoteException Remote exception
123: */
124: /*------------------------------------------------------------------*/
125: public void setAddressLine1(String line) throws RemoteException;
126:
127: /*------------------------------------------------------------------*/
128: /**
129: * Get the customer's address line 2.
130: * <p>
131: * @return String
132: * @exception java.rmi.RemoteException Remote exception
133: */
134: /*------------------------------------------------------------------*/
135: public String getAddressLine2() throws RemoteException;
136:
137: /*------------------------------------------------------------------*/
138: /**
139: * Set the customer's address line 2.
140: * <p>
141: * @param line Customer address line 2 <i>(Mandatory)</i>
142: * @return void
143: * @exception java.rmi.RemoteException Remote exception
144: */
145: /*------------------------------------------------------------------*/
146: public void setAddressLine2(String line) throws RemoteException;
147:
148: /*------------------------------------------------------------------*/
149: /**
150: * Get the customer's mailing address city.
151: * <p>
152: * @return String
153: * @exception java.rmi.RemoteException Remote exception
154: */
155: /*------------------------------------------------------------------*/
156: public String getCity() throws RemoteException;
157:
158: /*------------------------------------------------------------------*/
159: /**
160: * Set the customer's mailing address city.
161: * <p>
162: * @param city Customer city <i>(Mandatory)</i>
163: * @return void
164: * @exception java.rmi.RemoteException Remote exception
165: */
166: /*------------------------------------------------------------------*/
167: public void setCity(String city) throws RemoteException;
168:
169: /*------------------------------------------------------------------*/
170: /**
171: * Get the customer's mailing address state.
172: * <p>
173: * @return String
174: * @exception java.rmi.RemoteException Remote exception
175: */
176: /*------------------------------------------------------------------*/
177: public String getState() throws RemoteException;
178:
179: /*------------------------------------------------------------------*/
180: /**
181: * Set the customer's mailing address state.
182: * <p>
183: * @param state Customer state <i>(Mandatory)</i>
184: * @return void
185: * @exception java.rmi.RemoteException Remote exception
186: */
187: /*------------------------------------------------------------------*/
188: public void setState(String state) throws RemoteException;
189:
190: /*------------------------------------------------------------------*/
191: /**
192: * Get the customer's mailing address zip code.
193: * <p>
194: * @return String
195: * @exception java.rmi.RemoteException Remote exception
196: */
197: /*------------------------------------------------------------------*/
198: public String getZip() throws RemoteException;
199:
200: /*------------------------------------------------------------------*/
201: /**
202: * Set the customer's mailing address zip code.
203: * <p>
204: * @param zip Customer zip code <i>(Mandatory)</i>
205: * @return void
206: * @exception java.rmi.RemoteException Remote exception
207: */
208: /*------------------------------------------------------------------*/
209: public void setZip(String zip) throws RemoteException;
210:
211: /*------------------------------------------------------------------*/
212: /**
213: * Get the customer's total outstanding balance.
214: * <p>
215: * @return String
216: * @exception java.rmi.RemoteException Remote exception
217: */
218: /*------------------------------------------------------------------*/
219: public float getBalance() throws RemoteException;
220:
221: /*------------------------------------------------------------------*/
222: /**
223: * Set the customer's total outstanding balance.
224: * <p>
225: * @param balance Customer total outstanding balance <i>(Mandatory)</i>
226: * @return void
227: * @exception java.rmi.RemoteException Remote exception
228: */
229: /*------------------------------------------------------------------*/
230: public void setBalance(float balance) throws RemoteException;
231:
232: /*------------------------------------------------------------------*/
233: /**
234: * Get the customer's year-to-date outstanding balance.
235: * <p>
236: * @return String
237: * @exception java.rmi.RemoteException Remote exception
238: */
239: /*------------------------------------------------------------------*/
240: public float getYearToDateBalance() throws RemoteException;
241:
242: /*------------------------------------------------------------------*/
243: /**
244: * Set the customer's year-to-date outstanding balance.
245: * <p>
246: * @param ytdBalance Customer year-to-date outstanding balance <i>(Mandatory)</i>
247: * @return void
248: * @exception java.rmi.RemoteException Remote exception
249: */
250: /*------------------------------------------------------------------*/
251: public void setYearToDateBalance(float ytdBalance)
252: throws RemoteException;
253:
254: /*------------------------------------------------------------------*/
255: /**
256: * Update the balance and year to date balance with the total amount from an order.
257: * <p>
258: * @param orderAmount Order amount to update the balances with <i>(Mandatory)</i>
259: * @return void
260: * @exception java.rmi.RemoteException Remote exception
261: */
262: /*------------------------------------------------------------------*/
263: public void updateBalance(float orderAmount) throws RemoteException;
264:
265: /*------------------------------------------------------------------*/
266: /**
267: * Get the customer's credit limit.
268: * <p>
269: * @return String
270: * @exception java.rmi.RemoteException Remote exception
271: */
272: /*------------------------------------------------------------------*/
273: public float getCreditLimit() throws RemoteException;
274:
275: /*------------------------------------------------------------------*/
276: /**
277: * Set the credit limit.
278: * <p>
279: * @param limit New credit limit <i>(Mandatory)</i>
280: * @return void
281: * @exception java.rmi.RemoteException Remote exception
282: */
283: /*------------------------------------------------------------------*/
284: public void setCreditLimit(float limit) throws RemoteException;
285:
286: }
|