org.objectweb.jonas_ejb.container.JEntitySwitchCS Class Reference

Inherits org.objectweb.jonas_ejb.container.JEntitySwitch.

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

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 JEntitySwitchCS ()
synchronized boolean passivateIH (boolean passivation)
synchronized void endIH ()
int getState ()

Protected Attributes

JEntityContext itContext = null

Detailed Description

Container Serialized lock-policy. Transaction Isolation managed by the container. All transactions are serialized.
Author:
Philippe Durieux

Definition at line 45 of file JEntitySwitchCS.java.


Constructor & Destructor Documentation

org.objectweb.jonas_ejb.container.JEntitySwitchCS.JEntitySwitchCS  ) 
 

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

Definition at line 60 of file JEntitySwitchCS.java.


Member Function Documentation

synchronized void org.objectweb.jonas_ejb.container.JEntitySwitchCS.endIH  )  [virtual]
 

Instance is ready to use for new transaction.

Implements org.objectweb.jonas_ejb.container.JEntitySwitch.

Definition at line 251 of file JEntitySwitchCS.java.

int org.objectweb.jonas_ejb.container.JEntitySwitchCS.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 279 of file JEntitySwitchCS.java.

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

Here is the call graph for this function:

synchronized boolean org.objectweb.jonas_ejb.container.JEntitySwitchCS.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 181 of file JEntitySwitchCS.java.

References org.objectweb.jonas_ejb.container.JEntitySwitch.discardContext(), org.objectweb.jonas_ejb.container.JEntityContext.isMarkedRemoved(), org.objectweb.jonas_ejb.container.JEntityContext.passivate(), org.objectweb.jonas_ejb.container.JEntityFactory.releaseJContext(), and org.objectweb.jonas_ejb.container.JEntityContext.storeIfModified().

Here is the call graph for this function:


Member Data Documentation

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

unique EntityContext

Definition at line 50 of file JEntitySwitchCS.java.

Referenced by org.objectweb.jonas_ejb.container.JEntitySwitchCS.getState().


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