KickJava   Java API By Example, From Geeks To Geeks.

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


1 package edu.rice.rubis.beans;
2
3 import javax.ejb.*;
4 import java.rmi.*;
5
6 /**
7  * This is the Local 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 BuyNowLocal extends EJBLocalObject {
12   /**
13    * Get BuyNow id.
14    *
15    * @return BuyNow id
16    */

17   public Integer JavaDoc getId();
18
19   /**
20    * Get the buyer id which is the primary key in the users table.
21    *
22    * @return buyer id
23    */

24   public Integer JavaDoc getBuyerId();
25
26   /**
27    * Get the item id which is the primary key in the items table.
28    *
29    * @return item id
30    */

31   public Integer JavaDoc getItemId();
32
33   /**
34    * Get how many of this item the buyer has bought.
35    *
36    * @return quantity of items for this bid.
37    */

38   public int getQuantity();
39
40   /**
41    * Time of the BuyNow in the format 'YYYY-MM-DD hh:mm:ss'
42    *
43    * @return bid time
44    */

45   public String JavaDoc getDate();
46
47   /**
48    * Set a new buyer identifier. This id must match
49    * the primary key of the buyers table.
50    *
51    * @param id buyer id
52    */

53   public void setBuyerId(Integer JavaDoc id);
54
55   /**
56    * Set a new item identifier. This id must match
57    * the primary key of the items table.
58    *
59    * @param id item id
60    */

61   public void setItemId(Integer JavaDoc id);
62
63   /**
64    * Set a new quantity for this buy
65    *
66    * @param Qty quantity
67    */

68   public void setQuantity(int Qty);
69
70   /**
71    * Set a new date for this buy
72    *
73    * @param newDate bid date
74    */

75   public void setDate(String JavaDoc newDate);
76 }
77
Popular Tags