|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ShoppingCart
Local interface for ShoppingCart stateful session bean.
| Method Summary | |
|---|---|
void |
addItem(StoreItem item)
Add an item to the cart. |
void |
checkInventory(StoreItem si)
Metho checkInventory. |
void |
checkInventory(java.util.Vector items)
Method checkInventory. |
OrderInfo |
createOrder(java.lang.String customerID,
java.lang.String billName,
java.lang.String billAddr1,
java.lang.String billAddr2,
java.lang.String billCity,
java.lang.String billState,
java.lang.String billZip,
java.lang.String billPhone,
java.lang.String shipName,
java.lang.String shipAddr1,
java.lang.String shipAddr2,
java.lang.String shipCity,
java.lang.String shipState,
java.lang.String shipZip,
java.lang.String shipPhone,
java.lang.String creditCard,
java.lang.String ccNum,
java.lang.String ccExpireMonth,
java.lang.String ccExpireYear,
java.lang.String cardHolder,
int shippingMethod,
java.util.Vector items)
Create an order with contents of a shopping cart. |
ShoppingCartContents |
getCartContents()
Get the contents of the shopping cart. |
java.util.Vector |
getItems()
Get the items in the shopping cart. |
float |
getTotalCost()
Get the total cost of all items in the shopping cart. |
void |
removeItem(StoreItem item)
Remove an item from the cart. |
void |
setItems(java.util.Vector items)
Set the items in the shopping cart. |
| Methods inherited from interface javax.ejb.EJBObject |
|---|
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove |
| Method Detail |
|---|
void addItem(StoreItem item)
throws java.rmi.RemoteException
item - Item to add to the cart.
java.rmi.RemoteException
void removeItem(StoreItem item)
throws java.rmi.RemoteException
item - Item to remove from cart.
java.rmi.RemoteException
java.util.Vector getItems()
throws java.rmi.RemoteException
java.rmi.RemoteException
void setItems(java.util.Vector items)
throws java.rmi.RemoteException
items - A Vector of the items.
java.rmi.RemoteException
float getTotalCost()
throws java.rmi.RemoteException
java.rmi.RemoteException
ShoppingCartContents getCartContents()
throws java.rmi.RemoteException
java.rmi.RemoteException
OrderInfo createOrder(java.lang.String customerID,
java.lang.String billName,
java.lang.String billAddr1,
java.lang.String billAddr2,
java.lang.String billCity,
java.lang.String billState,
java.lang.String billZip,
java.lang.String billPhone,
java.lang.String shipName,
java.lang.String shipAddr1,
java.lang.String shipAddr2,
java.lang.String shipCity,
java.lang.String shipState,
java.lang.String shipZip,
java.lang.String shipPhone,
java.lang.String creditCard,
java.lang.String ccNum,
java.lang.String ccExpireMonth,
java.lang.String ccExpireYear,
java.lang.String cardHolder,
int shippingMethod,
java.util.Vector items)
throws java.rmi.RemoteException
customerID - customer's IDbillName - billing namebillAddr1 - billing address line 1billAddr2 - billing address line 2billCity - billing address citybillState - billing address statebillZip - billing address zip codebillPhone - billing phoneshipName - shippng nameshipAddr1 - shippng address line 1shipAddr2 - shippng address line 2shipCity - shippng address cityshipState - shippng address stateshipZip - shippng address zip codeshipPhone - shippng phonecreditCard - credit cardccNum - credit card numberccExpireMonth - credit card expiration monthccExpireYear - credit card expiration yearcardHolder - credit card holder nameshippingMethod - index of shipping method useditems - vector of StoreItems ordered
java.rmi.RemoteException
void checkInventory(java.util.Vector items)
throws java.rmi.RemoteException
items -
java.rmi.RemoteException
void checkInventory(StoreItem si)
throws java.rmi.RemoteException
si -
java.rmi.RemoteException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||