|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is the Local Home interface of the Bid Bean
Method Summary | |
BidLocal |
create(java.lang.Integer bidUserId,
java.lang.Integer bidItemId,
float userBid,
float userMaxBid,
int quantity)
This method is used to create a new Bid Bean. |
java.util.Collection |
findAllBids()
This method is used to retrieve all bids from the database! |
java.util.Collection |
findByItem(java.lang.Integer id)
This method is used to retrieve all Bid Beans related to one item. |
BidLocal |
findByPrimaryKey(BidPK id)
This method is used to retrieve a Bid Bean from its primary key, that is to say its id. |
java.util.Collection |
findByUser(java.lang.Integer id)
This method is used to retrieve all Bid Beans belonging to a specific user. |
Methods inherited from interface javax.ejb.EJBLocalHome |
remove |
Method Detail |
public BidLocal create(java.lang.Integer bidUserId, java.lang.Integer bidItemId, float userBid, float userMaxBid, int quantity) throws javax.ejb.CreateException, javax.ejb.RemoveException
bidUserId
- user id of the bidder, must match the primary key of table usersbidItemId
- item id, must match the primary key of table itemsuserBid
- the amount of the user biduserMaxBid
- the maximum amount the user wants to bidquantity
- number of items the user wants to buyjavax.ejb.CreateException
- if an error occursjavax.ejb.RemoveException
- if an error occurspublic BidLocal findByPrimaryKey(BidPK id) throws javax.ejb.FinderException
id
- Bid id (primary key)javax.ejb.FinderException
- if an error occurspublic java.util.Collection findByItem(java.lang.Integer id) throws javax.ejb.FinderException
id
- item idjavax.ejb.FinderException
- if an error occurspublic java.util.Collection findByUser(java.lang.Integer id) throws javax.ejb.FinderException
id
- user idjavax.ejb.FinderException
- if an error occurspublic java.util.Collection findAllBids() throws javax.ejb.FinderException
javax.ejb.FinderException
- if an error occurs
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |