|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.websphere.samples.plantsbywebsphereejb.InventoryBean
public abstract class InventoryBean
InventoryBean is the implementation class for the Inventory entity
EJB. InventoryBean implements each of the business methods in the Inventory
EJB local interface and each of the EJB lifecycle methods in the javax.ejb.EntityBean
interface.
Inventory,
InventoryHome,
InventoryKey,
Serialized Form| Constructor Summary | |
|---|---|
InventoryBean()
|
|
| Method Summary | |
|---|---|
int |
decreaseInventory(int quantity)
Decrease the quantity of this inventory item. |
void |
ejbActivate()
ejbActivate Session EJB lifecycle callback method. |
InventoryKey |
ejbCreate(InventoryKey key,
java.lang.String name,
java.lang.String heading,
java.lang.String desc,
java.lang.String pkginfo,
java.lang.String image,
float price,
float cost,
int quantity,
int category,
java.lang.String notes,
int isPublic)
Create a new Inventory. |
InventoryKey |
ejbCreate(StoreItem item)
Create a new Inventory. |
InventoryKey |
ejbCreate(java.lang.String inventoryID)
ejbCreate |
void |
ejbLoad()
ejbLoad Session EJB lifecycle callback method. |
void |
ejbPassivate()
ejbPassivate Session EJB lifecycle callback method. |
void |
ejbPostCreate(InventoryKey key,
java.lang.String name,
java.lang.String heading,
java.lang.String desc,
java.lang.String pkginfo,
java.lang.String image,
float price,
float cost,
int quantity,
int category,
java.lang.String notes,
int isPublic)
Entity EJB lifecycle callback method. |
void |
ejbPostCreate(StoreItem item)
Entity EJB lifecycle callback method. |
void |
ejbPostCreate(java.lang.String inventoryID)
ejbPostCreate |
void |
ejbRemove()
ejbRemove Session EJB lifecycle callback method. |
void |
ejbStore()
ejbStore Session EJB lifecycle callback method. |
abstract int |
getCategory()
Get the inventory category. |
abstract float |
getCost()
Get the inventory item cost. |
abstract java.lang.String |
getDescription()
Get the inventory item description. |
javax.ejb.EntityContext |
getEntityContext()
getEntityContext |
abstract java.lang.String |
getHeading()
Get the inventory item description heading. |
java.lang.String |
getID()
Get the inventory ID. |
abstract java.lang.String |
getImage()
Get the inventory item image. |
abstract byte[] |
getImgbytes()
Get the inventory item image binary data. |
abstract java.lang.String |
getInventoryID()
Get the inventory ID. |
abstract int |
getIsPublic()
|
abstract int |
getMaxThreshold()
Get accessor for persistent attribute: maxThreshold |
abstract int |
getMinThreshold()
Get accessor for persistent attribute: minThreshold |
abstract java.lang.String |
getName()
Get the inventory item name. |
abstract java.lang.String |
getNotes()
Get the notes of inventory in stock. |
abstract java.lang.String |
getPkginfo()
Get the inventory item package info. |
abstract float |
getPrice()
Get the inventory item price. |
abstract int |
getQuantity()
Get the quantity of inventory in stock. |
void |
increaseInventory(int quantity)
Increase the quantity of this inventory item. |
boolean |
isPublic()
Is this inventory item viewable by the public? |
abstract void |
setCategory(int category)
Set the inventory item's category. |
abstract void |
setCost(float cost)
Set the inventory item's cost. |
abstract void |
setDescription(java.lang.String description)
Set the inventory item's description. |
void |
setEntityContext(javax.ejb.EntityContext ctx)
setEntityContext Entity EJB lifecycle callback method to set the EJB entityContext for this EJB. |
abstract void |
setHeading(java.lang.String heading)
Set the inventory item's description heading. |
abstract void |
setImage(java.lang.String image)
Set the inventory item's image. |
abstract void |
setImgbytes(byte[] imgbytes)
Set the inventory item's image binary data. |
abstract void |
setInventoryID(java.lang.String inventoryID)
Set the inventory item's ID. |
abstract void |
setIsPublic(int isPublic)
Set the inventory item's public flag. |
abstract void |
setMaxThreshold(int newMaxThreshold)
Set accessor for persistent attribute: maxThreshold |
abstract void |
setMinThreshold(int newMinThreshold)
Set accessor for persistent attribute: minThreshold |
abstract void |
setName(java.lang.String name)
Set the inventory item's name. |
abstract void |
setNotes(java.lang.String notes)
Set the inventory item's notes. |
abstract void |
setPkginfo(java.lang.String pkginfo)
Set the inventory item's package info. |
abstract void |
setPrice(float price)
Set the inventory item's price. |
void |
setPrivacy(boolean isPublic)
Set the inventory item's public availability. |
abstract void |
setQuantity(int quantity)
Set the inventory item's quantity in stock. |
void |
unsetEntityContext()
unsetEntityContext Entity EJB lifecycle callback method to unset the EJB entityContext for this EJB. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InventoryBean()
| Method Detail |
|---|
public InventoryKey ejbCreate(InventoryKey key,
java.lang.String name,
java.lang.String heading,
java.lang.String desc,
java.lang.String pkginfo,
java.lang.String image,
float price,
float cost,
int quantity,
int category,
java.lang.String notes,
int isPublic)
throws javax.ejb.CreateException
key - InventoryKeyname - Name of inventory item.heading - Description heading of inventory item.desc - Description of inventory item.pkginfo - Package info of inventory item.image - Image of inventory item.price - Price of inventory item.cost - Cost of inventory item.quantity - Quantity of inventory items in stock.category - Category of inventory item.notes - Notes of inventory item.isPublic - Access permission of inventory item.
javax.ejb.CreateException
public InventoryKey ejbCreate(StoreItem item)
throws javax.ejb.CreateException
item - StoreItem to use to make a new inventory item.
javax.ejb.CreateException
public void ejbPostCreate(InventoryKey key,
java.lang.String name,
java.lang.String heading,
java.lang.String desc,
java.lang.String pkginfo,
java.lang.String image,
float price,
float cost,
int quantity,
int category,
java.lang.String notes,
int isPublic)
public void ejbPostCreate(StoreItem item)
public java.lang.String getID()
public abstract java.lang.String getInventoryID()
public abstract java.lang.String getName()
public abstract java.lang.String getHeading()
public abstract java.lang.String getDescription()
public abstract java.lang.String getPkginfo()
public abstract java.lang.String getImage()
public abstract byte[] getImgbytes()
public abstract float getPrice()
public abstract float getCost()
public abstract int getCategory()
public abstract int getQuantity()
public abstract java.lang.String getNotes()
public abstract int getIsPublic()
public boolean isPublic()
public abstract void setInventoryID(java.lang.String inventoryID)
public abstract void setName(java.lang.String name)
public abstract void setHeading(java.lang.String heading)
public abstract void setDescription(java.lang.String description)
public abstract void setPkginfo(java.lang.String pkginfo)
public abstract void setImage(java.lang.String image)
public abstract void setImgbytes(byte[] imgbytes)
public abstract void setPrice(float price)
public abstract void setCost(float cost)
public abstract void setQuantity(int quantity)
public abstract void setCategory(int category)
public abstract void setNotes(java.lang.String notes)
public abstract void setIsPublic(int isPublic)
public void setPrivacy(boolean isPublic)
public void increaseInventory(int quantity)
quantity - The number to increase the inventory by.public int decreaseInventory(int quantity)
quantity - The number to decrease the inventory by.
public void ejbLoad()
ejbLoad in interface javax.ejb.EntityBeanpublic void ejbStore()
ejbStore in interface javax.ejb.EntityBeanpublic void ejbRemove()
ejbRemove in interface javax.ejb.EntityBeanpublic void ejbActivate()
ejbActivate in interface javax.ejb.EntityBeanpublic void ejbPassivate()
ejbPassivate in interface javax.ejb.EntityBeanpublic void setEntityContext(javax.ejb.EntityContext ctx)
setEntityContext in interface javax.ejb.EntityBeanctx - javax.ejb.EntityContext The context for this entity EJB.public javax.ejb.EntityContext getEntityContext()
public void unsetEntityContext()
unsetEntityContext in interface javax.ejb.EntityBean
public InventoryKey ejbCreate(java.lang.String inventoryID)
throws javax.ejb.CreateException
javax.ejb.CreateException
public void ejbPostCreate(java.lang.String inventoryID)
throws javax.ejb.CreateException
javax.ejb.CreateExceptionpublic abstract int getMinThreshold()
public abstract void setMinThreshold(int newMinThreshold)
public abstract int getMaxThreshold()
public abstract void setMaxThreshold(int newMaxThreshold)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||