| java.lang.Object org.objectweb.jonas.stests.appli.OrderEBR
OrderEBR | public class OrderEBR implements EntityBean(Code) | | |
Method Summary | |
public void | ejbActivate() | public OrderID | ejbCreate(String warehouseID, int districtID, Integer customerID, float orderID, Vector orderItems) This method is called when a client calls the OrderHome.create(). | public OrderID | ejbFindByID(String wID, String dID, String oID) Finds an order given the warehouse, district and order IDs as Strings. | public OrderID | ejbFindByPrimaryKey(OrderID pk) | public void | ejbLoad() | public void | ejbPassivate() | public void | ejbPostCreate(String warehouseID, int districtID, Integer customerID, float orderID, Vector orderItems) | public void | ejbRemove() | public void | ejbStore() | public Integer | getCustomerID() | public Vector | getOrderItems() | public int | getOrderLineCount() | public boolean | isModified() | public void | setEntityContext(EntityContext ctxt) | public void | setModified(boolean flag) | public void | unsetEntityContext() |
ivDistrictID | public int ivDistrictID(Code) | | |
ivNumberOfOrderLines | public int ivNumberOfOrderLines(Code) | | |
ivOrderID | public float ivOrderID(Code) | | |
ejbActivate | public void ejbActivate()(Code) | | |
ejbCreate | public OrderID ejbCreate(String warehouseID, int districtID, Integer customerID, float orderID, Vector orderItems) throws CreateException, RemoteException(Code) | | This method is called when a client calls the OrderHome.create(). It creates
records in the database for the line items and the order header information.
Parameters: warehouseID - String Warehouse ID Parameters: districtID - int District ID Parameters: customerID - Integer Customer ID Parameters: orderID - float Order ID - NOTE: must be passed in as parameter, it is not created by the bean Parameters: orderItems - Vector of OrderDetail objects. Each OrderDetail object represents one line item on the order. The bean determines the order line number. exception: javax.ejb.CreateException - exception: javax.ejb.RemoteException - |
ejbFindByID | public OrderID ejbFindByID(String wID, String dID, String oID) throws FinderException, RemoteException(Code) | | Finds an order given the warehouse, district and order IDs as Strings.
The method constructs an OrderID from the three parameters and calls
ejbFindByPrimaryKey().
Parameters: wID - String Warehouse ID Parameters: dID - String District ID Parameters: oID - String Order ID exception: java.rmi.RemoteException - exception: javax.ejb.FinderException - thrown if the EJBean cannot be found. |
ejbLoad | public void ejbLoad()(Code) | | |
ejbPassivate | public void ejbPassivate()(Code) | | |
ejbPostCreate | public void ejbPostCreate(String warehouseID, int districtID, Integer customerID, float orderID, Vector orderItems)(Code) | | |
ejbRemove | public void ejbRemove() throws RemoveException(Code) | | |
ejbStore | public void ejbStore()(Code) | | |
isModified | public boolean isModified()(Code) | | |
setEntityContext | public void setEntityContext(EntityContext ctxt)(Code) | | |
setModified | public void setModified(boolean flag)(Code) | | |
unsetEntityContext | public void unsetEntityContext()(Code) | | |
|
|