KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > edu > rice > rubis > beans > BuyNow


1 package edu.rice.rubis.beans;
2
3 import javax.ejb.*;
4 import java.rmi.*;
5
6 /**
7  * This is the Remote Interface for the BuyNow Bean
8  * @author <a HREF="mailto:cecchet@rice.edu">Emmanuel Cecchet</a> and <a HREF="mailto:julie.marguerite@inrialpes.fr">Julie Marguerite</a>
9  * @version 1.0
10  */

11 public interface BuyNow extends EJBObject {
12   /**
13    * Get BuyNow id.
14    *
15    * @return BuyNow id
16    * @exception RemoteException if an error occurs
17    */

18   public Integer JavaDoc getId() throws RemoteException;
19
20   /**
21    * Get the buyer id which is the primary key in the users table.
22    *
23    * @return buyer id
24    * @exception RemoteException if an error occurs
25    */

26   public Integer JavaDoc getBuyerId() throws RemoteException;
27
28   /**
29    * Get the item id which is the primary key in the items table.
30    *
31    * @return item id
32    * @exception RemoteException if an error occurs
33    */

34   public Integer JavaDoc getItemId() throws RemoteException;
35
36   /**
37    * Get how many of this item the buyer has bought.
38    *
39    * @return quantity of items for this bid.
40    * @exception RemoteException if an error occurs
41    */

42   public int getQuantity() throws RemoteException;
43
44   /**
45    * Time of the BuyNow in the format 'YYYY-MM-DD hh:mm:ss'
46    *
47    * @return bid time
48    * @exception RemoteException if an error occurs
49    */

50   public String JavaDoc getDate() throws RemoteException;
51
52   /**
53    * Set a new buyer identifier. This id must match
54    * the primary key of the buyers table.
55    *
56    * @param id buyer id
57    * @exception RemoteException if an error occurs
58    */

59   public void setBuyerId(Integer JavaDoc id) throws RemoteException;
60
61   /**
62    * Set a new item identifier. This id must match
63    * the primary key of the items table.
64    *
65    * @param id item id
66    * @exception RemoteException if an error occurs
67    */

68   public void setItemId(Integer JavaDoc id) throws RemoteException;
69
70   /**
71    * Set a new quantity for this buy
72    *
73    * @param Qty quantity
74    * @exception RemoteException if an error occurs
75    */

76   public void setQuantity(int Qty) throws RemoteException;
77
78   /**
79    * Set a new date for this buy
80    *
81    * @param newDate bid date
82    * @exception RemoteException if an error occurs
83    */

84   public void setDate(String JavaDoc newDate) throws RemoteException;
85 }
86
Popular Tags