com.sun.j2ee.blueprints.customer.customer.ejb
Class CustomerEJB

java.lang.Object
  |
  +--com.sun.j2ee.blueprints.customer.customer.ejb.CustomerEJB

public class CustomerEJB
extends java.lang.Object
implements javax.ejb.SessionBean

Session Bean implementation for CustomerEJB EJB.

See Also:
Serialized Form

Constructor Summary
CustomerEJB()
           
 
Method Summary
 void changeContactInformation(ContactInformation info)
           
 boolean createAccount(java.lang.String userId, java.lang.String status, ContactInformation info)
           
 int createOrder(java.util.Collection lineItems, Address shipToAddr, Address billToAddr, java.lang.String shipToFirstName, java.lang.String shipToLastName, java.lang.String billToFirstName, java.lang.String billToLastName, CreditCard chargeCard, java.lang.String carrier, double totalPrice)
           
 void ejbActivate()
           
 void ejbCreate()
           
 void ejbPassivate()
           
 void ejbRemove()
           
 AccountModel getAccountDetails()
           
 OrderModel getOrderDetails(int orderId)
           
 void setSessionContext(javax.ejb.SessionContext sc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomerEJB

public CustomerEJB()
Method Detail

setSessionContext

public void setSessionContext(javax.ejb.SessionContext sc)
Specified by:
setSessionContext in interface javax.ejb.SessionBean

ejbCreate

public void ejbCreate()

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

getAccountDetails

public AccountModel getAccountDetails()

changeContactInformation

public void changeContactInformation(ContactInformation info)

createAccount

public boolean createAccount(java.lang.String userId,
                             java.lang.String status,
                             ContactInformation info)

getOrderDetails

public OrderModel getOrderDetails(int orderId)

createOrder

public int createOrder(java.util.Collection lineItems,
                       Address shipToAddr,
                       Address billToAddr,
                       java.lang.String shipToFirstName,
                       java.lang.String shipToLastName,
                       java.lang.String billToFirstName,
                       java.lang.String billToLastName,
                       CreditCard chargeCard,
                       java.lang.String carrier,
                       double totalPrice)


Copyright © 2000 Sun Microsystems Inc. All Rights Reserved.