|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.ejb.EnterpriseContext.EJBContextImpl org.jboss.ejb.MessageDrivenEnterpriseContext.MessageDrivenContextImpl
The EJBContext for MDBs.
Constructor Summary | |
protected |
MessageDrivenEnterpriseContext.MessageDrivenContextImpl()
|
Method Summary | |
Principal |
getCallerPrincipal()
Get the Principal for the current caller. |
javax.ejb.EJBHome |
getEJBHome()
|
javax.ejb.EJBLocalHome |
getEJBLocalHome()
|
boolean |
getRollbackOnly()
If transaction type is not Container or there is no transaction then throw an exception. |
javax.ejb.TimerService |
getTimerService()
|
UserTransaction |
getUserTransaction()
|
boolean |
isCallerInRole(String id)
Checks if the current caller has a given role. |
void |
setRollbackOnly()
If transaction type is not Container or there is no transaction then throw an exception. |
Methods inherited from class org.jboss.ejb.EnterpriseContext.EJBContextImpl |
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 |
getCallerIdentity, getEnvironment, isCallerInRole, lookup |
Constructor Detail |
protected MessageDrivenEnterpriseContext.MessageDrivenContextImpl()
Method Detail |
public javax.ejb.EJBHome getEJBHome()
getEJBHome
in interface javax.ejb.EJBContext
getEJBHome
in class EnterpriseContext.EJBContextImpl
public javax.ejb.EJBLocalHome getEJBLocalHome()
getEJBLocalHome
in interface javax.ejb.EJBContext
getEJBLocalHome
in class EnterpriseContext.EJBContextImpl
public javax.ejb.TimerService getTimerService() throws IllegalStateException
getTimerService
in interface javax.ejb.EJBContext
getTimerService
in class EnterpriseContext.EJBContextImpl
IllegalStateException
public Principal getCallerPrincipal()
EnterpriseContext.EJBContextImpl
getCallerPrincipal
in interface javax.ejb.EJBContext
getCallerPrincipal
in class EnterpriseContext.EJBContextImpl
public boolean isCallerInRole(String id)
EnterpriseContext.EJBContextImpl
isCallerInRole
in interface javax.ejb.EJBContext
isCallerInRole
in class EnterpriseContext.EJBContextImpl
public UserTransaction getUserTransaction()
getUserTransaction
in interface javax.ejb.EJBContext
getUserTransaction
in class EnterpriseContext.EJBContextImpl
public boolean getRollbackOnly()
getRollbackOnly
in interface javax.ejb.EJBContext
getRollbackOnly
in class EnterpriseContext.EJBContextImpl
IllegalStateException
- If transaction type is not Container,
or no transaction.public void setRollbackOnly()
setRollbackOnly
in interface javax.ejb.EJBContext
setRollbackOnly
in class EnterpriseContext.EJBContextImpl
IllegalStateException
- If transaction type is not Container,
or no transaction.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |