KickJava   Java API By Example, From Geeks To Geeks.

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


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 Bid 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 BidLocal extends EJBLocalObject {
12   /**
13    * Get bid's id.
14    *
15    * @return bid id
16    */

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

24   public Integer JavaDoc getUserId();
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 user wants.
35    *
36    * @return quantity of items for this bid.
37    */

38   public int getQuantity();
39
40   /**
41    * Get the bid of the user.
42    *
43    * @return user's bid
44    */

45   public float getBid();
46
47   /**
48    * Get the maximum bid wanted by the user.
49    *
50    * @return user's maximum bid
51    */

52   public float getMaxBid();
53
54   /**
55    * Time of the Bid in the format 'YYYY-MM-DD hh:mm:ss'
56    *
57    * @return bid time
58    */

59   public String JavaDoc getDate();
60
61   /**
62    * Give the nick name of the bidder.
63    *
64    * @return bidder's nick name
65    */

66   public String JavaDoc getBidderNickName();
67   
68
69   /**
70    * Set a new user identifier. This id must match
71    * the primary key of the users table.
72    *
73    * @param id user id
74    */

75   public void setUserId(Integer JavaDoc id);
76
77   /**
78    * Set a new item identifier. This id must match
79    * the primary key of the items table.
80    *
81    * @param id item id
82    */

83   public void setItemId(Integer JavaDoc id);
84
85   /**
86    * Set a new quantity for this bid
87    *
88    * @param Qty quantity
89    */

90   public void setQuantity(int Qty);
91
92   /**
93    * Set a new bid on the item for the user
94    *
95    * @param newBid bid price
96    */

97   public void setBid(float newBid);
98
99   /**
100    * Set a new maximum bid on the item for the user
101    *
102    * @param newBid maximum bid price
103    */

104   public void setMaxBid(float newBid);
105
106   /**
107    * Set a new date for this bid
108    *
109    * @param newDate bid date
110    */

111   public void setDate(String JavaDoc newDate);
112
113   /**
114    * Display bid history information as an HTML table row
115    *
116    * @return a <code>String</code> containing HTML code
117    * @since 1.0
118    */

119   public String JavaDoc printBidHistory();
120 }
121
Popular Tags