com.ibm.websphere.samples.plantsbywebsphereejb
Class OrderItemBean

java.lang.Object
  extended by com.ibm.websphere.samples.plantsbywebsphereejb.OrderItemBean
All Implemented Interfaces:
java.io.Serializable, javax.ejb.EnterpriseBean, javax.ejb.EntityBean

public abstract class OrderItemBean
extends java.lang.Object
implements javax.ejb.EntityBean

Bean implementation class for Enterprise Bean: OrderItem

See Also:
Serialized Form

Constructor Summary
OrderItemBean()
           
 
Method Summary
 void ejbActivate()
          ejbActivate
 OrderItemKey ejbCreate(Order order, java.lang.String orderID, java.lang.String inventoryID, java.lang.String name, java.lang.String pkginfo, float price, float cost, int quantity, int category, java.lang.String sellDate)
          ejbCreate
 OrderItemKey ejbCreate(java.lang.String inventoryID)
          ejbCreate
 void ejbLoad()
          ejbLoad
 void ejbPassivate()
          ejbPassivate
 void ejbPostCreate(Order order, java.lang.String orderID, java.lang.String inventoryID, java.lang.String name, java.lang.String pkginfo, float price, float cost, int quantity, int category, java.lang.String sellDate)
          ejbPostCreate
 void ejbPostCreate(java.lang.String inventoryID)
          ejbPostCreate
 void ejbRemove()
          ejbRemove
 void ejbStore()
          ejbStore
abstract  int getCategory()
          Get accessor for persistent attribute: category
abstract  float getCost()
          Get accessor for persistent attribute: cost
 javax.ejb.EntityContext getEntityContext()
          getEntityContext
abstract  java.lang.String getInventoryID()
          Get accessor for persistent attribute: inventoryID
abstract  java.lang.String getName()
          Get accessor for persistent attribute: name
abstract  java.lang.String getOrder_orderID()
          /** Get accessor for persistent attribute: order_orderID
abstract  Order getOrder()
          This method was generated for supporting the relationship role named order.
abstract  java.lang.String getPkginfo()
          Get accessor for persistent attribute: pkginfo
abstract  float getPrice()
          Get accessor for persistent attribute: price
abstract  int getQuantity()
          Get accessor for persistent attribute: quantity
abstract  java.lang.String getSellDate()
          Get accessor for persistent attribute: sellDate
abstract  void setCategory(int newCategory)
          Set accessor for persistent attribute: category
abstract  void setCost(float newCost)
          Set accessor for persistent attribute: cost
 void setEntityContext(javax.ejb.EntityContext ctx)
          setEntityContext
abstract  void setInventoryID(java.lang.String newInventoryID)
          Set accessor for persistent attribute: inventoryID
abstract  void setName(java.lang.String newName)
          Set accessor for persistent attribute: name
abstract  void setOrder_orderID(java.lang.String newOrder_orderID)
          Set accessor for persistent attribute: order_orderID
abstract  void setOrder(Order anOrder)
          This method was generated for supporting the relationship role named order.
abstract  void setPkginfo(java.lang.String newPkginfo)
          Set accessor for persistent attribute: pkginfo
abstract  void setPrice(float newPrice)
          Set accessor for persistent attribute: price
abstract  void setQuantity(int newQuantity)
          Set accessor for persistent attribute: quantity
abstract  void setSellDate(java.lang.String newSellDate)
          Set accessor for persistent attribute: sellDate
 void unsetEntityContext()
          unsetEntityContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrderItemBean

public OrderItemBean()
Method Detail

ejbCreate

public OrderItemKey ejbCreate(java.lang.String inventoryID)
                       throws javax.ejb.CreateException
ejbCreate

Throws:
javax.ejb.CreateException

ejbPostCreate

public void ejbPostCreate(java.lang.String inventoryID)
                   throws javax.ejb.CreateException
ejbPostCreate

Throws:
javax.ejb.CreateException

ejbCreate

public OrderItemKey ejbCreate(Order order,
                              java.lang.String orderID,
                              java.lang.String inventoryID,
                              java.lang.String name,
                              java.lang.String pkginfo,
                              float price,
                              float cost,
                              int quantity,
                              int category,
                              java.lang.String sellDate)
                       throws javax.ejb.CreateException
ejbCreate

Throws:
javax.ejb.CreateException

ejbPostCreate

public void ejbPostCreate(Order order,
                          java.lang.String orderID,
                          java.lang.String inventoryID,
                          java.lang.String name,
                          java.lang.String pkginfo,
                          float price,
                          float cost,
                          int quantity,
                          int category,
                          java.lang.String sellDate)
                   throws javax.ejb.CreateException
ejbPostCreate

Throws:
javax.ejb.CreateException

getInventoryID

public abstract java.lang.String getInventoryID()
Get accessor for persistent attribute: inventoryID


setInventoryID

public abstract void setInventoryID(java.lang.String newInventoryID)
Set accessor for persistent attribute: inventoryID


getName

public abstract java.lang.String getName()
Get accessor for persistent attribute: name


setName

public abstract void setName(java.lang.String newName)
Set accessor for persistent attribute: name


getPkginfo

public abstract java.lang.String getPkginfo()
Get accessor for persistent attribute: pkginfo


setPkginfo

public abstract void setPkginfo(java.lang.String newPkginfo)
Set accessor for persistent attribute: pkginfo


getPrice

public abstract float getPrice()
Get accessor for persistent attribute: price


setPrice

public abstract void setPrice(float newPrice)
Set accessor for persistent attribute: price


getCost

public abstract float getCost()
Get accessor for persistent attribute: cost


setCost

public abstract void setCost(float newCost)
Set accessor for persistent attribute: cost


getCategory

public abstract int getCategory()
Get accessor for persistent attribute: category


setCategory

public abstract void setCategory(int newCategory)
Set accessor for persistent attribute: category


getQuantity

public abstract int getQuantity()
Get accessor for persistent attribute: quantity


setQuantity

public abstract void setQuantity(int newQuantity)
Set accessor for persistent attribute: quantity


getSellDate

public abstract java.lang.String getSellDate()
Get accessor for persistent attribute: sellDate


setSellDate

public abstract void setSellDate(java.lang.String newSellDate)
Set accessor for persistent attribute: sellDate


setEntityContext

public void setEntityContext(javax.ejb.EntityContext ctx)
setEntityContext

Specified by:
setEntityContext in interface javax.ejb.EntityBean

getEntityContext

public javax.ejb.EntityContext getEntityContext()
getEntityContext


unsetEntityContext

public void unsetEntityContext()
unsetEntityContext

Specified by:
unsetEntityContext in interface javax.ejb.EntityBean

ejbActivate

public void ejbActivate()
ejbActivate

Specified by:
ejbActivate in interface javax.ejb.EntityBean

ejbLoad

public void ejbLoad()
ejbLoad

Specified by:
ejbLoad in interface javax.ejb.EntityBean

ejbPassivate

public void ejbPassivate()
ejbPassivate

Specified by:
ejbPassivate in interface javax.ejb.EntityBean

ejbRemove

public void ejbRemove()
               throws javax.ejb.RemoveException
ejbRemove

Specified by:
ejbRemove in interface javax.ejb.EntityBean
Throws:
javax.ejb.RemoveException

ejbStore

public void ejbStore()
ejbStore

Specified by:
ejbStore in interface javax.ejb.EntityBean

getOrder

public abstract Order getOrder()
This method was generated for supporting the relationship role named order. It will be deleted/edited when the relationship is deleted/edited.


setOrder

public abstract void setOrder(Order anOrder)
This method was generated for supporting the relationship role named order. It will be deleted/edited when the relationship is deleted/edited.


getOrder_orderID

public abstract java.lang.String getOrder_orderID()
/** Get accessor for persistent attribute: order_orderID


setOrder_orderID

public abstract void setOrder_orderID(java.lang.String newOrder_orderID)
Set accessor for persistent attribute: order_orderID