shop
Class ShoppingCartBean

java.lang.Object
shop.ShoppingCartBean
- All Implemented Interfaces:
- javax.ejb.EnterpriseBean, java.io.Serializable, javax.ejb.SessionBean
- public class ShoppingCartBean
- extends java.lang.Object
- implements javax.ejb.SessionBean
Creation date: (8/4/2001 2:25:19 PM)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mySessionCtx
private javax.ejb.SessionContext mySessionCtx
fieldTotal
private int fieldTotal
fieldFirstName
private java.lang.String fieldFirstName
fieldLastName
private java.lang.String fieldLastName
fieldAddress
private Address fieldAddress
fieldCustomerNumber
private java.lang.String fieldCustomerNumber
fieldOrder
private Order fieldOrder
ShoppingCartBean
public ShoppingCartBean()
addItem
public Item addItem(java.lang.String itemNumber,
java.lang.String itemName,
int itemQuantity)
throws javax.ejb.EJBException,
InvalidItemException,
OutOfStockException
ejbActivate
public void ejbActivate()
throws javax.ejb.EJBException
- ejbActivate method comment
- Specified by:
ejbActivate in interface javax.ejb.SessionBean
ejbCreate
public void ejbCreate()
throws javax.ejb.CreateException,
javax.ejb.EJBException
ejbCreate
public void ejbCreate(java.lang.String firstName,
java.lang.String lastName,
Address address,
java.lang.String customerNumber)
throws javax.ejb.CreateException,
javax.ejb.EJBException,
CreateException
ejbPassivate
public void ejbPassivate()
throws javax.ejb.EJBException
- ejbPassivate method comment
- Specified by:
ejbPassivate in interface javax.ejb.SessionBean
ejbRemove
public void ejbRemove()
throws javax.ejb.EJBException
- ejbRemove method comment
- Specified by:
ejbRemove in interface javax.ejb.SessionBean
setSessionContext
public void setSessionContext(javax.ejb.SessionContext ctx)
throws javax.ejb.EJBException
- setSessionContext method comment
- Specified by:
setSessionContext in interface javax.ejb.SessionBean
submitOrder
public SubmitOrderResult submitOrder(CreditCardInfo creditCardInfo,
AirMilesContainer airMilesContainer)
throws javax.ejb.EJBException
emptyOrder
public void emptyOrder(java.lang.String customerNumber)
throws javax.ejb.EJBException