org.jboss.test.cts.ejb
Class CtsBmpBean

java.lang.Object
  extended byorg.jboss.test.cts.ejb.CtsBmpBean
All Implemented Interfaces:
EnterpriseBean (src) , EntityBean (src) , java.io.Serializable

public class CtsBmpBean
extends java.lang.Object
implements EntityBean (src)

Class CtsBmpBean is a simple BMP entity bean for testing.

If the table used for persistence here does not exist, ejbFindAll() will create it.

See Also:
Serialized Form

Constructor Summary
CtsBmpBean()
           
 
Method Summary
 void ejbActivate()
          Method ejbActivate
 AccountPK (src) ejbCreate(AccountPK (src)  pk, java.lang.String personsName)
          Create a new instance.
 java.util.Collection ejbFindAll()
          Find all instances.
 java.util.Collection ejbFindByPersonsName(java.lang.String guysName)
          Find all instances where the personsName property is equal to the argument.
 AccountPK (src) ejbFindByPrimaryKey(AccountPK (src)  pk)
          Find a single instance by primary key.
 void ejbLoad()
          Method ejbLoad
 void ejbPassivate()
          Method ejbPassivate
 void ejbPostCreate(AccountPK (src)  pk, java.lang.String personsName)
          Method ejbPostCreate
 void ejbRemove()
          Method ejbRemove
 void ejbStore()
          Method ejbStore
 java.lang.String getPersonsName()
          Getter for property personsName.
 void setEntityContext(EntityContext (src)  ctx)
          Method setEntityContext
 void setPersonsName(java.lang.String personsName)
          Setter for property personsName.
 void unsetEntityContext()
          Method unsetEntityContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CtsBmpBean

public CtsBmpBean()
Method Detail

ejbCreate

public AccountPK (src)  ejbCreate(AccountPK (src)  pk,
                           java.lang.String personsName)
                    throws CreateException (src) ,
                           DuplicateKeyException (src) 
Create a new instance.

Parameters:
pk - The primary key of the new instance.
personsName - Person name of the new instance.
Throws:
CreateException (src) - In case of database row creation failure.
DuplicateKeyException (src) - If another instance with this primary key already exist.

ejbPostCreate

public void ejbPostCreate(AccountPK (src)  pk,
                          java.lang.String personsName)
Method ejbPostCreate


ejbFindByPrimaryKey

public AccountPK (src)  ejbFindByPrimaryKey(AccountPK (src)  pk)
                              throws FinderException (src) 
Find a single instance by primary key.

Parameters:
pk - Primary key of the instance searched for.
Throws:
ObjectNotFoundException (src) - If no instance with this primary key exists.
FinderException (src) - If the lookup failed.

ejbFindAll

public java.util.Collection ejbFindAll()
                                throws FinderException (src) 
Find all instances.

Throws:
FinderException (src) - If the lookup failed.

ejbFindByPersonsName

public java.util.Collection ejbFindByPersonsName(java.lang.String guysName)
                                          throws FinderException (src) 
Find all instances where the personsName property is equal to the argument.

Throws:
FinderException (src) - If the lookup failed.

ejbLoad

public void ejbLoad()
Method ejbLoad

Specified by:
ejbLoad in interface EntityBean (src)

ejbStore

public void ejbStore()
Method ejbStore

Specified by:
ejbStore in interface EntityBean (src)

ejbRemove

public void ejbRemove()
Method ejbRemove

Specified by:
ejbRemove in interface EntityBean (src)

ejbActivate

public void ejbActivate()
Method ejbActivate

Specified by:
ejbActivate in interface EntityBean (src)

ejbPassivate

public void ejbPassivate()
Method ejbPassivate

Specified by:
ejbPassivate in interface EntityBean (src)

setEntityContext

public void setEntityContext(EntityContext (src)  ctx)
Method setEntityContext

Specified by:
setEntityContext in interface EntityBean (src)
Parameters:
ctx - - An EntityContext interface for the instance. The instance should store the reference to the context in an instance variable.

unsetEntityContext

public void unsetEntityContext()
Method unsetEntityContext

Specified by:
unsetEntityContext in interface EntityBean (src)

setPersonsName

public void setPersonsName(java.lang.String personsName)
Setter for property personsName.


getPersonsName

public java.lang.String getPersonsName()
Getter for property personsName.