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

Constructor Summary
InventoryEJB()
           
 
Method Summary
 void addQuantity(int qty)
          increase the current qty of an item in inventory.
 void ejbActivate()
           
 java.lang.String ejbFindByPrimaryKey(java.lang.String key)
           
 void ejbLoad()
           
 void ejbPassivate()
           
 void ejbRemove()
           
 void ejbStore()
           
 InventoryModel getDetails()
           
 void reduceQuantity(int qty)
          reduce the current qty of an item in inventory.
 void setEntityContext(javax.ejb.EntityContext ec)
           
 void unsetEntityContext()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InventoryEJB

public InventoryEJB()
Method Detail

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.