org.objectweb.jonas_ejb.container.JEntitySwitchCRC Class Reference

Inherits org.objectweb.jonas_ejb.container.JEntitySwitch.

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

Inheritance graph
[legend]
Collaboration diagram for org.objectweb.jonas_ejb.container.JEntitySwitchCRC:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 JEntitySwitchCRC ()
synchronized boolean passivateIH (boolean passivation)
int getState ()

Protected Member Functions

void setContext4Tx (Transaction tx, JEntityContext ctx)

Protected Attributes

JEntityContext itContext = null
JEntityContext ihContext = null

Detailed Description

Container read committed lock policy. transactions are serialized by the container. Accesses outside transaction read committed state.
Author:
Philippe Durieux

Definition at line 45 of file JEntitySwitchCRC.java.


Constructor & Destructor Documentation

org.objectweb.jonas_ejb.container.JEntitySwitchCRC.JEntitySwitchCRC  ) 
 

empty constructor. Object is initialized via init() because it is implemented differently according to jorm mappers.

Definition at line 65 of file JEntitySwitchCRC.java.


Member Function Documentation

int org.objectweb.jonas_ejb.container.JEntitySwitchCRC.getState  )  [virtual]
 

Returns:
State of this instance. State values are 0=in-tx, 1=out-tx, 2=idle, 3=passive, 4=removed. we don't synchronize this method to avoid jadmin blocks

Implements org.objectweb.jonas_ejb.container.JEntitySwitch.

Definition at line 229 of file JEntitySwitchCRC.java.

References org.objectweb.jonas_ejb.container.JEntitySwitchCRC.ihContext, org.objectweb.jonas_ejb.container.JEntityContext.isMarkedRemoved(), and org.objectweb.jonas_ejb.container.JEntitySwitchCRC.itContext.

Here is the call graph for this function:

synchronized boolean org.objectweb.jonas_ejb.container.JEntitySwitchCRC.passivateIH boolean  passivation  )  [virtual]
 

try to passivate IH (called from swapper)

Parameters:
passivation false if only store bean state.
Returns:
false if instance still in memory (busy for example)

Implements org.objectweb.jonas_ejb.container.JEntitySwitch.

Definition at line 169 of file JEntitySwitchCRC.java.

References org.objectweb.jonas_ejb.container.JEntitySwitch.discardContext(), org.objectweb.jonas_ejb.container.JEntitySwitchCRC.ihContext, org.objectweb.jonas_ejb.container.JEntitySwitchCRC.itContext, org.objectweb.jonas_ejb.container.JEntityContext.passivate(), and org.objectweb.jonas_ejb.container.JEntityFactory.releaseJContext().

Here is the call graph for this function:

void org.objectweb.jonas_ejb.container.JEntitySwitchCRC.setContext4Tx Transaction  tx,
JEntityContext  ctx
[protected, virtual]
 

Parameters:
tx The Transaction
the JEntityContext used for this tx

Implements org.objectweb.jonas_ejb.container.JEntitySwitch.

Definition at line 88 of file JEntitySwitchCRC.java.

References org.objectweb.jonas_ejb.container.JEntitySwitchCRC.ihContext, and org.objectweb.jonas_ejb.container.JEntitySwitchCRC.itContext.


Member Data Documentation

JEntityContext org.objectweb.jonas_ejb.container.JEntitySwitchCRC.ihContext = null [protected]
 

EntityContext for non-transacted requests

Definition at line 55 of file JEntitySwitchCRC.java.

Referenced by org.objectweb.jonas_ejb.container.JEntitySwitchCRC.getState(), org.objectweb.jonas_ejb.container.JEntitySwitchCRC.passivateIH(), and org.objectweb.jonas_ejb.container.JEntitySwitchCRC.setContext4Tx().

JEntityContext org.objectweb.jonas_ejb.container.JEntitySwitchCRC.itContext = null [protected]
 

EntityContext for transacted requests

Definition at line 50 of file JEntitySwitchCRC.java.

Referenced by org.objectweb.jonas_ejb.container.JEntitySwitchCRC.getState(), org.objectweb.jonas_ejb.container.JEntitySwitchCRC.passivateIH(), and org.objectweb.jonas_ejb.container.JEntitySwitchCRC.setContext4Tx().


The documentation for this class was generated from the following file:
Generated on Tue Feb 15 15:10:16 2005 for JOnAS by  doxygen 1.3.9.1