er.extensions.eof
Class ERXDatabase
java.lang.Object
com.webobjects.eoaccess.EODatabase
er.extensions.eof.ERXDatabase
- All Implemented Interfaces:
- NSDisposable
public class ERXDatabase
- extends EODatabase
| Fields inherited from class com.webobjects.eoaccess.EODatabase |
_adaptor, _doesReleaseUnreferencedSnapshots, _entityCache, _entityFetchAttributesCache, _lastEntity, _lastGID, _lastRec, _models, _registeredContexts, _snapshots, _timestamp |
|
Method Summary |
protected NSSet |
_cachedFetchAttributesForEntityNamed(String name)
|
protected void |
_clearLastRecords()
|
protected EODatabase._DatabaseRecord |
_fastHashGet(EOGlobalID gid)
|
protected void |
_fastHashInsert(EODatabase._DatabaseRecord rec,
EOGlobalID gid)
|
protected void |
_fastHashRemove(EOGlobalID gid)
|
void |
_forgetSnapshotForGlobalID(EOGlobalID gid)
|
protected void |
_freeToManyMap(EODatabase._DatabaseRecord rec)
|
void |
_globalIDChanged(NSNotification notification)
|
int |
_indexOfRegisteredContext(EODatabaseContext context)
|
void |
_notifyCacheChange(ERXDatabase.CacheChange cacheChange)
|
protected EOGlobalID |
_recordedGIDForSnapshotWithGid(EOGlobalID gid)
|
protected void |
_setTimestampForCachedGlobalID(EOGlobalID gid)
|
int |
_snapshotCountForGlobalID(EOGlobalID gid)
|
EOAdaptor |
adaptor()
|
void |
addModel(EOModel model)
|
boolean |
addModelIfCompatible(EOModel model)
|
void |
decrementSnapshotCountForGlobalID(EOGlobalID gid)
|
void |
dispose()
|
EOEntity |
entityForObject(EOEnterpriseObject object)
|
EOEntity |
entityNamed(String entityName)
|
void |
forgetAllSnapshots()
|
void |
forgetSnapshotForGlobalID(EOGlobalID gid)
|
void |
forgetSnapshotsForGlobalIDs(NSArray array)
|
void |
handleDroppedConnection()
|
void |
incrementSnapshotCountForGlobalID(EOGlobalID gid)
|
void |
invalidateResultCache()
|
void |
invalidateResultCacheForEntityNamed(String name)
|
NSArray |
models()
|
void |
recordSnapshotForGlobalID(NSDictionary snapshot,
EOGlobalID gid)
|
void |
recordSnapshotForSourceGlobalID(NSArray gids,
EOGlobalID gid,
String name)
|
void |
recordSnapshots(NSDictionary snapshots)
|
void |
recordToManySnapshots(NSDictionary snapshots)
|
void |
registerContext(EODatabaseContext context)
|
NSArray |
registeredContexts()
|
void |
removeModel(EOModel model)
|
NSArray |
resultCacheForEntityNamed(String name)
|
void |
setResultCache(NSArray cache,
String name)
|
void |
setTimestampToNow()
|
NSDictionary |
snapshotForGlobalID(EOGlobalID gid)
|
NSDictionary |
snapshotForGlobalID(EOGlobalID gid,
long timestamp)
|
NSArray |
snapshotForSourceGlobalID(EOGlobalID gid,
String name)
|
NSArray |
snapshotForSourceGlobalID(EOGlobalID gid,
String name,
long timestamp)
|
NSDictionary |
snapshots()
|
long |
timestampForGlobalID(EOGlobalID gid)
|
long |
timestampForSourceGlobalID(EOGlobalID gid,
String name)
|
void |
unregisterContext(EODatabaseContext context)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SnapshotCacheChanged
public static final String SnapshotCacheChanged
- See Also:
- Constant Field Values
CacheChangeKey
public static final String CacheChangeKey
- See Also:
- Constant Field Values
ERXDatabase
public ERXDatabase(EOAdaptor adaptor)
ERXDatabase
public ERXDatabase(EOModel model)
ERXDatabase
public ERXDatabase(EODatabase _database)
_notifyCacheChange
public void _notifyCacheChange(ERXDatabase.CacheChange cacheChange)
_cachedFetchAttributesForEntityNamed
protected NSSet _cachedFetchAttributesForEntityNamed(String name)
- Overrides:
_cachedFetchAttributesForEntityNamed in class EODatabase
_clearLastRecords
protected void _clearLastRecords()
- Overrides:
_clearLastRecords in class EODatabase
_fastHashGet
protected EODatabase._DatabaseRecord _fastHashGet(EOGlobalID gid)
- Overrides:
_fastHashGet in class EODatabase
_fastHashInsert
protected void _fastHashInsert(EODatabase._DatabaseRecord rec,
EOGlobalID gid)
- Overrides:
_fastHashInsert in class EODatabase
_fastHashRemove
protected void _fastHashRemove(EOGlobalID gid)
- Overrides:
_fastHashRemove in class EODatabase
_forgetSnapshotForGlobalID
public void _forgetSnapshotForGlobalID(EOGlobalID gid)
- Overrides:
_forgetSnapshotForGlobalID in class EODatabase
_freeToManyMap
protected void _freeToManyMap(EODatabase._DatabaseRecord rec)
- Overrides:
_freeToManyMap in class EODatabase
_globalIDChanged
public void _globalIDChanged(NSNotification notification)
- Overrides:
_globalIDChanged in class EODatabase
recordSnapshotForGlobalID
public void recordSnapshotForGlobalID(NSDictionary snapshot,
EOGlobalID gid)
- Overrides:
recordSnapshotForGlobalID in class EODatabase
recordSnapshotForSourceGlobalID
public void recordSnapshotForSourceGlobalID(NSArray gids,
EOGlobalID gid,
String name)
- Overrides:
recordSnapshotForSourceGlobalID in class EODatabase
_indexOfRegisteredContext
public int _indexOfRegisteredContext(EODatabaseContext context)
- Overrides:
_indexOfRegisteredContext in class EODatabase
_recordedGIDForSnapshotWithGid
protected EOGlobalID _recordedGIDForSnapshotWithGid(EOGlobalID gid)
- Overrides:
_recordedGIDForSnapshotWithGid in class EODatabase
_setTimestampForCachedGlobalID
protected void _setTimestampForCachedGlobalID(EOGlobalID gid)
- Overrides:
_setTimestampForCachedGlobalID in class EODatabase
_snapshotCountForGlobalID
public int _snapshotCountForGlobalID(EOGlobalID gid)
- Overrides:
_snapshotCountForGlobalID in class EODatabase
adaptor
public EOAdaptor adaptor()
- Overrides:
adaptor in class EODatabase
addModel
public void addModel(EOModel model)
- Overrides:
addModel in class EODatabase
addModelIfCompatible
public boolean addModelIfCompatible(EOModel model)
- Overrides:
addModelIfCompatible in class EODatabase
decrementSnapshotCountForGlobalID
public void decrementSnapshotCountForGlobalID(EOGlobalID gid)
- Overrides:
decrementSnapshotCountForGlobalID in class EODatabase
dispose
public void dispose()
- Specified by:
dispose in interface NSDisposable- Overrides:
dispose in class EODatabase
entityForObject
public EOEntity entityForObject(EOEnterpriseObject object)
- Overrides:
entityForObject in class EODatabase
entityNamed
public EOEntity entityNamed(String entityName)
- Overrides:
entityNamed in class EODatabase
forgetAllSnapshots
public void forgetAllSnapshots()
- Overrides:
forgetAllSnapshots in class EODatabase
forgetSnapshotForGlobalID
public void forgetSnapshotForGlobalID(EOGlobalID gid)
- Overrides:
forgetSnapshotForGlobalID in class EODatabase
forgetSnapshotsForGlobalIDs
public void forgetSnapshotsForGlobalIDs(NSArray array)
- Overrides:
forgetSnapshotsForGlobalIDs in class EODatabase
handleDroppedConnection
public void handleDroppedConnection()
- Overrides:
handleDroppedConnection in class EODatabase
incrementSnapshotCountForGlobalID
public void incrementSnapshotCountForGlobalID(EOGlobalID gid)
- Overrides:
incrementSnapshotCountForGlobalID in class EODatabase
invalidateResultCache
public void invalidateResultCache()
- Overrides:
invalidateResultCache in class EODatabase
invalidateResultCacheForEntityNamed
public void invalidateResultCacheForEntityNamed(String name)
- Overrides:
invalidateResultCacheForEntityNamed in class EODatabase
models
public NSArray models()
- Overrides:
models in class EODatabase
recordSnapshots
public void recordSnapshots(NSDictionary snapshots)
- Overrides:
recordSnapshots in class EODatabase
recordToManySnapshots
public void recordToManySnapshots(NSDictionary snapshots)
- Overrides:
recordToManySnapshots in class EODatabase
registerContext
public void registerContext(EODatabaseContext context)
- Overrides:
registerContext in class EODatabase
registeredContexts
public NSArray registeredContexts()
- Overrides:
registeredContexts in class EODatabase
removeModel
public void removeModel(EOModel model)
- Overrides:
removeModel in class EODatabase
resultCacheForEntityNamed
public NSArray resultCacheForEntityNamed(String name)
- Overrides:
resultCacheForEntityNamed in class EODatabase
setResultCache
public void setResultCache(NSArray cache,
String name)
- Overrides:
setResultCache in class EODatabase
setTimestampToNow
public void setTimestampToNow()
- Overrides:
setTimestampToNow in class EODatabase
snapshotForGlobalID
public NSDictionary snapshotForGlobalID(EOGlobalID gid,
long timestamp)
- Overrides:
snapshotForGlobalID in class EODatabase
snapshotForGlobalID
public NSDictionary snapshotForGlobalID(EOGlobalID gid)
- Overrides:
snapshotForGlobalID in class EODatabase
snapshotForSourceGlobalID
public NSArray snapshotForSourceGlobalID(EOGlobalID gid,
String name,
long timestamp)
- Overrides:
snapshotForSourceGlobalID in class EODatabase
snapshotForSourceGlobalID
public NSArray snapshotForSourceGlobalID(EOGlobalID gid,
String name)
- Overrides:
snapshotForSourceGlobalID in class EODatabase
snapshots
public NSDictionary snapshots()
- Overrides:
snapshots in class EODatabase
timestampForGlobalID
public long timestampForGlobalID(EOGlobalID gid)
- Overrides:
timestampForGlobalID in class EODatabase
timestampForSourceGlobalID
public long timestampForSourceGlobalID(EOGlobalID gid,
String name)
- Overrides:
timestampForSourceGlobalID in class EODatabase
unregisterContext
public void unregisterContext(EODatabaseContext context)
- Overrides:
unregisterContext in class EODatabase
Copyright © 2002 – 2007 Project Wonder.