Inherited by org.objectweb.jonas_ejb.container.jorm.JEntityContext.
Inheritance diagram for org.objectweb.jonas_ejb.container.JEntityContext:
Public Member Functions | |
JEntityContext (JEntityFactory bf, EntityBean eb) | |
TimerService | getTimerService () throws IllegalStateException |
EJBObject | getEJBObject () throws IllegalStateException |
EJBLocalObject | getEJBLocalObject () throws IllegalStateException |
EJBLocalObject | get2EJBLocalObject () throws IllegalStateException |
Object | getPrimaryKey () throws IllegalStateException |
void | beforeCompletion () |
void | afterCompletion (int status) |
void | razEntityContext () |
void | detachTx () |
void | initEntityContext (JEntitySwitch bs) |
void | reuseEntityContext (boolean newtrans) |
void | setNewInstance () |
void | setRemoved () throws RemoteException, RemoveException |
boolean | isMarkedRemoved () |
boolean | isNewInstance () |
EntityBean | getInstance () throws RemoteException |
JEntityFactory | getEntityFactory () |
JEntitySwitch | getEntitySwitch () |
void | setEntitySwitch (JEntitySwitch bs) |
boolean | isDirty () |
void | setDirty (boolean d) |
void | storeIfModified () |
void | passivate () |
void | activate (boolean doactivate) |
Package Attributes | |
Transaction | beanCoord = null |
boolean | ismarkedremoved |
boolean | isnewinstance = false |
Definition at line 55 of file JEntityContext.java.
|
Constructs an EntityContext the Context has to be initialized after this.
Reimplemented in org.objectweb.jonas_ejb.container.jorm.JEntityContext. Definition at line 90 of file JEntityContext.java. References org.objectweb.jonas_ejb.container.JEntityFactory.getHome(), and org.objectweb.jonas_ejb.container.JEntityFactory.getLocalHome(). |
Here is the call graph for this function:
|
Activate instance.
Definition at line 544 of file JEntityContext.java. References org.objectweb.jonas_ejb.container.JContext.setState(). Referenced by org.objectweb.jonas_ejb.container.JEntitySwitchRO.mapICtx(), org.objectweb.jonas_ejb.container.JEntitySwitchCRU.mapICtx(), and org.objectweb.jonas_ejb.container.JEntitySwitch.mapICtx(). |
Here is the call graph for this function:
|
This method is typically called after the transaction is committed.
Definition at line 286 of file JEntityContext.java. References org.objectweb.jonas_ejb.container.JEntityContext.beanCoord, and org.objectweb.jonas_ejb.container.JEntitySwitch.txCompleted(). Referenced by org.objectweb.jonas_ejb.container.TxListener.afterCompletion(). |
Here is the call graph for this function:
|
This method is typically called at beforeCompletion Definition at line 244 of file JEntityContext.java. References org.objectweb.jonas_ejb.container.JEntityContext.beanCoord, org.objectweb.jonas_ejb.container.JEntityContext.getPrimaryKey(), and org.objectweb.jonas_ejb.container.JEntityContext.storeIfModified(). |
Here is the call graph for this function:
|
Detach this Context from tx Definition at line 332 of file JEntityContext.java. References org.objectweb.jonas_ejb.container.JEntityContext.beanCoord, org.objectweb.jonas_ejb.container.JEntityContext.ismarkedremoved, and org.objectweb.jonas_ejb.container.JEntityContext.isnewinstance. Referenced by org.objectweb.jonas_ejb.container.JEntitySwitch.txCompleted(). |
|
Obtain a reference to the EJB local object that is currently associated with the instance. (internal use of getEJBLocalObject with no check).
Definition at line 212 of file JEntityContext.java. References org.objectweb.jonas_ejb.container.JEntityContext.getEJBLocalObject(). |
Here is the call graph for this function:
|
Obtain a reference to the EJB local object that is currently associated with the instance.
Definition at line 198 of file JEntityContext.java. Referenced by org.objectweb.jonas_ejb.container.JEntityContext.get2EJBLocalObject(). |
|
Obtains a reference to the EJB object that is currently associated with the instance.
Definition at line 139 of file JEntityContext.java. References org.objectweb.jonas_ejb.container.JEntitySwitch.getRemote(). |
Here is the call graph for this function:
|
JEntityFactory accessor
Definition at line 439 of file JEntityContext.java. |
|
JEntitySwitch accessor
Definition at line 447 of file JEntityContext.java. Referenced by org.objectweb.jonas_ejb.container.JEntityFactory.getJContext(), and org.objectweb.jonas_ejb.container.JEntityFactory.rebindEJB(). |
|
Returns the bean instance of this context Used in the generated classes to retrieve the instance
Definition at line 427 of file JEntityContext.java. Referenced by org.objectweb.jonas_ejb.container.JEntitySwitch.notifyTimeout(). |
|
Obtains the primary key of the EJB object that is currently associated with this instance.
Reimplemented in org.objectweb.jonas_ejb.container.jorm.JEntityContext. Definition at line 224 of file JEntityContext.java. References org.objectweb.jonas_ejb.container.JEntitySwitch.getPrimaryKey(). Referenced by org.objectweb.jonas_ejb.container.JEntityContext.beforeCompletion(). |
Here is the call graph for this function:
|
Get access to the EJB Timer Service.
Implements org.objectweb.jonas_ejb.container.JContext. Definition at line 107 of file JEntityContext.java. References org.objectweb.jonas_ejb.container.JEntitySwitch.getEntityTimerService(), org.objectweb.jonas_ejb.container.JContext.getState(), and org.objectweb.jonas_ejb.container.JFactory.getTimerService(). |
Here is the call graph for this function:
|
Reinit Context for reuse
Definition at line 343 of file JEntityContext.java. References org.objectweb.jonas_ejb.container.JEntitySwitch.getPolicy(), and org.objectweb.jonas_ejb.container.JEntityContext.ismarkedremoved. Referenced by org.objectweb.jonas_ejb.container.JEntitySwitchRO.mapICtx(), org.objectweb.jonas_ejb.container.JEntitySwitchCRU.mapICtx(), and org.objectweb.jonas_ejb.container.JEntitySwitch.mapICtx(). |
Here is the call graph for this function:
|
Definition at line 462 of file JEntityContext.java. |
|
Check if context has been marked removed
Definition at line 408 of file JEntityContext.java. Referenced by org.objectweb.jonas_ejb.container.JEntitySwitchRO.getState(), org.objectweb.jonas_ejb.container.JEntitySwitchDB.getState(), org.objectweb.jonas_ejb.container.JEntitySwitchCS.getState(), org.objectweb.jonas_ejb.container.JEntitySwitchCRU.getState(), org.objectweb.jonas_ejb.container.JEntitySwitchCRC.getState(), org.objectweb.jonas_ejb.container.JEntitySwitchCS.passivateIH(), org.objectweb.jonas_ejb.container.JEntitySwitch.releaseICtx(), org.objectweb.jonas_ejb.container.JEntitySwitch.terminate(), and org.objectweb.jonas_ejb.container.JEntitySwitch.txCompleted(). |
|
Check if context is a newly created instance
Definition at line 416 of file JEntityContext.java. Referenced by org.objectweb.jonas_ejb.container.JEntitySwitch.txCompleted(). |
|
passivate this instance Definition at line 524 of file JEntityContext.java. References org.objectweb.jonas_ejb.container.JContext.setState(). Referenced by org.objectweb.jonas_ejb.container.JEntitySwitchCS.passivateIH(), org.objectweb.jonas_ejb.container.JEntitySwitchCRC.passivateIH(), org.objectweb.jonas_ejb.container.JEntitySwitch.terminate(), and org.objectweb.jonas_ejb.container.JEntitySwitch.txCompleted(). |
Here is the call graph for this function:
|
Raz Context before freeing it. This is mainly for garbage collector. Definition at line 321 of file JEntityContext.java. References org.objectweb.jonas_ejb.container.JEntityContext.beanCoord, org.objectweb.jonas_ejb.container.JEntityContext.ismarkedremoved, and org.objectweb.jonas_ejb.container.JEntityContext.isnewinstance. Referenced by org.objectweb.jonas_ejb.container.JEntityFactory.releaseJContext(). |
|
reuse EntityContext for another transaction. optimization: don't pass it by the pool.
Definition at line 360 of file JEntityContext.java. References org.objectweb.jonas_ejb.container.JEntityContext.isnewinstance. Referenced by org.objectweb.jonas_ejb.container.JEntitySwitchRO.mapICtx(), org.objectweb.jonas_ejb.container.JEntitySwitchCRU.mapICtx(), and org.objectweb.jonas_ejb.container.JEntitySwitch.mapICtx(). |
|
Set the dirty flag: true = instance modified. Definition at line 469 of file JEntityContext.java. References org.objectweb.jonas_ejb.container.JEntitySwitch.notifyWriting(). |
Here is the call graph for this function:
|
set the EntitySwitch
Definition at line 455 of file JEntityContext.java. |
|
Set new instance flag Definition at line 379 of file JEntityContext.java. References org.objectweb.jonas_ejb.container.JEntityContext.isnewinstance. |
|
Mark this context as removed. Complete removing will be achieved at the end of the transaction.
Definition at line 389 of file JEntityContext.java. References org.objectweb.jonas_ejb.container.JEntityContext.ismarkedremoved. |
|
Persistence: write data on storage Definition at line 491 of file JEntityContext.java. Referenced by org.objectweb.jonas_ejb.container.JEntityContext.beforeCompletion(), org.objectweb.jonas_ejb.container.JEntitySwitchCS.passivateIH(), org.objectweb.jonas_ejb.container.JEntitySwitch.releaseICtx(), and org.objectweb.jonas_ejb.container.JEntitySwitch.terminate(). |
|
Transaction related to this synchronization Definition at line 65 of file JEntityContext.java. Referenced by org.objectweb.jonas_ejb.container.JEntityContext.afterCompletion(), org.objectweb.jonas_ejb.container.JEntityContext.beforeCompletion(), org.objectweb.jonas_ejb.container.JEntityContext.detachTx(), and org.objectweb.jonas_ejb.container.JEntityContext.razEntityContext(). |
|
true between a remove and the commit Definition at line 74 of file JEntityContext.java. Referenced by org.objectweb.jonas_ejb.container.JEntityContext.detachTx(), org.objectweb.jonas_ejb.container.JEntityContext.initEntityContext(), org.objectweb.jonas_ejb.container.JEntityContext.razEntityContext(), and org.objectweb.jonas_ejb.container.JEntityContext.setRemoved(). |
|
true if just created in this transaction Definition at line 79 of file JEntityContext.java. Referenced by org.objectweb.jonas_ejb.container.JEntityContext.detachTx(), org.objectweb.jonas_ejb.container.JEntityContext.razEntityContext(), org.objectweb.jonas_ejb.container.JEntityContext.reuseEntityContext(), and org.objectweb.jonas_ejb.container.JEntityContext.setNewInstance(). |