public class AllowedOperationsBmpBean extends Object implements javax.ejb.EntityBean
| Modifier and Type | Field and Description |
|---|---|
protected javax.ejb.EntityContext |
ejbContext |
protected String |
firstName |
protected String |
lastName |
protected int |
primaryKey |
| Constructor and Description |
|---|
AllowedOperationsBmpBean() |
| Modifier and Type | Method and Description |
|---|---|
String |
businessMethod(String text)
Maps to BasicBmpObject.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 BasicBmpHome.create
|
Collection |
ejbFindByLastName(String lastName) |
Integer |
ejbFindByPrimaryKey(Integer primaryKey)
Maps to BasicBmpHome.findByPrimaryKey
|
Collection |
ejbFindEmptyCollection()
Maps to BasicBmpHome.findEmptyCollection
|
Enumeration |
ejbFindEmptyEnumeration() |
int |
ejbHomeSum(int x,
int y)
Maps to BasicBmpHome.sum
Adds x and y and returns the result.
|
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 BasicBmpObject.getAllowedOperationsReport
Returns a report of the allowed opperations
for one of the bean's methods.
|
Properties |
getPermissionsReport()
Maps to BasicBmpObject.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.
|
protected int primaryKey
protected String firstName
protected String lastName
protected javax.ejb.EntityContext ejbContext
public int ejbHomeSum(int x,
int y)
BasicBmpHome.sum(int, int)public Collection ejbFindEmptyCollection()
public Enumeration ejbFindEmptyEnumeration()
public Collection ejbFindByLastName(String lastName)
public Integer ejbFindByPrimaryKey(Integer primaryKey)
primaryKey - javax.ejb.FinderExceptionpublic 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)
public void throwApplicationException()
throws ApplicationException
ApplicationExceptionpublic void throwSystemException_NullPointer()
public Properties getPermissionsReport()
public OperationsPolicy getAllowedOperationsReport(String methodName)
methodName - The method for which to get the allowed opperations reportpublic 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.