| org.objectweb.jonas.stests.appli.StockHome
StockHome | public interface StockHome extends EJBHome(Code) | | Home interface for the bean Stock
|
Method Summary | |
public Stock | create(String whID, Integer itemID, int stockQty) Create a new Stock Item with minimal information. | public Stock | findByPrimaryKey(StockID pk) Retrieve an individual stock item by their stock ID which is combination of
warehouse id and item id. | public Enumeration | findStockByRange(int low, int high) Retrieve all of the stock items within a minimum and maximum quantity range. |
create | public Stock create(String whID, Integer itemID, int stockQty) throws CreateException, RemoteException(Code) | | Create a new Stock Item with minimal information.
Parameters: whID - Warehouse ID for the stock item being created, must be unique Parameters: itemID - item id of the stock item Parameters: stockQty - Stock quantity of the stock item Stock exception: javax.ejb.CreateException - Creation Exception exception: java.rmi.RemoteException - Remote Exception |
findByPrimaryKey | public Stock findByPrimaryKey(StockID pk) throws FinderException, RemoteException(Code) | | Retrieve an individual stock item by their stock ID which is combination of
warehouse id and item id.
Parameters: primaryKey - Primary key to find the stock item with Stock exception: javax.ejb.FinderException - Find Exception exception: java.rmi.RemoteException - Remote Exception |
findStockByRange | public Enumeration findStockByRange(int low, int high) throws FinderException, RemoteException(Code) | | Retrieve all of the stock items within a minimum and maximum quantity range.
Note:This returns a list of 1 or more stock items within the range.
Parameters: low - minimum quantity in the range Parameters: high - maximum quantity in the range Stock items exception: javax.ejb.FinderException - Find Exception exception: java.rmi.RemoteException - Remote Exception |
|
|