|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.openejb.test.entity.cmp.BasicCmp2PojoBean
public abstract class BasicCmp2PojoBean
A test bean that is essentially the same as the BasicCmp2Bean, but with a concrete implementation of one of the fields and accessors. This tests our ability to offer a migration path toward EJB3 style entity beans.
Field Summary | |
---|---|
java.util.Map<java.lang.String,OperationsPolicy> |
allowedOperationsTable
|
javax.ejb.EntityContext |
ejbContext
|
Constructor Summary | |
---|---|
BasicCmp2PojoBean()
|
Method Summary | |
---|---|
java.lang.String |
businessMethod(java.lang.String text)
Maps to BasicCmpObject.businessMethod |
void |
ejbActivate()
A container invokes this method when the instance is taken out of the pool of available instances to become associated with a specific EJB object. |
java.lang.Integer |
ejbCreateObject(java.lang.String name)
Maps to BasicCmpHome.create(String name) |
int |
ejbHomeSum(int x,
int y)
Maps to BasicCmpHome.sum Adds x and y and returns the result. |
void |
ejbHomeVoidSelect()
|
void |
ejbLoad()
A container invokes this method to instruct the instance to synchronize its state by loading it state from the underlying database. |
void |
ejbPassivate()
A container invokes this method on an instance before the instance becomes disassociated with a specific EJB object. |
void |
ejbPostCreateObject(java.lang.String name)
|
void |
ejbRemove()
A container invokes this method before it removes the EJB object that is currently associated with the instance. |
abstract void |
ejbSelectRemoveById(java.lang.Integer someId)
|
void |
ejbStore()
A container invokes this method to instruct the instance to synchronize its state by storing it to the underlying database. |
OperationsPolicy |
getAllowedOperationsReport(java.lang.String methodName)
Maps to BasicCmpObject.getAllowedOperationsReport Returns a report of the allowed opperations for one of the bean's methods. |
java.lang.String |
getFirstName()
Concrete implementation of the firstName accessors. |
abstract java.lang.Integer |
getId()
|
abstract java.lang.String |
getLastName()
|
java.util.Properties |
getPermissionsReport()
Maps to BasicCmpObject.getPermissionsReport Returns a report of the bean's runtime permissions |
void |
setEntityContext(javax.ejb.EntityContext ctx)
Set the associated entity context. |
void |
setFirstName(java.lang.String firstName)
|
abstract void |
setId(java.lang.Integer primaryKey)
|
abstract void |
setLastName(java.lang.String lastName)
|
protected void |
testAllowedOperations(java.lang.String methodName)
|
void |
throwApplicationException()
Throws an ApplicationException when invoked |
void |
throwSystemException_NullPointer()
Throws a java.lang.NullPointerException when invoked This is a system exception and should result in the destruction of the instance and invalidation of the remote reference. |
void |
unsetEntityContext()
Unset the associated entity context. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public javax.ejb.EntityContext ejbContext
public java.util.Map<java.lang.String,OperationsPolicy> allowedOperationsTable
Constructor Detail |
---|
public BasicCmp2PojoBean()
Method Detail |
---|
public abstract java.lang.Integer getId()
public abstract void setId(java.lang.Integer primaryKey)
public java.lang.String getFirstName()
public void setFirstName(java.lang.String firstName)
public abstract java.lang.String getLastName()
public abstract void setLastName(java.lang.String lastName)
public abstract void ejbSelectRemoveById(java.lang.Integer someId) throws javax.ejb.FinderException
javax.ejb.FinderException
public int ejbHomeSum(int x, int y)
public void ejbHomeVoidSelect() throws javax.ejb.FinderException
javax.ejb.FinderException
public java.lang.Integer ejbCreateObject(java.lang.String name) throws javax.ejb.CreateException
javax.ejb.CreateException
public void ejbPostCreateObject(java.lang.String name)
public java.lang.String businessMethod(java.lang.String text)
public void throwApplicationException() throws ApplicationException
ApplicationException
public void throwSystemException_NullPointer()
public java.util.Properties getPermissionsReport()
public OperationsPolicy getAllowedOperationsReport(java.lang.String methodName)
methodName
- The method for which to get the allowed opperations reportpublic void ejbLoad()
ejbLoad
in interface javax.ejb.EntityBean
public void setEntityContext(javax.ejb.EntityContext ctx)
setEntityContext
in interface javax.ejb.EntityBean
public void unsetEntityContext()
unsetEntityContext
in interface javax.ejb.EntityBean
public void ejbStore()
ejbStore
in interface javax.ejb.EntityBean
public void ejbRemove()
ejbRemove
in interface javax.ejb.EntityBean
public void ejbActivate()
ejbActivate
in interface javax.ejb.EntityBean
public void ejbPassivate()
ejbPassivate
in interface javax.ejb.EntityBean
protected void testAllowedOperations(java.lang.String methodName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |