org.jfox.ejb3
Class AbstractEJBContext
java.lang.Object
org.jfox.ejb3.AbstractEJBContext
- All Implemented Interfaces:
- java.rmi.Remote, javax.ejb.EJBContext, javax.ejb.EJBLocalObject, javax.ejb.EJBObject, javax.ejb.MessageDrivenContext, javax.ejb.SessionContext
- Direct Known Subclasses:
- SessionBucket.EJBContextImpl
public abstract class AbstractEJBContext
- extends java.lang.Object
- implements javax.ejb.SessionContext, javax.ejb.MessageDrivenContext, javax.ejb.EJBObject, javax.ejb.EJBLocalObject
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.ejb.EJBContext |
getRollbackOnly, lookup, setRollbackOnly |
| Methods inherited from interface javax.ejb.EJBContext |
getRollbackOnly, lookup, setRollbackOnly |
AbstractEJBContext
public AbstractEJBContext(EJBObjectId ejbObjectId,
java.lang.Object ejbInstance)
getENContext
public javax.naming.Context getENContext()
getEJBObjectId
protected EJBObjectId getEJBObjectId()
getEJBInstance
public java.lang.Object getEJBInstance()
getCallerPrincipal
public java.security.Principal getCallerPrincipal()
- Specified by:
getCallerPrincipal in interface javax.ejb.EJBContext
getEJBHome
public javax.ejb.EJBHome getEJBHome()
- Specified by:
getEJBHome in interface javax.ejb.EJBContext- Specified by:
getEJBHome in interface javax.ejb.EJBObject
getEJBLocalHome
public javax.ejb.EJBLocalHome getEJBLocalHome()
- Specified by:
getEJBLocalHome in interface javax.ejb.EJBContext- Specified by:
getEJBLocalHome in interface javax.ejb.EJBLocalObject
getUserTransaction
public javax.transaction.UserTransaction getUserTransaction()
throws java.lang.IllegalStateException
- Specified by:
getUserTransaction in interface javax.ejb.EJBContext
- Throws:
java.lang.IllegalStateException
isCallerInRole
public boolean isCallerInRole(java.lang.String roleName)
- Specified by:
isCallerInRole in interface javax.ejb.EJBContext
getCallerIdentity
@Deprecated
public java.security.Identity getCallerIdentity()
- Deprecated.
- Specified by:
getCallerIdentity in interface javax.ejb.EJBContext
getEnvironment
@Deprecated
public java.util.Properties getEnvironment()
- Deprecated.
- Specified by:
getEnvironment in interface javax.ejb.EJBContext
isCallerInRole
@Deprecated
public boolean isCallerInRole(java.security.Identity role)
- Deprecated.
- Specified by:
isCallerInRole in interface javax.ejb.EJBContext
getBusinessObject
public <T> T getBusinessObject(java.lang.Class<T> businessInterface)
throws java.lang.IllegalStateException
- Specified by:
getBusinessObject in interface javax.ejb.SessionContext
- 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
getEJBObject
public javax.ejb.EJBObject getEJBObject()
throws java.lang.IllegalStateException
- Specified by:
getEJBObject in interface javax.ejb.SessionContext
- Throws:
java.lang.IllegalStateException
getInvokedBusinessInterface
public java.lang.Class getInvokedBusinessInterface()
throws java.lang.IllegalStateException
- Specified by:
getInvokedBusinessInterface in interface javax.ejb.SessionContext
- 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
getTimerService
public javax.ejb.TimerService getTimerService()
throws java.lang.IllegalStateException
- Specified by:
getTimerService in interface javax.ejb.EJBContext
- Throws:
java.lang.IllegalStateException
getHandle
public javax.ejb.Handle getHandle()
throws java.rmi.RemoteException
- Specified by:
getHandle in interface javax.ejb.EJBObject
- Throws:
java.rmi.RemoteException
getPrimaryKey
public java.lang.Object getPrimaryKey()
- Specified by:
getPrimaryKey in interface javax.ejb.EJBLocalObject- Specified by:
getPrimaryKey in interface javax.ejb.EJBObject
isIdentical
public boolean isIdentical(javax.ejb.EJBObject obj)
throws java.rmi.RemoteException
- Specified by:
isIdentical in interface javax.ejb.EJBObject
- Throws:
java.rmi.RemoteException
remove
public void remove()
throws javax.ejb.RemoveException
- Specified by:
remove in interface javax.ejb.EJBLocalObject- Specified by:
remove in interface javax.ejb.EJBObject
- Throws:
javax.ejb.RemoveException
isIdentical
public boolean isIdentical(javax.ejb.EJBLocalObject obj)
throws javax.ejb.EJBException
- Specified by:
isIdentical in interface javax.ejb.EJBLocalObject
- Throws:
javax.ejb.EJBException
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
clone
protected java.lang.Object clone()
throws java.lang.CloneNotSupportedException
- Overrides:
clone in class java.lang.Object
- Throws:
java.lang.CloneNotSupportedException