|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.test.cts.ejb.CtsBmpBean
Class CtsBmpBean is a simple BMP entity bean for testing.
If the table used for persistence here does not exist, ejbFindAll() will create it.
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 |
public CtsBmpBean()
Method Detail |
public AccountPK (src) ejbCreate(AccountPK (src) pk, java.lang.String personsName) throws CreateException (src) , DuplicateKeyException (src)
pk
- The primary key of the new instance.personsName
- Person name of the new instance.
CreateException (src)
- In case of database row creation failure.
DuplicateKeyException (src)
- If another instance with this primary key already exist.public void ejbPostCreate(AccountPK (src) pk, java.lang.String personsName)
public AccountPK (src) ejbFindByPrimaryKey(AccountPK (src) pk) throws FinderException (src)
pk
- Primary key of the instance searched for.
ObjectNotFoundException (src)
- If no instance with this primary key exists.
FinderException (src)
- If the lookup failed.public java.util.Collection ejbFindAll() throws FinderException (src)
FinderException (src)
- If the lookup failed.public java.util.Collection ejbFindByPersonsName(java.lang.String guysName) throws FinderException (src)
FinderException (src)
- If the lookup failed.public void ejbLoad()
ejbLoad
in interface EntityBean (src)
public void ejbStore()
ejbStore
in interface EntityBean (src)
public void ejbRemove()
ejbRemove
in interface EntityBean (src)
public void ejbActivate()
ejbActivate
in interface EntityBean (src)
public void ejbPassivate()
ejbPassivate
in interface EntityBean (src)
public void setEntityContext(EntityContext (src) ctx)
setEntityContext
in interface EntityBean (src)
ctx
- - An EntityContext interface for the instance. The instance should store the
reference to the context in an instance variable.public void unsetEntityContext()
unsetEntityContext
in interface EntityBean (src)
public void setPersonsName(java.lang.String personsName)
public java.lang.String getPersonsName()
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |