|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.websphere.samples.plantsbywebsphereejb.Inventory
public class Inventory
Inventory is the implementation class for the Inventory
entity
EJB. Inventory 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
,
Serialized FormConstructor Summary | |
---|---|
Inventory()
|
|
Inventory(Inventory item)
Create a new Inventory. |
|
Inventory(StoreItem item)
Create a new Inventory based on values from the StoreItem |
|
Inventory(java.lang.String 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,
boolean isPublic)
Create a new Inventory. |
Method Summary | |
---|---|
BackOrder |
getBackOrder()
|
int |
getCategory()
|
float |
getCost()
|
java.lang.String |
getDescription()
|
java.lang.String |
getHeading()
|
java.lang.String |
getID()
Same as getInventoryId. |
java.lang.String |
getImage()
|
byte[] |
getImgbytes()
|
java.lang.String |
getInventoryId()
|
int |
getMaxThreshold()
|
int |
getMinThreshold()
|
java.lang.String |
getName()
|
java.lang.String |
getNotes()
|
java.lang.String |
getPkginfo()
|
float |
getPrice()
|
int |
getQuantity()
|
void |
increaseInventory(int quantity)
Increase the quantity of this inventory item. |
boolean |
isPublic()
|
void |
setBackOrder(BackOrder backOrder)
|
void |
setCategory(int category)
|
void |
setCost(float cost)
|
void |
setDescription(java.lang.String description)
|
void |
setHeading(java.lang.String heading)
|
void |
setID(java.lang.String id)
Same as setInventoryId. |
void |
setImage(java.lang.String image)
|
void |
setImgbytes(byte[] imgbytes)
|
void |
setInventoryId(java.lang.String id)
|
void |
setIsPublic(boolean isPublic)
|
void |
setMaxThreshold(int maxThreshold)
|
void |
setMinThreshold(int minThreshold)
|
void |
setName(java.lang.String name)
|
void |
setNotes(java.lang.String notes)
|
void |
setPkginfo(java.lang.String pkginfo)
|
void |
setPrice(float price)
|
void |
setPrivacy(boolean isPublic)
Set the inventory item's public availability. |
void |
setQuantity(int quantity)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Inventory()
public Inventory(java.lang.String 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, boolean isPublic)
key
- Inventory Keyname
- 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.public Inventory(StoreItem item)
StoreItem
- public Inventory(Inventory item)
item
- Inventory to use to make a new inventory item.Method Detail |
---|
public void increaseInventory(int quantity)
quantity
- The number to increase the inventory by.public int getCategory()
public void setCategory(int category)
public float getCost()
public void setCost(float cost)
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
public java.lang.String getHeading()
public void setHeading(java.lang.String heading)
public java.lang.String getImage()
public void setImage(java.lang.String image)
public java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.String getNotes()
public void setNotes(java.lang.String notes)
public java.lang.String getPkginfo()
public void setPkginfo(java.lang.String pkginfo)
public float getPrice()
public void setPrice(float price)
public int getQuantity()
public void setQuantity(int quantity)
public int getMaxThreshold()
public void setMaxThreshold(int maxThreshold)
public int getMinThreshold()
public void setMinThreshold(int minThreshold)
public java.lang.String getInventoryId()
public void setInventoryId(java.lang.String id)
public java.lang.String getID()
public void setID(java.lang.String id)
public boolean isPublic()
public void setIsPublic(boolean isPublic)
public void setPrivacy(boolean isPublic)
public byte[] getImgbytes()
public void setImgbytes(byte[] imgbytes)
public BackOrder getBackOrder()
public void setBackOrder(BackOrder backOrder)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |