KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jonas > stests > appli > Customer


1 // Customer.java
2

3 package org.objectweb.jonas.stests.appli;
4
5 import java.rmi.RemoteException JavaDoc;
6 import javax.ejb.EJBObject JavaDoc;
7
8 /**
9  * Customer remote interface
10  */

11 public interface Customer extends EJBObject JavaDoc {
12
13     /**
14    * Get the customer ID.
15      * <p>
16    * @return String
17    * @exception java.rmi.RemoteException Remote exception
18      */

19     /*------------------------------------------------------------------*/
20   public Integer JavaDoc getCustomerID() throws RemoteException JavaDoc;
21
22   /*------------------------------------------------------------------*/
23     /**
24    * Get the customer first name.
25      * <p>
26    * @return String
27    * @exception java.rmi.RemoteException Remote exception
28      */

29     /*------------------------------------------------------------------*/
30   public String JavaDoc getFirstName() throws RemoteException JavaDoc;
31   /*------------------------------------------------------------------*/
32     /**
33    * Set the customer first name.
34      * <p>
35    * @param fn Customer first name <i>(Mandatory)</i>
36      * @return void
37    * @exception java.rmi.RemoteException Remote exception
38      */

39     /*------------------------------------------------------------------*/
40   public void setFirstName(String JavaDoc fn) throws RemoteException JavaDoc;
41   /*------------------------------------------------------------------*/
42     /**
43    * Get the customer last name.
44      * <p>
45    * @return String
46    * @exception java.rmi.RemoteException Remote exception
47      */

48     /*------------------------------------------------------------------*/
49   public String JavaDoc getLastName() throws RemoteException JavaDoc;
50   /*------------------------------------------------------------------*/
51     /**
52    * Set the customer last name.
53      * <p>
54    * @param ln Customer last name <i>(Mandatory)</i>
55      * @return void
56    * @exception java.rmi.RemoteException Remote exception
57      */

58     /*------------------------------------------------------------------*/
59   public void setLastName(String JavaDoc ln) throws RemoteException JavaDoc;
60   /*------------------------------------------------------------------*/
61     /**
62    * Get the customer middle initials.
63      * <p>
64    * @return String
65    * @exception java.rmi.RemoteException Remote exception
66      */

67     /*------------------------------------------------------------------*/
68   public String JavaDoc getMiddleInitials() throws RemoteException JavaDoc;
69   /*------------------------------------------------------------------*/
70     /**
71    * Set the customer initials.
72      * <p>
73    * @param mi Customer middle initial <i>(Mandatory)</i>
74      * @return void
75    * @exception java.rmi.RemoteException Remote exception
76      */

77     /*------------------------------------------------------------------*/
78   public void setMiddleInitials(String JavaDoc mi) throws RemoteException JavaDoc;
79
80   /*------------------------------------------------------------------*/
81     /**
82    * Get the customer phone number.
83      * <p>
84    * @return String
85    * @exception java.rmi.RemoteException Remote exception
86      */

87     /*------------------------------------------------------------------*/
88   public String JavaDoc getPhone() throws RemoteException JavaDoc;
89   /*------------------------------------------------------------------*/
90     /**
91    * Set the customer phone number.
92      * <p>
93    * @param phone Customer phone number <i>(Mandatory)</i>
94      * @return void
95    * @exception java.rmi.RemoteException Remote exception
96      */

97     /*------------------------------------------------------------------*/
98   public void setPhone(String JavaDoc phone) throws RemoteException JavaDoc;
99
100   /*------------------------------------------------------------------*/
101     /**
102    * Get the customer's address line 1.
103      * <p>
104    * @return String
105    * @exception java.rmi.RemoteException Remote exception
106      */

107     /*------------------------------------------------------------------*/
108   public String JavaDoc getAddressLine1() throws RemoteException JavaDoc;
109   /*------------------------------------------------------------------*/
110     /**
111    * Set the customer's address line 1.
112      * <p>
113    * @param line Customer address line 1 <i>(Mandatory)</i>
114      * @return void
115    * @exception java.rmi.RemoteException Remote exception
116      */

117     /*------------------------------------------------------------------*/
118   public void setAddressLine1(String JavaDoc line) throws RemoteException JavaDoc;
119   /*------------------------------------------------------------------*/
120     /**
121    * Get the customer's address line 2.
122      * <p>
123    * @return String
124    * @exception java.rmi.RemoteException Remote exception
125      */

126     /*------------------------------------------------------------------*/
127   public String JavaDoc getAddressLine2() throws RemoteException JavaDoc;
128   /*------------------------------------------------------------------*/
129     /**
130    * Set the customer's address line 2.
131      * <p>
132    * @param line Customer address line 2 <i>(Mandatory)</i>
133      * @return void
134    * @exception java.rmi.RemoteException Remote exception
135      */

136     /*------------------------------------------------------------------*/
137   public void setAddressLine2(String JavaDoc line) throws RemoteException JavaDoc;
138
139   /*------------------------------------------------------------------*/
140     /**
141    * Get the customer's mailing address city.
142      * <p>
143    * @return String
144    * @exception java.rmi.RemoteException Remote exception
145      */

146     /*------------------------------------------------------------------*/
147   public String JavaDoc getCity() throws RemoteException JavaDoc;
148   /*------------------------------------------------------------------*/
149     /**
150    * Set the customer's mailing address city.
151      * <p>
152    * @param city Customer city <i>(Mandatory)</i>
153      * @return void
154    * @exception java.rmi.RemoteException Remote exception
155      */

156     /*------------------------------------------------------------------*/
157   public void setCity(String JavaDoc city) throws RemoteException JavaDoc;
158   /*------------------------------------------------------------------*/
159     /**
160    * Get the customer's mailing address state.
161      * <p>
162    * @return String
163    * @exception java.rmi.RemoteException Remote exception
164      */

165     /*------------------------------------------------------------------*/
166   public String JavaDoc getState() throws RemoteException JavaDoc;
167   /*------------------------------------------------------------------*/
168     /**
169    * Set the customer's mailing address state.
170      * <p>
171    * @param state Customer state <i>(Mandatory)</i>
172      * @return void
173    * @exception java.rmi.RemoteException Remote exception
174      */

175     /*------------------------------------------------------------------*/
176   public void setState(String JavaDoc state) throws RemoteException JavaDoc;
177   /*------------------------------------------------------------------*/
178     /**
179    * Get the customer's mailing address zip code.
180      * <p>
181    * @return String
182    * @exception java.rmi.RemoteException Remote exception
183      */

184     /*------------------------------------------------------------------*/
185   public String JavaDoc getZip() throws RemoteException JavaDoc;
186   /*------------------------------------------------------------------*/
187     /**
188    * Set the customer's mailing address zip code.
189      * <p>
190    * @param zip Customer zip code <i>(Mandatory)</i>
191      * @return void
192    * @exception java.rmi.RemoteException Remote exception
193      */

194     /*------------------------------------------------------------------*/
195   public void setZip(String JavaDoc zip) throws RemoteException JavaDoc;
196
197   /*------------------------------------------------------------------*/
198     /**
199    * Get the customer's total outstanding balance.
200      * <p>
201    * @return String
202    * @exception java.rmi.RemoteException Remote exception
203      */

204     /*------------------------------------------------------------------*/
205   public float getBalance() throws RemoteException JavaDoc;
206   /*------------------------------------------------------------------*/
207     /**
208    * Set the customer's total outstanding balance.
209      * <p>
210    * @param balance Customer total outstanding balance <i>(Mandatory)</i>
211      * @return void
212    * @exception java.rmi.RemoteException Remote exception
213      */

214     /*------------------------------------------------------------------*/
215   public void setBalance(float balance) throws RemoteException JavaDoc;
216   /*------------------------------------------------------------------*/
217     /**
218    * Get the customer's year-to-date outstanding balance.
219      * <p>
220    * @return String
221    * @exception java.rmi.RemoteException Remote exception
222      */

223     /*------------------------------------------------------------------*/
224   public float getYearToDateBalance() throws RemoteException JavaDoc;
225   /*------------------------------------------------------------------*/
226     /**
227    * Set the customer's year-to-date outstanding balance.
228      * <p>
229    * @param ytdBalance Customer year-to-date outstanding balance <i>(Mandatory)</i>
230      * @return void
231    * @exception java.rmi.RemoteException Remote exception
232      */

233     /*------------------------------------------------------------------*/
234   public void setYearToDateBalance(float ytdBalance) throws RemoteException JavaDoc;
235
236   /*------------------------------------------------------------------*/
237     /**
238    * Update the balance and year to date balance with the total amount from an order.
239      * <p>
240    * @param orderAmount Order amount to update the balances with <i>(Mandatory)</i>
241      * @return void
242    * @exception java.rmi.RemoteException Remote exception
243      */

244     /*------------------------------------------------------------------*/
245   public void updateBalance(float orderAmount) throws RemoteException JavaDoc;
246
247   /*------------------------------------------------------------------*/
248     /**
249    * Get the customer's credit limit.
250      * <p>
251    * @return String
252    * @exception java.rmi.RemoteException Remote exception
253      */

254     /*------------------------------------------------------------------*/
255   public float getCreditLimit() throws RemoteException JavaDoc;
256   /*------------------------------------------------------------------*/
257     /**
258    * Set the credit limit.
259      * <p>
260    * @param limit New credit limit <i>(Mandatory)</i>
261      * @return void
262    * @exception java.rmi.RemoteException Remote exception
263      */

264     /*------------------------------------------------------------------*/
265   public void setCreditLimit(float limit) throws RemoteException JavaDoc;
266
267 }
268
Popular Tags