er.extensions.eof
Class ERXObjectStoreCoordinator
java.lang.Object
com.webobjects.eocontrol.EOObjectStore
com.webobjects.eocontrol.EOObjectStoreCoordinator
er.extensions.eof.ERXObjectStoreCoordinator
- All Implemented Interfaces:
- com.webobjects.foundation.NSDisposable, com.webobjects.foundation.NSLocking
public class ERXObjectStoreCoordinator
- extends com.webobjects.eocontrol.EOObjectStoreCoordinator
Adds functionality to automatically close all related JDBC Connections. Also has open-lock debugging.
- Author:
- david, ak
Fields inherited from class com.webobjects.eocontrol.EOObjectStoreCoordinator |
_CLASS, CooperatingObjectStoreNeededNotification, CooperatingObjectStoreWasAddedNotification, CooperatingObjectStoreWasRemovedNotification, FetchSpecificationKey, GlobalIDKey, ObjectKey |
Fields inherited from class com.webobjects.eocontrol.EOObjectStore |
_doAssertLock, _doAssertLockInitialized, _wasDisposed, DeletedKey, InsertedKey, InvalidatedAllObjectsInStoreNotification, InvalidatedKey, ObjectsChangedInStoreNotification, UpdatedKey |
Fields inherited from interface com.webobjects.foundation.NSLocking |
OneCentury, OneDay, OneHour, OneMinute, OneSecond, OneWeek, OneYear |
Method Summary |
void |
addCooperatingObjectStore(com.webobjects.eocontrol.EOCooperatingObjectStore objectStore)
|
static com.webobjects.eocontrol.EOObjectStoreCoordinator |
create()
|
static com.webobjects.eocontrol.EOObjectStoreCoordinator |
create(boolean shouldClose)
|
void |
dispose()
|
void |
lock()
Overridden to emit log messages and push this instance to the locked
editing contexts in this thread. |
java.lang.String |
name()
|
static java.lang.String |
outstandingLockDescription()
|
void |
setName(java.lang.String name)
|
java.lang.String |
toString()
|
void |
unlock()
Overridden to emit log messages and pull this instance from the locked
editing contexts in this thread. |
Methods inherited from class com.webobjects.eocontrol.EOObjectStoreCoordinator |
_globalIDsChangedInSubStore, _invalidatedAllObjectsInSubStore, _lock, _objectsChangedInSubStore, arrayFaultWithSourceGlobalID, cooperatingObjectStores, defaultCoordinator, editingContextDidForgetObjectWithGlobalID, faultForGlobalID, faultForRawRow, forwardUpdateForObject, initializeObject, invalidateAllObjects, invalidateObjectsWithGlobalIDs, isObjectLockedWithGlobalID, lockObjectWithGlobalID, objectsForSourceGlobalID, objectStoreForFetchSpecification, objectStoreForGlobalID, objectStoreForObject, objectsWithFetchSpecification, refaultObject, removeCooperatingObjectStore, saveChangesInEditingContext, setDefaultCoordinator, setUserInfo, userInfo, valuesForKeys |
Methods inherited from class com.webobjects.eocontrol.EOObjectStore |
_checkAssertLock, _invalidateObjectsDuringSave, _resetAssertLock, _suppressAssertLock, invokeRemoteMethod |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
log
public static org.apache.log4j.Logger log
activeDatabaseContexts
protected static java.util.Map<ERXObjectStoreCoordinator,java.lang.String> activeDatabaseContexts
_didClose
public boolean _didClose
_shouldClose
public boolean _shouldClose
_name
protected java.lang.String _name
ERXObjectStoreCoordinator
public ERXObjectStoreCoordinator()
- See Also:
EOObjectStoreCoordinator
ERXObjectStoreCoordinator
public ERXObjectStoreCoordinator(boolean shouldClose)
lock
public void lock()
- Overridden to emit log messages and push this instance to the locked
editing contexts in this thread.
- Specified by:
lock
in interface com.webobjects.foundation.NSLocking
- Overrides:
lock
in class com.webobjects.eocontrol.EOObjectStoreCoordinator
unlock
public void unlock()
- Overridden to emit log messages and pull this instance from the locked
editing contexts in this thread.
- Specified by:
unlock
in interface com.webobjects.foundation.NSLocking
- Overrides:
unlock
in class com.webobjects.eocontrol.EOObjectStoreCoordinator
addCooperatingObjectStore
public void addCooperatingObjectStore(com.webobjects.eocontrol.EOCooperatingObjectStore objectStore)
- Overrides:
addCooperatingObjectStore
in class com.webobjects.eocontrol.EOObjectStoreCoordinator
dispose
public void dispose()
- Specified by:
dispose
in interface com.webobjects.foundation.NSDisposable
- Overrides:
dispose
in class com.webobjects.eocontrol.EOObjectStoreCoordinator
outstandingLockDescription
public static java.lang.String outstandingLockDescription()
create
public static com.webobjects.eocontrol.EOObjectStoreCoordinator create()
create
public static com.webobjects.eocontrol.EOObjectStoreCoordinator create(boolean shouldClose)
name
public java.lang.String name()
- Returns:
- a meaningful name for this OSC
setName
public void setName(java.lang.String name)
- Parameters:
name
- a meaningful name for this OSC
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2002 – 2007 Project Wonder.