com.sun.j2ee.blueprints.inventory.ejb
Class InventoryEJB
java.lang.Object
|
+--com.sun.j2ee.blueprints.inventory.ejb.InventoryEJB
- public class InventoryEJB
- extends java.lang.Object
- implements javax.ejb.EntityBean
Implementation of inventory as an Entity Bean
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
InventoryEJB
public InventoryEJB()
ejbRemove
public void ejbRemove()
throws javax.ejb.RemoveException
- Specified by:
- ejbRemove in interface javax.ejb.EntityBean
setEntityContext
public void setEntityContext(javax.ejb.EntityContext ec)
- Specified by:
- setEntityContext in interface javax.ejb.EntityBean
ejbLoad
public void ejbLoad()
- Specified by:
- ejbLoad in interface javax.ejb.EntityBean
ejbStore
public void ejbStore()
- Specified by:
- ejbStore in interface javax.ejb.EntityBean
ejbFindByPrimaryKey
public java.lang.String ejbFindByPrimaryKey(java.lang.String key)
throws javax.ejb.FinderException
unsetEntityContext
public void unsetEntityContext()
- Specified by:
- unsetEntityContext in interface javax.ejb.EntityBean
ejbActivate
public void ejbActivate()
- Specified by:
- ejbActivate in interface javax.ejb.EntityBean
ejbPassivate
public void ejbPassivate()
- Specified by:
- ejbPassivate in interface javax.ejb.EntityBean
getDetails
public InventoryModel getDetails()
- Returns:
- the InventoryModel containing the
inventory data details
reduceQuantity
public void reduceQuantity(int qty)
- reduce the current qty of an item in inventory.
addQuantity
public void addQuantity(int qty)
- increase the current qty of an item in inventory.
Copyright © 2000 Sun Microsystems Inc. All Rights Reserved.