|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is the Home interface of the Bid Bean
Method Summary | |
Bid |
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. |
Bid |
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.EJBHome |
getEJBMetaData, getHomeHandle, remove, remove |
Method Detail |
public Bid create(java.lang.Integer bidUserId, java.lang.Integer bidItemId, float userBid, float userMaxBid, int quantity) throws javax.ejb.CreateException, java.rmi.RemoteException, 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 occursjava.rmi.RemoteException
- if an error occursjavax.ejb.RemoveException
- if an error occurspublic Bid findByPrimaryKey(BidPK id) throws javax.ejb.FinderException, java.rmi.RemoteException
id
- Bid id (primary key)javax.ejb.FinderException
- if an error occursjava.rmi.RemoteException
- if an error occurspublic java.util.Collection findByItem(java.lang.Integer id) throws javax.ejb.FinderException, java.rmi.RemoteException
id
- item idjavax.ejb.FinderException
- if an error occursjava.rmi.RemoteException
- if an error occurspublic java.util.Collection findByUser(java.lang.Integer id) throws javax.ejb.FinderException, java.rmi.RemoteException
id
- user idjavax.ejb.FinderException
- if an error occursjava.rmi.RemoteException
- if an error occurspublic java.util.Collection findAllBids() throws java.rmi.RemoteException, javax.ejb.FinderException
java.rmi.RemoteException
- if an error occursjavax.ejb.FinderException
- if an error occurs
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |