|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is the Home interface of the BuyNow Bean
Method Summary | |
BuyNow |
create(java.lang.Integer BuyNowUserId,
java.lang.Integer BuyNowItemId,
int quantity)
This method is used to create a new BuyNow Bean. |
java.util.Collection |
findAllBuyNows()
This method is used to retrieve all BuyNows from the database! |
java.util.Collection |
findByItem(java.lang.Integer id)
This method is used to retrieve all BuyNow Beans related to one item. |
BuyNow |
findByPrimaryKey(BuyNowPK id)
This method is used to retrieve a BuyNow 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 BuyNow Beans belonging to a specific user. |
java.util.Collection |
findUserBuyNow(java.lang.Integer userId)
Get all the items the user bought using the buy-now option in the last 30 days. |
Methods inherited from interface javax.ejb.EJBHome |
getEJBMetaData, getHomeHandle, remove, remove |
Method Detail |
public BuyNow create(java.lang.Integer BuyNowUserId, java.lang.Integer BuyNowItemId, int quantity) throws javax.ejb.CreateException, java.rmi.RemoteException, javax.ejb.RemoveException
BuyNowUserId
- user id of the buyer, must match the primary key of table usersBuyNowItemId
- item id, must match the primary key of table itemsquantity
- 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 BuyNow findByPrimaryKey(BuyNowPK id) throws javax.ejb.FinderException, java.rmi.RemoteException
id
- BuyNow 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 findAllBuyNows() throws java.rmi.RemoteException, javax.ejb.FinderException
java.rmi.RemoteException
- if an error occursjavax.ejb.FinderException
- if an error occurspublic java.util.Collection findUserBuyNow(java.lang.Integer userId) throws java.rmi.RemoteException, javax.ejb.FinderException
userId
- user idjava.rmi.RemoteException
- if an error occurs
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |