com.sun.j2ee.blueprints.shoppingcart.cart.ejb
Interface ShoppingCart


public interface ShoppingCart
extends javax.ejb.EJBObject

This interface provides methods to add an item to the shoppingcart, delete an item from the shopping cart, and update item quantities in the shopping cart.


Method Summary
 void addItem(java.lang.String itemNo)
           
 void addItem(java.lang.String itemNo, int qty)
           
 void deleteItem(java.lang.String itemNo)
           
 void empty()
           
 ShoppingCartModel getDetails(java.util.Locale locale)
          get a list of items & their qty in the cart
 void updateItemQty(java.lang.String itemNo, int newQty)
           
 
Methods inherited from interface javax.ejb.EJBObject
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove
 

Method Detail

getDetails

public ShoppingCartModel getDetails(java.util.Locale locale)
                             throws java.rmi.RemoteException
get a list of items & their qty in the cart
Returns:
the model data as read-only.

addItem

public void addItem(java.lang.String itemNo)
             throws java.rmi.RemoteException

addItem

public void addItem(java.lang.String itemNo,
                    int qty)
             throws java.rmi.RemoteException

deleteItem

public void deleteItem(java.lang.String itemNo)
                throws java.rmi.RemoteException

updateItemQty

public void updateItemQty(java.lang.String itemNo,
                          int newQty)
                   throws java.rmi.RemoteException

empty

public void empty()
           throws java.rmi.RemoteException


Copyright © 2000 Sun Microsystems Inc. All Rights Reserved.