public class BasicBmpBean extends Object implements javax.ejb.EntityBean
| Modifier and Type | Field and Description |
|---|---|
Hashtable |
allowedOperationsTable |
javax.ejb.EntityContext |
ejbContext |
String |
firstName |
String |
lastName |
int |
primaryKey |
| Constructor and Description |
|---|
BasicBmpBean() |
| 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)
Maps to BasicBmpHome.findByPrimaryKey
|
Integer |
ejbFindByPrimaryKey(Integer primaryKey)
Maps to BasicBmpHome.findByPrimaryKey
|
Collection |
ejbFindEmptyCollection()
Maps to BasicBmpHome.findEmptyCollection
|
Enumeration |
ejbFindEmptyEnumeration()
Maps to BasicBmpHome.findEmptyEnumeration()
|
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.
|
public int primaryKey
public String firstName
public String lastName
public javax.ejb.EntityContext ejbContext
public Hashtable allowedOperationsTable
public int ejbHomeSum(int x,
int y)
x - y - BasicBmpHome.sum(int, int)public Collection ejbFindEmptyCollection() throws javax.ejb.FinderException, RemoteException
javax.ejb.FinderExceptionRemoteExceptionBasicBmpHome.sum(int, int)public Enumeration ejbFindEmptyEnumeration() throws javax.ejb.FinderException
javax.ejb.FinderExceptionpublic Integer ejbFindByPrimaryKey(Integer primaryKey) throws javax.ejb.FinderException
primaryKey - javax.ejb.FinderExceptionBasicBmpHome.sum(int, int)public Collection ejbFindByLastName(String lastName) throws javax.ejb.FinderException
lastName - javax.ejb.FinderExceptionBasicBmpHome.sum(int, int)public Integer ejbCreateObject(String name) throws javax.ejb.CreateException
name - javax.ejb.CreateExceptionBasicBmpHome.createObject(java.lang.String)public void ejbPostCreateObject(String name) throws javax.ejb.CreateException
javax.ejb.CreateExceptionpublic String businessMethod(String text)
BasicBmpObject.businessMethod(java.lang.String)public void throwApplicationException()
throws ApplicationException
ApplicationExceptionpublic void throwSystemException_NullPointer()
public Properties getPermissionsReport()
BasicBmpObject.getPermissionsReport()public OperationsPolicy getAllowedOperationsReport(String methodName)
methodName - The method for which to get the allowed opperations reportBasicBmpObject.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.