|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.websphere.samples.pbw.ejb.ShoppingCartContent
public class ShoppingCartContent
A class to hold a shopping cart's contents.
Constructor Summary | |
---|---|
ShoppingCartContent()
|
Method Summary | |
---|---|
void |
addItem(Inventory si)
Add the item to the shopping cart. |
String |
getInventoryID(int index)
Return the inventory ID at the index given. |
int |
getQuantity(String inventoryID)
Return the quantity for the inventory ID given. |
void |
removeItem(Inventory si)
Remove the item from the shopping cart. |
int |
size()
Return the number of items in the cart. |
void |
updateItem(Inventory si)
Update the item in the shopping cart. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ShoppingCartContent()
Method Detail |
---|
public void addItem(Inventory si)
public void updateItem(Inventory si)
public void removeItem(Inventory si)
public int size()
public String getInventoryID(int index)
public int getQuantity(String inventoryID)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |