Inheritance diagram for org.objectweb.jonas_ejb.container.JEntitySwitch:


Public Member Functions | |
| JEntitySwitch () | |
| void | init (JEntityFactory bf, Object pk) |
| JEntityLocal | getLocal () |
| JEntityRemote | getRemote () |
| TimerService | getEntityTimerService () |
| void | notifyTimeout (Timer timer) |
| Object | getPrimaryKey () |
| void | bindICtx (Transaction tx, JEntityContext bctx) |
| synchronized boolean | tryBindICtx (Transaction tx, JEntityContext bctx) throws ObjectNotFoundException |
| JEntityContext | getICtx (Transaction tx, JEntityContext newctx) |
| JEntityContext | getICtx (Transaction tx, boolean checkr) |
| synchronized boolean | terminate (Transaction tx) |
| synchronized JEntityContext | mapICtx (Transaction tx, JEntityContext bctx, boolean forced, boolean holdit, boolean checkreentrance) |
| synchronized void | releaseICtx (Transaction tx) |
| synchronized void | discardICtx (Transaction tx) |
| synchronized void | txCompleted (Transaction tx, boolean committed) |
| int | getPolicy () |
| abstract int | getState () |
| JFactory | getBeanFactory () |
Protected Member Functions | |
| void | registerCtx (Transaction tx, JEntityContext bctx) |
| void | discardContext (Transaction tx, boolean forgetpk, boolean pool) |
Protected Attributes | |
| JEntityFactory | bf |
| Object | pk = null |
| JEntityLocal | local = null |
| JEntityRemote | remote = null |
| long | inactivityTimeout |
| boolean | shared |
| int | lockpolicy |
| boolean | txUpdates |
| TimerService | myTimerService = null |
| int | countIH = 0 |
| int | countIT = 0 |
| int | waiters = 0 |
| boolean | inDirtyList = false |
| boolean | mustReload = false |
| boolean | mustStore = false |
| boolean | todiscard = false |
| Transaction | blockedtx = null |
| long | timestamp = System.currentTimeMillis() |
| boolean | lazyregister = false |
| boolean | reentrant |
Philippe Coq
Definition at line 59 of file JEntitySwitch.java.
|
|
empty constructor. Object is initialized via init() because it is implemented differently according to jorm mappers. Definition at line 213 of file JEntitySwitch.java. |
|
||||||||||||
|
bind a JEntityContext for a create method.
Definition at line 366 of file JEntitySwitch.java. |
|
||||||||||||||||
|
Discard instance/Context and free all objects.
Definition at line 744 of file JEntitySwitch.java. References org.objectweb.jonas_ejb.container.JEntityFactory.releaseJContext(), org.objectweb.jonas_ejb.container.JEntityFactory.removeEJB(), and org.objectweb.jonas_ejb.container.JRemote.unexportObject(). Referenced by org.objectweb.jonas_ejb.container.JEntitySwitchCRU.mapICtx(), org.objectweb.jonas_ejb.container.JEntitySwitchRO.passivateIH(), org.objectweb.jonas_ejb.container.JEntitySwitchCS.passivateIH(), org.objectweb.jonas_ejb.container.JEntitySwitchCRU.passivateIH(), and org.objectweb.jonas_ejb.container.JEntitySwitchCRC.passivateIH(). |
Here is the call graph for this function:

|
|
Discard a context/instance at end of request. A problem occured on this insance and it must be discarded.
Definition at line 640 of file JEntitySwitch.java. Referenced by org.objectweb.jonas_ejb.container.JEntityRemote.postInvoke(), and org.objectweb.jonas_ejb.container.JEntityLocal.postInvoke(). |
|
|
Definition at line 790 of file JEntitySwitch.java. Referenced by org.objectweb.jonas_ejb.container.JTimerService.getContainer(), org.objectweb.jonas_ejb.container.JTimerService.getEjbName(), and org.objectweb.jonas_ejb.container.JTimerService.getPK(). |
|
|
Obtains the TimerService associated for this Entity Bean (one / pk)
Definition at line 287 of file JEntitySwitch.java. Referenced by org.objectweb.jonas_ejb.container.JTimerHandle.getTimer(), and org.objectweb.jonas_ejb.container.JEntityContext.getTimerService(). |
|
||||||||||||
|
Get a context/instance associated with this transaction Called at each request on the bean (including remove)
Definition at line 422 of file JEntitySwitch.java. |
|
||||||||||||
|
bind a JEntityContext for a remove method. called in case of remove(pk) or remove(handle)
Definition at line 412 of file JEntitySwitch.java. |
|
|
Definition at line 272 of file JEntitySwitch.java. |
|
|
Definition at line 777 of file JEntitySwitch.java. Referenced by org.objectweb.jonas_ejb.container.JEntityContext.initEntityContext(). |
|
|
|
Definition at line 279 of file JEntitySwitch.java. Referenced by org.objectweb.jonas_ejb.container.JEntityContext.getEJBObject(). |
|
|
Implemented in org.objectweb.jonas_ejb.container.JEntitySwitchCRC, org.objectweb.jonas_ejb.container.JEntitySwitchCRU, org.objectweb.jonas_ejb.container.JEntitySwitchCS, org.objectweb.jonas_ejb.container.JEntitySwitchDB, and org.objectweb.jonas_ejb.container.JEntitySwitchRO. Referenced by org.objectweb.jonas_ejb.container.JEntityFactory.getEntityCounters(). |
|
||||||||||||
|
constructor. A new object is build when a new PK is known in the container, either when a new bean is created, or when a find occurs. For create(), PK is not known yet when this object is build.
Definition at line 223 of file JEntitySwitch.java. References org.objectweb.jonas_ejb.container.JEntityFactory.getHome(), org.objectweb.jonas_ejb.container.JEntityFactory.getInactivityTimeout(), org.objectweb.jonas_ejb.container.JEntityFactory.getLocalHome(), org.objectweb.jonas_ejb.container.JEntityFactory.isReentrant(), org.objectweb.jonas_ejb.container.JEntityFactory.isShared(), org.objectweb.jonas_ejb.container.JEntityLocal.setEntitySwitch(), and org.objectweb.jonas_ejb.container.JEntityRemote.setEntitySwitch(). Referenced by org.objectweb.jonas_ejb.container.JEntityFactory.bindEJB(), org.objectweb.jonas_ejb.container.JEntityFactory.getEJB(), and org.objectweb.jonas_ejb.container.JEntityFactory.rebindEJB(). |
Here is the call graph for this function:

|
||||||||||||||||||||||||
|
Map a context and its instance.
Reimplemented in org.objectweb.jonas_ejb.container.JEntitySwitchCRU, and org.objectweb.jonas_ejb.container.JEntitySwitchRO. Definition at line 467 of file JEntitySwitch.java. References org.objectweb.jonas_ejb.container.JEntityContext.activate(), org.objectweb.jonas_ejb.container.JEntityFactory.getJContext(), org.objectweb.jonas_ejb.container.JEntityContext.initEntityContext(), org.objectweb.jonas_ejb.container.JEntityFactory.registerEJB(), org.objectweb.jonas_ejb.container.JEntityFactory.releaseJContext(), and org.objectweb.jonas_ejb.container.JEntityContext.reuseEntityContext(). |
Here is the call graph for this function:

|
|
Notify a timeout for this bean and this Pk
Definition at line 304 of file JEntitySwitch.java. References org.objectweb.jonas_ejb.container.JFactory.checkSecurity(), org.objectweb.jonas_ejb.container.RequestCtx.currTx, org.objectweb.jonas_ejb.container.JEntityContext.getInstance(), org.objectweb.jonas_ejb.container.JFactory.getTimerTxAttribute(), org.objectweb.jonas_ejb.container.JFactory.postInvoke(), org.objectweb.jonas_ejb.container.JFactory.preInvoke(), and org.objectweb.jonas_ejb.container.RequestCtx.sysExc. Referenced by org.objectweb.jonas_ejb.container.JTimerService.notify(). |
Here is the call graph for this function:

|
||||||||||||
|
register a Context on the transaction, as a Synchronization. this will be used later to store instance state when needed : before a finder, or at beforeCompletion, and to release instance at commit.
Definition at line 722 of file JEntitySwitch.java. References org.objectweb.jonas_ejb.container.JEntityFactory.registerContext(), and org.objectweb.jonas_ejb.container.JEntityContext.setRunningTx(). Referenced by org.objectweb.jonas_ejb.container.JEntitySwitchDB.notifyWriting(), and org.objectweb.jonas_ejb.container.JEntitySwitchCRU.notifyWriting(). |
Here is the call graph for this function:

|
|
Release a context/instance at end of request.
Definition at line 595 of file JEntitySwitch.java. References org.objectweb.jonas_ejb.container.JEntityContext.isMarkedRemoved(), and org.objectweb.jonas_ejb.container.JEntityContext.storeIfModified(). Referenced by org.objectweb.jonas_ejb.container.JEntityRemote.postInvoke(), and org.objectweb.jonas_ejb.container.JEntityLocal.postInvoke(). |
Here is the call graph for this function:

|
|
Release completely this object, since another one will be used. this occurs in case of create, when another EntitySwitch exist already.
Definition at line 432 of file JEntitySwitch.java. References org.objectweb.jonas_ejb.container.JEntityContext.isMarkedRemoved(), org.objectweb.jonas_ejb.container.JEntityContext.passivate(), and org.objectweb.jonas_ejb.container.JEntityContext.storeIfModified(). Referenced by org.objectweb.jonas_ejb.container.JEntityFactory.rebindEJB(). |
Here is the call graph for this function:

|
||||||||||||
|
Try to bind a JEntityContext if none already bound. Called by finder methods
Definition at line 377 of file JEntitySwitch.java. |
|
||||||||||||
|
This transaction is now over. We can dispose of the instance for another transaction or discard it.
Definition at line 664 of file JEntitySwitch.java. References org.objectweb.jonas_ejb.container.JEntityContext.detachTx(), org.objectweb.jonas_ejb.container.JEntityContext.isMarkedRemoved(), org.objectweb.jonas_ejb.container.JEntityContext.isNewInstance(), org.objectweb.jonas_ejb.container.JEntityContext.passivate(), and org.objectweb.jonas_ejb.container.JEntityFactory.releaseJContext(). Referenced by org.objectweb.jonas_ejb.container.JEntityContext.afterCompletion(). |
Here is the call graph for this function:

|
|
The Factory for this bean Definition at line 64 of file JEntitySwitch.java. |
|
|
last transaction blocked by synchronization. this is to do a very basic deadlock detection. Definition at line 166 of file JEntitySwitch.java. |
|
|
nb of non transacted requests running Definition at line 117 of file JEntitySwitch.java. |
|
|
nb of transacted requests running Definition at line 122 of file JEntitySwitch.java. |
|
|
time in millisec. to keep objects in memory when not used. Definition at line 84 of file JEntitySwitch.java. |
|
|
True if this instance may have been modified outside transactions. Avoids to put it twice in dirty list. Definition at line 133 of file JEntitySwitch.java. |
|
|
true if we can differ the registration at first write. Definition at line 187 of file JEntitySwitch.java. |
|
|
The EJBLocalObject, or null if bean has no local interface. Definition at line 74 of file JEntitySwitch.java. |
|
|
Lock policy used for this entity bean. Possible values are : Definition at line 101 of file JEntitySwitch.java. |
|
|
True if instance has been modified by a Transaction. This means that reading outside transaction should reload it before use. Always false for policies CS and CRU (only 1 instance) Definition at line 140 of file JEntitySwitch.java. |
|
|
True if a TX need this instance currently used outside tx When the last release is done, we must store this instance. Definition at line 146 of file JEntitySwitch.java. |
|
|
The Timer Service Definition at line 112 of file JEntitySwitch.java. |
|
|
The Primary Key for this bean instance. Definition at line 69 of file JEntitySwitch.java. |
|
|
reentrant=true if a bean instance can be accessed concurrently in the same transaction, or outside transaction. Definition at line 193 of file JEntitySwitch.java. |
|
|
The EJBObject, or null if bean has no remote interface. Definition at line 79 of file JEntitySwitch.java. |
|
|
shared=true if the bean can be modify outside this container. Definition at line 89 of file JEntitySwitch.java. |
|
|
timestamp used to free objects when not used for a specified time. Definition at line 178 of file JEntitySwitch.java. |
|
|
True when context/instance has been discarded, to avoids that passivate store its state on storage. Definition at line 152 of file JEntitySwitch.java. |
|
|
True if a transaction is mandatory for all modifying methods. In this case, all methods outside tranction is considered as read-only. Definition at line 107 of file JEntitySwitch.java. |
|
|
nb of threads waiting (synchronization) Definition at line 127 of file JEntitySwitch.java. |
1.3.9.1