| java.lang.Object org.mockejb.test.entity.PersonBMPBean
PersonBMPBean | public class PersonBMPBean implements EntityBean(Code) | | Bare-bones example of a BMP entity bean.
Some methods defined on the Person interface are not implemented.
ejbLoad and ejbStore are not implemented either, since they
are not relevant for MockEJB testing - MockEJB does not
call them directly.
author: Alexander Ananiev |
ejbActivate | public void ejbActivate()(Code) | | |
ejbFindByFirstName | public Collection ejbFindByFirstName(String firstName)(Code) | | This finder always returns the collection with only one PK value (1).
|
ejbFindByName | public long ejbFindByName(String firstName, String lastName)(Code) | | This finder always returns the same PK value (1).
|
ejbLoad | public void ejbLoad()(Code) | | MockEJB calls this method after every finder.
This is fake implementation that simply sets the PK.
The real entity loads itself from the database
See Also: javax.ejb.EntityBean.ejbLoad |
ejbPassivate | public void ejbPassivate()(Code) | | |
ejbRemove | public void ejbRemove() throws RemoveException(Code) | | |
ejbStore | public void ejbStore()(Code) | | MockEJB never calls this method.
See Also: javax.ejb.EntityBean.ejbStore |
generateId | public static synchronized long generateId()(Code) | | |
getId | public long getId()(Code) | | id. |
setEntityContext | public void setEntityContext(EntityContext c)(Code) | | |
setFirstName | public void setFirstName(String firstName)(Code) | | Parameters: firstName - The firstName to set. |
setId | public void setId(long id)(Code) | | Parameters: id - The id to set. |
setLastName | public void setLastName(String lastName)(Code) | | Parameters: lastName - The lastName to set. |
unsetEntityContext | public void unsetEntityContext()(Code) | | |
|
|