|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.websphere.samples.pbw.ejb.CatalogMgr
public class CatalogMgr
The CatalogMgr provides transactional access to the catalog of items the store is willing to sell to customers.
Inventory
Constructor Summary | |
---|---|
CatalogMgr()
|
Method Summary | |
---|---|
boolean |
addItem(Inventory item)
Add an inventory item. |
byte[] |
getItemImageBytes(String inventoryID)
Get the image for the inventory item. |
Inventory |
getItemInventory(String inventoryID)
Get the Inventory item for the given ID. |
Vector<Inventory> |
getItemsByCategory(int category)
Get all inventory items for the given category. |
void |
setItemImageBytes(String inventoryID,
byte[] imgbytes)
Set the image for the inventory item. |
void |
setItemQuantity(String inventoryID,
int quantity)
Set the inventory item's quantity. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CatalogMgr()
Method Detail |
---|
public Vector<Inventory> getItemsByCategory(int category)
category
- of items desired.
public Inventory getItemInventory(String inventoryID)
inventoryID
- - ID of the Inventory item desired.
public boolean addItem(Inventory item)
item
- The Inventory to add.
public byte[] getItemImageBytes(String inventoryID)
inventoryID
- The id of the inventory item wanted.
public void setItemImageBytes(String inventoryID, byte[] imgbytes)
inventoryID
- The id of the inventory item wanted.imgbytes
- Buffer containing the image.public void setItemQuantity(String inventoryID, int quantity)
inventoryID
- The inventory item's ID.quantity
- The inventory item's new quantity.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |