|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.ejb.EnterpriseContext.EJBContextImpl
org.jboss.ejb.MessageDrivenEnterpriseContext.MessageDrivenContextImpl
protected class 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.EJBContextgetEJBHome in class EnterpriseContext.EJBContextImplpublic javax.ejb.EJBLocalHome getEJBLocalHome()
getEJBLocalHome in interface javax.ejb.EJBContextgetEJBLocalHome in class EnterpriseContext.EJBContextImpl
public javax.ejb.TimerService getTimerService()
throws IllegalStateException
getTimerService in interface javax.ejb.EJBContextgetTimerService in class EnterpriseContext.EJBContextImplIllegalStateExceptionpublic Principal getCallerPrincipal()
EnterpriseContext.EJBContextImpl
getCallerPrincipal in interface javax.ejb.EJBContextgetCallerPrincipal in class EnterpriseContext.EJBContextImplpublic boolean isCallerInRole(String id)
EnterpriseContext.EJBContextImpl
isCallerInRole in interface javax.ejb.EJBContextisCallerInRole in class EnterpriseContext.EJBContextImplpublic UserTransaction getUserTransaction()
getUserTransaction in interface javax.ejb.EJBContextgetUserTransaction in class EnterpriseContext.EJBContextImplpublic boolean getRollbackOnly()
getRollbackOnly in interface javax.ejb.EJBContextgetRollbackOnly in class EnterpriseContext.EJBContextImplIllegalStateException - If transaction type is not Container,
or no transaction.public void setRollbackOnly()
setRollbackOnly in interface javax.ejb.EJBContextsetRollbackOnly in class EnterpriseContext.EJBContextImplIllegalStateException - 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 | |||||||||