com.sun.j2ee.blueprints.shoppingcart.cart.ejb
Class ShoppingCartEJB
java.lang.Object
|
+--com.sun.j2ee.blueprints.shoppingcart.cart.ejb.ShoppingCartEJB
- public class ShoppingCartEJB
- extends java.lang.Object
- implements javax.ejb.SessionBean
This class represents the implementation of shopping
cart as a Session EJB. The shopping cart EJB uses the
catalog EJB to get details about items in the cart.
- See Also:
Catalog
, Serialized Form
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
ShoppingCartEJB
public ShoppingCartEJB()
getDetails
public ShoppingCartModel getDetails(java.util.Locale locale)
addItem
public void addItem(java.lang.String itemNo)
addItem
public void addItem(java.lang.String itemNo,
int qty)
deleteItem
public void deleteItem(java.lang.String itemNo)
updateItemQty
public void updateItemQty(java.lang.String itemNo,
int newQty)
empty
public void empty()
ejbCreate
public void ejbCreate()
ejbCreate
public void ejbCreate(java.util.HashMap starting)
setSessionContext
public void setSessionContext(javax.ejb.SessionContext sc)
- Specified by:
- setSessionContext in interface javax.ejb.SessionBean
ejbRemove
public void ejbRemove()
- Specified by:
- ejbRemove in interface javax.ejb.SessionBean
ejbActivate
public void ejbActivate()
- Specified by:
- ejbActivate in interface javax.ejb.SessionBean
ejbPassivate
public void ejbPassivate()
- Specified by:
- ejbPassivate in interface javax.ejb.SessionBean
Copyright © 2000 Sun Microsystems Inc. All Rights Reserved.