|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.objectweb.jonas_ejb.container.JContext org.objectweb.jonas_ejb.container.JEntityContext org.objectweb.jonas_ejb.container.jorm.JEntityContext
public class JEntityContext
This class extends the JEntityContext of the JOnAS container in order to take in consideration the fact that the container manages PName instances and not primary keys. This is the reason why the getPrimaryKey method is overriden.
Field Summary |
---|
Fields inherited from class org.objectweb.jonas_ejb.container.JContext |
---|
bf, myinstance, tm |
Constructor Summary | |
---|---|
JEntityContext(JEntityFactory bf,
javax.ejb.EntityBean eb)
|
Method Summary | |
---|---|
java.lang.Object |
getPrimaryKey()
Obtains the primary key of the EJB object that is currently associated with this instance. |
Methods inherited from class org.objectweb.jonas_ejb.container.JEntityContext |
---|
activate, afterCompletion, beforeCompletion, detachTx, get2EJBLocalObject, getEJBLocalObject, getEJBObject, getEntityFactory, getEntitySwitch, getInstance, getMyTx, getTimerService, initEntityContext, isDirty, isInitialized, isMarkedRemoved, isNewInstance, passivate, razEntityContext, reuseEntityContext, setDirty, setEntitySwitch, setNewInstance, setRemoved, setRunningTx, storeIfModified |
Methods inherited from class org.objectweb.jonas_ejb.container.JContext |
---|
getCallerIdentity, getCallerPrincipal, getEJBHome, getEJBLocalHome, getEnvironment, getRollbackOnly, getState, getUserTransaction, getWorkManager, isCallerInRole, isCallerInRole, setRollbackOnly, setState |
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, getCallerPrincipal, getEJBHome, getEJBLocalHome, getEnvironment, getRollbackOnly, getUserTransaction, isCallerInRole, isCallerInRole, setRollbackOnly |
Constructor Detail |
---|
public JEntityContext(JEntityFactory bf, javax.ejb.EntityBean eb)
Method Detail |
---|
public java.lang.Object getPrimaryKey() throws java.lang.IllegalStateException
getPrimaryKey
in interface javax.ejb.EntityContext
getPrimaryKey
in class JEntityContext
java.lang.IllegalStateException
- Thrown if the instance invokes this
method while the instance is in a state that does not allow
the instance to invoke this method.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |