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

java.lang.Object
  |
  +--com.sun.j2ee.blueprints.smarticket.ejb.customer.CustomerEJB
All Implemented Interfaces:
javax.ejb.EnterpriseBean, javax.ejb.EntityBean, java.io.Serializable

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

Implements the Customer EJB component. Takes care of business methods and database access.

See Also:
Serialized Form

Field Summary
protected static java.lang.String CUSTOMER_DB
           
protected  javax.sql.DataSource dataSource
           
protected  javax.ejb.EntityContext entityContext
           
protected  CustomerInformation information
           
 
Constructor Summary
CustomerEJB()
           
 
Method Summary
 void ejbActivate()
           
 java.lang.String ejbCreate(java.lang.String u, java.lang.String p, java.lang.String zc, java.lang.String cc)
           
 java.lang.String ejbFindByPrimaryKey(java.lang.String key)
           
 void ejbLoad()
           
 void ejbPassivate()
           
 void ejbPostCreate(java.lang.String u, java.lang.String p, java.lang.String zc, java.lang.String cc)
           
 void ejbRemove()
           
 void ejbStore()
           
 CustomerInformation getInformation()
           
 void setEntityContext(javax.ejb.EntityContext ec)
           
 void unsetEntityContext()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CUSTOMER_DB

protected static final java.lang.String CUSTOMER_DB

entityContext

protected javax.ejb.EntityContext entityContext

dataSource

protected javax.sql.DataSource dataSource

information

protected CustomerInformation information
Constructor Detail

CustomerEJB

public CustomerEJB()
Method Detail

setEntityContext

public void setEntityContext(javax.ejb.EntityContext ec)
Specified by:
setEntityContext in interface javax.ejb.EntityBean

unsetEntityContext

public void unsetEntityContext()
Specified by:
unsetEntityContext in interface javax.ejb.EntityBean

ejbCreate

public java.lang.String ejbCreate(java.lang.String u,
                                  java.lang.String p,
                                  java.lang.String zc,
                                  java.lang.String cc)
                           throws javax.ejb.EJBException,
                                  javax.ejb.DuplicateKeyException,
                                  javax.ejb.CreateException

ejbLoad

public void ejbLoad()
Specified by:
ejbLoad in interface javax.ejb.EntityBean

ejbFindByPrimaryKey

public java.lang.String ejbFindByPrimaryKey(java.lang.String key)
                                     throws javax.ejb.FinderException

ejbPostCreate

public void ejbPostCreate(java.lang.String u,
                          java.lang.String p,
                          java.lang.String zc,
                          java.lang.String cc)
                   throws javax.ejb.EJBException,
                          javax.ejb.DuplicateKeyException,
                          javax.ejb.CreateException

ejbActivate

public void ejbActivate()
Specified by:
ejbActivate in interface javax.ejb.EntityBean

ejbPassivate

public void ejbPassivate()
Specified by:
ejbPassivate in interface javax.ejb.EntityBean

ejbStore

public void ejbStore()
Specified by:
ejbStore in interface javax.ejb.EntityBean

ejbRemove

public void ejbRemove()
Specified by:
ejbRemove in interface javax.ejb.EntityBean

getInformation

public CustomerInformation getInformation()


Copyright © 2002 Sun Microsystems Inc. All rights reserved.