com.thoughtworks.xjb.ejb
Class XjbSessionContext

java.lang.Object
  extended bycom.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)
           
 
Method Summary
 java.security.Identity getCallerIdentity()
           
 java.security.Principal getCallerPrincipal()
           
 javax.ejb.EJBHome getEJBHome()
           
 javax.ejb.EJBLocalHome getEJBLocalHome()
           
 javax.ejb.EJBLocalObject getEJBLocalObject()
           
 javax.ejb.EJBObject getEJBObject()
           
 java.util.Properties getEnvironment()
           
 javax.xml.rpc.handler.MessageContext getMessageContext()
           
 boolean getRollbackOnly()
           
 javax.ejb.TimerService getTimerService()
           
 javax.transaction.UserTransaction getUserTransaction()
           
 boolean isCallerInRole(java.security.Identity arg0)
           
 boolean isCallerInRole(java.lang.String arg0)
           
 void setRollbackOnly()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XjbSessionContext

public XjbSessionContext(javax.ejb.EJBHome home,
                         javax.ejb.EJBObject remote)
Method Detail

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