ERXObjectStoreCoordinator Class Reference

Inherits com::webobjects::eocontrol::EOObjectStoreCoordinator.

Collaboration diagram for ERXObjectStoreCoordinator:

Collaboration graph
[legend]

List of all members.

Classes

class  DumpLocksSignalHandler

Public Member Functions

void addCooperatingObjectStore (EOCooperatingObjectStore objectStore)
void dispose ()
 ERXObjectStoreCoordinator (boolean shouldClose)
 ERXObjectStoreCoordinator ()
void lock ()
void unlock ()

Static Public Member Functions

static EOObjectStoreCoordinator create (boolean shouldClose)
static EOObjectStoreCoordinator create ()
static String outstandingLockDescription ()

Public Attributes

boolean _didClose = false
boolean _shouldClose = false

Static Public Attributes

static Logger log = Logger.getLogger(ERXObjectStoreCoordinator.class)

Static Protected Attributes

static Map
< ERXObjectStoreCoordinator,
String
activeDatabaseContexts = Collections.synchronizedMap(new WeakHashMap())

Package Attributes

Thread lockingThread
String lockingThreadName
NSMutableDictionary< Thread,
NSMutableArray< Exception > > 
openLockTraces

Private Member Functions

synchronized void traceLock ()
synchronized void traceUnlock ()

Private Attributes

long lockCount = 0

Static Private Attributes

static Exception defaultTrace = new Exception("DefaultTrace")


Detailed Description

Adds functionality to automatically close all related JDBC Connections. Also has open-lock debugging.
Author:
david

ak


Constructor & Destructor Documentation

See also:
com.webobjects.eocontrol.EOObjectStoreCoordinator

ERXObjectStoreCoordinator ( boolean  shouldClose  ) 


Member Function Documentation

void addCooperatingObjectStore ( EOCooperatingObjectStore  objectStore  ) 

static EOObjectStoreCoordinator create ( boolean  shouldClose  )  [static]

static EOObjectStoreCoordinator create (  )  [static]

void dispose (  ) 

void lock (  ) 

Overridden to emit log messages and push this instance to the locked editing contexts in this thread.

static String outstandingLockDescription (  )  [static]

synchronized void traceLock (  )  [private]

Adds the current stack trace to openLockTraces.

synchronized void traceUnlock (  )  [private]

Removes the current trace from the openLockTraces.

void unlock (  ) 

Overridden to emit log messages and pull this instance from the locked editing contexts in this thread.


Member Data Documentation

boolean _didClose = false

boolean _shouldClose = false

Map<ERXObjectStoreCoordinator, String> activeDatabaseContexts = Collections.synchronizedMap(new WeakHashMap()) [static, protected]

Exception defaultTrace = new Exception("DefaultTrace") [static, private]

long lockCount = 0 [private]

Thread lockingThread [package]

Logger log = Logger.getLogger(ERXObjectStoreCoordinator.class) [static]

NSMutableDictionary<Thread, NSMutableArray<Exception> > openLockTraces [package]


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:43:11 2012 for Project Wonder by  doxygen 1.5.8