com.thoughtworks.xjb.ejb
Class XjbSessionContext
java.lang.Object
com.thoughtworks.xjb.ejb.XjbSessionContext
- All Implemented Interfaces:
- javax.ejb.EJBContext, javax.ejb.SessionContext
- Direct Known Subclasses:
- CmtSessionContext
- public class XjbSessionContext
- extends java.lang.Object
- implements javax.ejb.SessionContext
- Author:
- Dan North
|
Constructor Summary |
XjbSessionContext(javax.ejb.EJBHome home,
javax.ejb.EJBObject remote)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XjbSessionContext
public XjbSessionContext(javax.ejb.EJBHome home,
javax.ejb.EJBObject remote)
getEJBObject
public javax.ejb.EJBObject getEJBObject()
throws java.lang.IllegalStateException
- Specified by:
getEJBObject in interface javax.ejb.SessionContext
- Throws:
java.lang.IllegalStateException
getEJBHome
public javax.ejb.EJBHome getEJBHome()
- Specified by:
getEJBHome in interface javax.ejb.EJBContext
setRollbackOnly
public void setRollbackOnly()
throws java.lang.IllegalStateException
- Specified by:
setRollbackOnly in interface javax.ejb.EJBContext
- Throws:
java.lang.IllegalStateException
getRollbackOnly
public boolean getRollbackOnly()
throws java.lang.IllegalStateException
- Specified by:
getRollbackOnly in interface javax.ejb.EJBContext
- Throws:
java.lang.IllegalStateException
getEJBLocalObject
public javax.ejb.EJBLocalObject getEJBLocalObject()
throws java.lang.IllegalStateException
- Specified by:
getEJBLocalObject in interface javax.ejb.SessionContext
- Throws:
java.lang.IllegalStateException
getEJBLocalHome
public javax.ejb.EJBLocalHome getEJBLocalHome()
- Specified by:
getEJBLocalHome in interface javax.ejb.EJBContext
getEnvironment
public java.util.Properties getEnvironment()
- Specified by:
getEnvironment in interface javax.ejb.EJBContext
getCallerIdentity
public java.security.Identity getCallerIdentity()
- Specified by:
getCallerIdentity in interface javax.ejb.EJBContext
getCallerPrincipal
public java.security.Principal getCallerPrincipal()
- Specified by:
getCallerPrincipal in interface javax.ejb.EJBContext
isCallerInRole
public boolean isCallerInRole(java.security.Identity arg0)
- Specified by:
isCallerInRole in interface javax.ejb.EJBContext
isCallerInRole
public boolean isCallerInRole(java.lang.String arg0)
- Specified by:
isCallerInRole in interface javax.ejb.EJBContext
getUserTransaction
public javax.transaction.UserTransaction getUserTransaction()
throws java.lang.IllegalStateException
- Specified by:
getUserTransaction in interface javax.ejb.EJBContext
- Throws:
java.lang.IllegalStateException
getTimerService
public javax.ejb.TimerService getTimerService()
throws java.lang.IllegalStateException
- Specified by:
getTimerService in interface javax.ejb.EJBContext
- Throws:
java.lang.IllegalStateException
getMessageContext
public javax.xml.rpc.handler.MessageContext getMessageContext()
throws java.lang.IllegalStateException
- Specified by:
getMessageContext in interface javax.ejb.SessionContext
- Throws:
java.lang.IllegalStateException