public class AllowedOperationsCmpBean extends Object implements javax.ejb.EntityBean
| Modifier and Type | Field and Description |
|---|---|
static Map<String,OperationsPolicy> |
allowedOperationsTable |
javax.ejb.EntityContext |
ejbContext |
String |
firstName |
String |
lastName |
int |
number |
Integer |
primaryKey |
| Constructor and Description |
|---|
AllowedOperationsCmpBean() |
| Modifier and Type | Method and Description |
|---|---|
String |
businessMethod(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.
|
Integer |
ejbCreateObject(String name)
Maps to BasicCmpHome.create
|
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(String name) |
void |
ejbRemove()
A container invokes this method before it removes the EJB object
that is currently associated with the instance.
|
void |
ejbStore()
A container invokes this method to instruct the
instance to synchronize its state by storing it to the underlying
database.
|
OperationsPolicy |
getAllowedOperationsReport(String methodName)
Maps to BasicCmpObject.getAllowedOperationsReport
Returns a report of the allowed opperations
for one of the bean's methods.
|
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.
|
protected void |
testAllowedOperations(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.
|
public Integer primaryKey
public String firstName
public String lastName
public int number
public javax.ejb.EntityContext ejbContext
public static Map<String,OperationsPolicy> allowedOperationsTable
public int ejbHomeSum(int x,
int y)
x - y - BasicCmpHome.sum(int, int)public void ejbHomeVoidSelect()
public Integer ejbCreateObject(String name) throws javax.ejb.CreateException
javax.ejb.CreateExceptionpublic void ejbPostCreateObject(String name) throws javax.ejb.CreateException
javax.ejb.CreateExceptionpublic String businessMethod(String text)
BasicCmpObject.businessMethod(java.lang.String)public void throwApplicationException()
throws ApplicationException
ApplicationExceptionpublic void throwSystemException_NullPointer()
public Properties getPermissionsReport()
BasicCmpObject.getPermissionsReport()public OperationsPolicy getAllowedOperationsReport(String methodName)
methodName - The method for which to get the allowed opperations reportBasicCmpObject.getAllowedOperationsReport(java.lang.String)public void ejbLoad()
throws javax.ejb.EJBException,
RemoteException
ejbLoad in interface javax.ejb.EntityBeanjavax.ejb.EJBExceptionRemoteExceptionpublic void setEntityContext(javax.ejb.EntityContext ctx)
throws javax.ejb.EJBException,
RemoteException
setEntityContext in interface javax.ejb.EntityBeanjavax.ejb.EJBExceptionRemoteExceptionpublic void unsetEntityContext()
throws javax.ejb.EJBException,
RemoteException
unsetEntityContext in interface javax.ejb.EntityBeanjavax.ejb.EJBExceptionRemoteExceptionpublic void ejbStore()
throws javax.ejb.EJBException,
RemoteException
ejbStore in interface javax.ejb.EntityBeanjavax.ejb.EJBExceptionRemoteExceptionpublic void ejbRemove()
throws javax.ejb.RemoveException,
javax.ejb.EJBException,
RemoteException
ejbRemove in interface javax.ejb.EntityBeanjavax.ejb.RemoveExceptionjavax.ejb.EJBExceptionRemoteExceptionpublic void ejbActivate()
throws javax.ejb.EJBException,
RemoteException
ejbActivate in interface javax.ejb.EntityBeanjavax.ejb.EJBExceptionRemoteExceptionpublic void ejbPassivate()
throws javax.ejb.EJBException,
RemoteException
ejbPassivate in interface javax.ejb.EntityBeanjavax.ejb.EJBExceptionRemoteExceptionprotected void testAllowedOperations(String methodName)
Copyright © 1999–2017 The Apache Software Foundation. All rights reserved.