|
IBM WebSphere Application ServerTM Release 8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EntityContextExtension
The EntityContextExtension
interface may be used by an Entity EJB
to invoke WebSphere-specific EJB Container services.
An Entity EJB may invoke the EntityContextExtension methods by casting the context object passed into the EJB's setEntityContext() method, to com.ibm.websphere.ejbcontainer.EntityContextExtension. Typically the code in setEntityContext() assigns the context object to a bean instance variable for later use by other bean methods.
In WebSphere, all javax.ejb.EntityContext objects also implement this interface. This allows the bean to use a single 'context' instance variable (of type EntityContextExtension) and be able to invoke EJB specification-defined methods as well as WebSphere-defined methods on the same context object. It is also possible, of course, to assign the context object to two instance variables, one of type javax.ejb.EntityContext and another of type com.ibm.websphere.ejbcontainer.EntityContextExtension.
Note: Some of the methods on this interface may result in behavior not compliant with the official EJB specification. If this is the case, the documentation for that method will indicate so.
EJBContextExtension
Method Summary |
---|
Methods inherited from interface javax.ejb.EntityContext |
---|
getEJBLocalObject, getEJBObject, getPrimaryKey |
Methods inherited from interface com.ibm.websphere.ejbcontainer.EJBContextExtension |
---|
flushCache, isTransactionGlobal |
Methods inherited from interface javax.ejb.EJBContext |
---|
getCallerIdentity, getCallerPrincipal, getContextData, getEJBHome, getEJBLocalHome, getEnvironment, getRollbackOnly, getTimerService, getUserTransaction, isCallerInRole, isCallerInRole, lookup, setRollbackOnly |
|
IBM WebSphere Application ServerTM Release 8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |