|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.ejb.EnterpriseContext.EJBContextImpl (src)
org.jboss.ejb.EntityEnterpriseContext.EntityContextImpl
Constructor Summary | |
protected |
EntityEnterpriseContext.EntityContextImpl()
|
Method Summary | |
java.security.Principal |
getCallerPrincipal()
Obtains the java.security.Principal of the caller. |
EJBHome (src) |
getEJBHome()
Obtain the enterprise bean's remote home interface. |
EJBLocalHome (src) |
getEJBLocalHome()
Obtain the enterprise bean's local home interface. |
EJBLocalObject (src) |
getEJBLocalObject()
Obtain a reference to the EJB local object that is currently associated with the instance. |
EJBObject (src) |
getEJBObject()
Obtain a reference to the EJB object that is currently associated with the instance. |
java.lang.Object |
getPrimaryKey()
Obtain the primary key of the EJB object that is currently associated with this instance. |
boolean |
getRollbackOnly()
Test if the transaction has been marked for rollback only. |
TimerService (src) |
getTimerService()
Get access to the EJB Timer Service. |
UserTransaction (src) |
getUserTransaction()
Obtain the transaction demarcation interface. |
boolean |
isCallerInRole(java.lang.String id)
Tests if the caller has a given role. |
void |
setRollbackOnly()
Mark the current transaction for rollback. |
Methods inherited from class org.jboss.ejb.EnterpriseContext.EJBContextImpl (src) |
getCallerIdentity, getEnvironment, isCallerInRole, lookup |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.ejb.EJBContext (src) |
getCallerIdentity, getEnvironment, isCallerInRole, lookup |
Constructor Detail |
protected EntityEnterpriseContext.EntityContextImpl()
Method Detail |
public EJBHome (src) getEJBHome()
EJBContext (src)
getEJBHome
in interface EJBContext (src)
getEJBHome
in class EnterpriseContext.EJBContextImpl (src)
public EJBLocalHome (src) getEJBLocalHome()
EJBContext (src)
getEJBLocalHome
in interface EJBContext (src)
getEJBLocalHome
in class EnterpriseContext.EJBContextImpl (src)
public java.security.Principal getCallerPrincipal()
EJBContext (src)
getCallerPrincipal
in interface EJBContext (src)
getCallerPrincipal
in class EnterpriseContext.EJBContextImpl (src)
public boolean getRollbackOnly()
EJBContext (src)
getRollbackOnly
in interface EJBContext (src)
getRollbackOnly
in class EnterpriseContext.EJBContextImpl (src)
public void setRollbackOnly()
EJBContext (src)
setRollbackOnly
in interface EJBContext (src)
setRollbackOnly
in class EnterpriseContext.EJBContextImpl (src)
public boolean isCallerInRole(java.lang.String id)
EJBContext (src)
isCallerInRole
in interface EJBContext (src)
isCallerInRole
in class EnterpriseContext.EJBContextImpl (src)
public UserTransaction (src) getUserTransaction()
EJBContext (src)
getUserTransaction
in interface EJBContext (src)
getUserTransaction
in class EnterpriseContext.EJBContextImpl (src)
public EJBObject (src) getEJBObject()
EntityContext (src)
Obtain a reference to the EJB object that is currently associated with the instance.
An instance of an entity enterprise Bean can call this method only when the instance is associated with an EJB object identity, i.e. in the ejbActivate, ejbPassivate, ejbPostCreate, ejbRemove, ejbLoad, ejbStore, and business methods.
An instance can use this method, for example, when it wants to pass a reference to itself in a method argument or result.
getEJBObject
in interface EntityContext (src)
public EJBLocalObject (src) getEJBLocalObject()
EntityContext (src)
Obtain a reference to the EJB local object that is currently associated with the instance.
An instance of an entity enterprise Bean can call this method only when the instance is associated with an EJB local object identity, i.e. in the ejbActivate, ejbPassivate, ejbPostCreate, ejbRemove, ejbLoad, ejbStore, and business methods.
An instance can use this method, for example, when it wants to pass a reference to itself in a method argument or result.
getEJBLocalObject
in interface EntityContext (src)
public java.lang.Object getPrimaryKey()
EntityContext (src)
Obtain the primary key of the EJB object that is currently associated with this instance.
An instance of an entity enterprise Bean can call this method only when the instance is associated with an EJB object identity, i.e. in the ejbActivate, ejbPassivate, ejbPostCreate, ejbRemove, ejbLoad, ejbStore, and business methods.
Note: The result of this method is that same as the result of getEJBObject().getPrimaryKey().
getPrimaryKey
in interface EntityContext (src)
public TimerService (src) getTimerService() throws java.lang.IllegalStateException
EJBContext (src)
getTimerService
in interface EJBContext (src)
getTimerService
in class EnterpriseContext.EJBContextImpl (src)
java.lang.IllegalStateException
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |