|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.websphere.samples.pbw.jpa.Inventory
@Entity(name="Inventory") public class Inventory
Inventory is the bean mapping for the INVENTORY table. It provides information about products the store has for sale.
Inventory
,
Serialized FormConstructor Summary | |
---|---|
Inventory()
|
|
Inventory(Inventory item)
Create a new Inventory. |
|
Inventory(String key,
String name,
String heading,
String desc,
String pkginfo,
String image,
float price,
float cost,
int quantity,
int category,
String notes,
boolean isPublic)
Create a new Inventory. |
Method Summary | |
---|---|
BackOrder |
getBackOrder()
|
int |
getCategory()
|
float |
getCost()
|
String |
getDescription()
|
String |
getHeading()
|
String |
getID()
Same as getInventoryId. |
String |
getImage()
|
byte[] |
getImgbytes()
|
String |
getInventoryId()
|
int |
getMaxThreshold()
|
int |
getMinThreshold()
|
String |
getName()
|
String |
getNotes()
|
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(String description)
|
void |
setHeading(String heading)
|
void |
setID(String id)
Same as setInventoryId. |
void |
setImage(String image)
|
void |
setImgbytes(byte[] imgbytes)
|
void |
setInventoryId(String id)
|
void |
setIsPublic(boolean isPublic)
|
void |
setMaxThreshold(int maxThreshold)
|
void |
setMinThreshold(int minThreshold)
|
void |
setName(String name)
|
void |
setNotes(String notes)
|
void |
setPkginfo(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(String key, String name, String heading, String desc, String pkginfo, String image, float price, float cost, int quantity, int category, 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(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 String getDescription()
public void setDescription(String description)
public String getHeading()
public void setHeading(String heading)
public String getImage()
public void setImage(String image)
public String getName()
public void setName(String name)
public String getNotes()
public void setNotes(String notes)
public String getPkginfo()
public void setPkginfo(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 String getInventoryId()
public void setInventoryId(String id)
public String getID()
public void setID(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 |