public abstract class UnknownCmp2Bean extends Object implements javax.ejb.EntityBean
| Modifier and Type | Field and Description |
|---|---|
Map<String,OperationsPolicy> |
allowedOperationsTable |
javax.ejb.EntityContext |
ejbContext |
| Constructor and Description |
|---|
UnknownCmp2Bean() |
| 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.
|
Object |
ejbCreateObject(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 |
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.
|
abstract String |
getFirstName() |
abstract String |
getLastName() |
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.
|
abstract void |
setFirstName(String firstName) |
abstract void |
setLastName(String lastName) |
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 javax.ejb.EntityContext ejbContext
public Map<String,OperationsPolicy> allowedOperationsTable
public abstract String getFirstName()
public abstract void setFirstName(String firstName)
public abstract String getLastName()
public abstract void setLastName(String lastName)
public int ejbHomeSum(int x,
int y)
public Object ejbCreateObject(String name) throws javax.ejb.CreateException
javax.ejb.CreateExceptionpublic void ejbPostCreateObject(String name)
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()
ejbLoad in interface javax.ejb.EntityBeanpublic void setEntityContext(javax.ejb.EntityContext ctx)
setEntityContext in interface javax.ejb.EntityBeanpublic void unsetEntityContext()
unsetEntityContext in interface javax.ejb.EntityBeanpublic void ejbStore()
ejbStore in interface javax.ejb.EntityBeanpublic void ejbRemove()
ejbRemove in interface javax.ejb.EntityBeanpublic void ejbActivate()
ejbActivate in interface javax.ejb.EntityBeanpublic void ejbPassivate()
ejbPassivate in interface javax.ejb.EntityBeanprotected void testAllowedOperations(String methodName)
Copyright © 1999–2017 The Apache Software Foundation. All rights reserved.