org.objectweb.jonas_ejb.container.JEntitySwitchDB Class Reference

Inherits org.objectweb.jonas_ejb.container.JEntitySwitch.

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

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 JEntitySwitchDB ()
synchronized void notifyWriting (Transaction tx, JEntityContext bctx)
int getState ()

Protected Member Functions

JEntityContext getContext4Tx (Transaction tx)
void setContext4Tx (Transaction tx, JEntityContext ctx)

Protected Attributes

JEntityContext ihContext = null
HashMap itsContext

Detailed Description

DataBase lock policy : 1 instance per transactions. Transaction Isolation is managed by the database.
Author:
Philippe Durieux

Definition at line 44 of file JEntitySwitchDB.java.


Constructor & Destructor Documentation

org.objectweb.jonas_ejb.container.JEntitySwitchDB.JEntitySwitchDB  ) 
 

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

Definition at line 60 of file JEntitySwitchDB.java.

References org.objectweb.jonas_ejb.container.JEntitySwitchDB.itsContext.


Member Function Documentation

JEntityContext org.objectweb.jonas_ejb.container.JEntitySwitchDB.getContext4Tx Transaction  tx  )  [protected, virtual]
 

Parameters:
tx The Transaction
Returns:
the JEntityContext used for this tx

Implements org.objectweb.jonas_ejb.container.JEntitySwitch.

Definition at line 75 of file JEntitySwitchDB.java.

References org.objectweb.jonas_ejb.container.JEntitySwitchDB.itsContext.

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

References org.objectweb.jonas_ejb.container.JEntitySwitchDB.ihContext, org.objectweb.jonas_ejb.container.JEntityContext.isMarkedRemoved(), and org.objectweb.jonas_ejb.container.JEntitySwitchDB.itsContext.

Here is the call graph for this function:

synchronized void org.objectweb.jonas_ejb.container.JEntitySwitchDB.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 159 of file JEntitySwitchDB.java.

References org.objectweb.jonas_ejb.container.JEntitySwitch.registerCtx(), and org.objectweb.jonas_ejb.container.JContext.setRollbackOnly().

Here is the call graph for this function:

void org.objectweb.jonas_ejb.container.JEntitySwitchDB.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 87 of file JEntitySwitchDB.java.

References org.objectweb.jonas_ejb.container.JEntitySwitchDB.ihContext, and org.objectweb.jonas_ejb.container.JEntitySwitchDB.itsContext.


Member Data Documentation

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

EntityContext for non-transacted requests

Definition at line 49 of file JEntitySwitchDB.java.

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

HashMap org.objectweb.jonas_ejb.container.JEntitySwitchDB.itsContext [protected]
 

Map of EntityContext's for transactions Key is the Transaction.

Definition at line 54 of file JEntitySwitchDB.java.

Referenced by org.objectweb.jonas_ejb.container.JEntitySwitchDB.getContext4Tx(), org.objectweb.jonas_ejb.container.JEntitySwitchDB.getState(), org.objectweb.jonas_ejb.container.JEntitySwitchDB.JEntitySwitchDB(), and org.objectweb.jonas_ejb.container.JEntitySwitchDB.setContext4Tx().


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