org.objectweb.jonas_ejb.container.JEntitySwitchRO Class Reference

Inherits org.objectweb.jonas_ejb.container.JEntitySwitch.

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

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 JEntitySwitchRO ()
synchronized JEntityContext mapICtx (Transaction tx, JEntityContext bctx, boolean forced, boolean holdit, boolean notused)
boolean passivateIH (boolean passivation)
synchronized void notifyWriting (Transaction tx, JEntityContext bctx)
int getState ()

Protected Attributes

JEntityContext itContext = null

Detailed Description

ReadOnly lock policy : Instance are never written to database. They are regularly read from database if bean is shared.
Author:
Philippe Durieux

Definition at line 41 of file JEntitySwitchRO.java.


Constructor & Destructor Documentation

org.objectweb.jonas_ejb.container.JEntitySwitchRO.JEntitySwitchRO  ) 
 

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

Definition at line 52 of file JEntitySwitchRO.java.


Member Function Documentation

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

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

Here is the call graph for this function:

synchronized JEntityContext org.objectweb.jonas_ejb.container.JEntitySwitchRO.mapICtx Transaction  tx,
JEntityContext  bctx,
boolean  forced,
boolean  holdit,
boolean  notused
 

Map a context and its instance.

Parameters:
tx - the Transaction object
bctx - the JEntityContext to bind if not null
forced - force to take this context. (case of create)
holdit - increment count to hold it, a release will be called later.
Returns:
JEntityContext actually mapped

Reimplemented from org.objectweb.jonas_ejb.container.JEntitySwitch.

Definition at line 86 of file JEntitySwitchRO.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.JEntitySwitchRO.itContext, org.objectweb.jonas_ejb.container.JEntityFactory.releaseJContext(), and org.objectweb.jonas_ejb.container.JEntityContext.reuseEntityContext().

Here is the call graph for this function:

synchronized void org.objectweb.jonas_ejb.container.JEntitySwitchRO.notifyWriting Transaction  tx,
JEntityContext  bctx
[virtual]
 

This transaction has just modified this instance. (CMP2 only)

Parameters:
tx transaction

Implements org.objectweb.jonas_ejb.container.JEntitySwitch.

Definition at line 170 of file JEntitySwitchRO.java.

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

never called ?

Implements org.objectweb.jonas_ejb.container.JEntitySwitch.

Definition at line 144 of file JEntitySwitchRO.java.

References org.objectweb.jonas_ejb.container.JEntitySwitch.discardContext().

Here is the call graph for this function:


Member Data Documentation

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

unique EntityContext

Definition at line 46 of file JEntitySwitchRO.java.

Referenced by org.objectweb.jonas_ejb.container.JEntitySwitchRO.getState(), and org.objectweb.jonas_ejb.container.JEntitySwitchRO.mapICtx().


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