| org.objectweb.jonas.stests.appli.ItemHome
ItemHome | public interface ItemHome extends EJBHome(Code) | | Home interface for the Item. This will handle all lifecycle
related operations for the class of Items: creation, location,
deletion.
Several finder methods are provided to locate items according
to various search criteria.
|
create | public Item create(Integer id, String name, float price, String data) throws RemoteException, CreateException(Code) | | Creates an item bean
Parameters: id - an Integer which represents the item id Parameters: name - a String which represents the item name Parameters: price - a float which represents the price Parameters: data - a String which contains additional information about the item the Item bean created exception: javax.ejb.CreateException - Creation Exception exception: java.rmi.RemoteException - Remote Exception |
findByName | public Enumeration findByName(String name) throws FinderException, RemoteException(Code) | | Finds items by name
Parameters: name - a String which is the name of the desired items an Enumeration of Item beans that match the name exception: javax.ejb.FinderException - Find Exception exception: java.rmi.RemoteException - Remote Exception |
findByPrice | public Enumeration findByPrice(Float price) throws FinderException, RemoteException(Code) | | Finds items by price
Parameters: name - a float which is the price of the desired items an Enumeration of Item beans that match the price exception: javax.ejb.FinderException - Find Exception exception: java.rmi.RemoteException - Remote Exception |
findByPrimaryKey | public Item findByPrimaryKey(Integer primaryKey) throws FinderException, RemoteException(Code) | | Finds an item using the primary key
Parameters: primaryKey - an Integer which is the key for the desired item the Item bean that matches the key exception: javax.ejb.FinderException - Find Exception exception: java.rmi.RemoteException - Remote Exception |
|
|