public class ERXDatabase
extends com.webobjects.eoaccess.EODatabase
Modifier and Type | Class and Description |
---|---|
static class |
ERXDatabase.CacheChange |
static class |
ERXDatabase.SnapshotCacheChange |
static class |
ERXDatabase.SnapshotDeleted |
static class |
ERXDatabase.SnapshotInserted |
static class |
ERXDatabase.SnapshotUpdated |
static class |
ERXDatabase.ToManySnapshotUpdated |
Modifier and Type | Field and Description |
---|---|
static String |
CacheChangeKey |
static String |
SnapshotCacheChanged |
protected static int |
SnapshotCacheMapInitialCapacity |
protected static float |
SnapshotCacheMapInitialLoadFactor |
Constructor and Description |
---|
ERXDatabase(com.webobjects.eoaccess.EOAdaptor adaptor) |
ERXDatabase(com.webobjects.eoaccess.EODatabase _database) |
ERXDatabase(com.webobjects.eoaccess.EOModel model) |
Modifier and Type | Method and Description |
---|---|
protected NSSet |
_cachedFetchAttributesForEntityNamed(String name) |
protected void |
_clearLastRecords() |
protected com.webobjects.eoaccess.EODatabase._DatabaseRecord |
_fastHashGet(com.webobjects.eocontrol.EOGlobalID gid) |
protected void |
_fastHashInsert(com.webobjects.eoaccess.EODatabase._DatabaseRecord rec,
com.webobjects.eocontrol.EOGlobalID gid) |
protected void |
_fastHashRemove(com.webobjects.eocontrol.EOGlobalID gid) |
void |
_forgetSnapshotForGlobalID(com.webobjects.eocontrol.EOGlobalID gid) |
protected void |
_freeToManyMap(com.webobjects.eoaccess.EODatabase._DatabaseRecord rec) |
void |
_globalIDChanged(com.webobjects.foundation.NSNotification notification) |
int |
_indexOfRegisteredContext(com.webobjects.eoaccess.EODatabaseContext context) |
void |
_notifyCacheChange(ERXDatabase.CacheChange cacheChange) |
protected com.webobjects.eocontrol.EOGlobalID |
_recordedGIDForSnapshotWithGid(com.webobjects.eocontrol.EOGlobalID gid) |
protected void |
_setTimestampForCachedGlobalID(com.webobjects.eocontrol.EOGlobalID gid) |
int |
_snapshotCountForGlobalID(com.webobjects.eocontrol.EOGlobalID gid) |
com.webobjects.eoaccess.EOAdaptor |
adaptor() |
void |
addModel(com.webobjects.eoaccess.EOModel model) |
boolean |
addModelIfCompatible(com.webobjects.eoaccess.EOModel model) |
void |
decrementSnapshotCountForGlobalID(com.webobjects.eocontrol.EOGlobalID gid) |
void |
dispose() |
com.webobjects.eoaccess.EOEntity |
entityForObject(com.webobjects.eocontrol.EOEnterpriseObject object) |
com.webobjects.eoaccess.EOEntity |
entityNamed(String entityName) |
void |
forgetAllSnapshots() |
void |
forgetSnapshotForGlobalID(com.webobjects.eocontrol.EOGlobalID gid) |
void |
forgetSnapshotsForGlobalIDs(NSArray array) |
void |
handleDroppedConnection() |
void |
incrementSnapshotCountForGlobalID(com.webobjects.eocontrol.EOGlobalID gid) |
void |
invalidateResultCache() |
void |
invalidateResultCacheForEntityNamed(String name) |
NSArray |
models() |
void |
recordSnapshotForGlobalID(NSDictionary snapshot,
com.webobjects.eocontrol.EOGlobalID gid) |
void |
recordSnapshotForSourceGlobalID(NSArray gids,
com.webobjects.eocontrol.EOGlobalID gid,
String name) |
void |
recordSnapshots(NSDictionary snapshots) |
void |
recordToManySnapshots(NSDictionary snapshots) |
void |
registerContext(com.webobjects.eoaccess.EODatabaseContext context) |
NSArray |
registeredContexts() |
void |
removeModel(com.webobjects.eoaccess.EOModel model) |
NSArray |
resultCacheForEntityNamed(String name) |
void |
setResultCache(NSArray cache,
String name) |
static void |
setSnapshotCacheMapInitialCapacity(int capacity) |
static void |
setSnapshotCacheMapInitialLoadFactor(float loadFactor) |
void |
setTimestampToNow() |
int |
snapshotCacheSize() |
NSDictionary |
snapshotForGlobalID(com.webobjects.eocontrol.EOGlobalID gid) |
NSDictionary |
snapshotForGlobalID(com.webobjects.eocontrol.EOGlobalID gid,
long timestamp) |
NSArray |
snapshotForSourceGlobalID(com.webobjects.eocontrol.EOGlobalID gid,
String name) |
NSArray |
snapshotForSourceGlobalID(com.webobjects.eocontrol.EOGlobalID gid,
String name,
long timestamp) |
NSDictionary |
snapshots() |
long |
timestampForGlobalID(com.webobjects.eocontrol.EOGlobalID gid) |
long |
timestampForSourceGlobalID(com.webobjects.eocontrol.EOGlobalID gid,
String name) |
void |
unregisterContext(com.webobjects.eoaccess.EODatabaseContext context) |
public static final String SnapshotCacheChanged
public static final String CacheChangeKey
protected static int SnapshotCacheMapInitialCapacity
protected static float SnapshotCacheMapInitialLoadFactor
public ERXDatabase(com.webobjects.eoaccess.EOAdaptor adaptor)
public ERXDatabase(com.webobjects.eoaccess.EOModel model)
public ERXDatabase(com.webobjects.eoaccess.EODatabase _database)
public static void setSnapshotCacheMapInitialCapacity(int capacity)
public static void setSnapshotCacheMapInitialLoadFactor(float loadFactor)
public int snapshotCacheSize()
public void _notifyCacheChange(ERXDatabase.CacheChange cacheChange)
protected NSSet _cachedFetchAttributesForEntityNamed(String name)
_cachedFetchAttributesForEntityNamed
in class com.webobjects.eoaccess.EODatabase
protected void _clearLastRecords()
_clearLastRecords
in class com.webobjects.eoaccess.EODatabase
protected com.webobjects.eoaccess.EODatabase._DatabaseRecord _fastHashGet(com.webobjects.eocontrol.EOGlobalID gid)
_fastHashGet
in class com.webobjects.eoaccess.EODatabase
protected void _fastHashInsert(com.webobjects.eoaccess.EODatabase._DatabaseRecord rec, com.webobjects.eocontrol.EOGlobalID gid)
_fastHashInsert
in class com.webobjects.eoaccess.EODatabase
protected void _fastHashRemove(com.webobjects.eocontrol.EOGlobalID gid)
_fastHashRemove
in class com.webobjects.eoaccess.EODatabase
public void _forgetSnapshotForGlobalID(com.webobjects.eocontrol.EOGlobalID gid)
_forgetSnapshotForGlobalID
in class com.webobjects.eoaccess.EODatabase
protected void _freeToManyMap(com.webobjects.eoaccess.EODatabase._DatabaseRecord rec)
_freeToManyMap
in class com.webobjects.eoaccess.EODatabase
public void _globalIDChanged(com.webobjects.foundation.NSNotification notification)
_globalIDChanged
in class com.webobjects.eoaccess.EODatabase
public void recordSnapshotForGlobalID(NSDictionary snapshot, com.webobjects.eocontrol.EOGlobalID gid)
recordSnapshotForGlobalID
in class com.webobjects.eoaccess.EODatabase
public void recordSnapshotForSourceGlobalID(NSArray gids, com.webobjects.eocontrol.EOGlobalID gid, String name)
recordSnapshotForSourceGlobalID
in class com.webobjects.eoaccess.EODatabase
public int _indexOfRegisteredContext(com.webobjects.eoaccess.EODatabaseContext context)
_indexOfRegisteredContext
in class com.webobjects.eoaccess.EODatabase
protected com.webobjects.eocontrol.EOGlobalID _recordedGIDForSnapshotWithGid(com.webobjects.eocontrol.EOGlobalID gid)
_recordedGIDForSnapshotWithGid
in class com.webobjects.eoaccess.EODatabase
protected void _setTimestampForCachedGlobalID(com.webobjects.eocontrol.EOGlobalID gid)
_setTimestampForCachedGlobalID
in class com.webobjects.eoaccess.EODatabase
public int _snapshotCountForGlobalID(com.webobjects.eocontrol.EOGlobalID gid)
_snapshotCountForGlobalID
in class com.webobjects.eoaccess.EODatabase
public com.webobjects.eoaccess.EOAdaptor adaptor()
adaptor
in class com.webobjects.eoaccess.EODatabase
public void addModel(com.webobjects.eoaccess.EOModel model)
addModel
in class com.webobjects.eoaccess.EODatabase
public boolean addModelIfCompatible(com.webobjects.eoaccess.EOModel model)
addModelIfCompatible
in class com.webobjects.eoaccess.EODatabase
public void decrementSnapshotCountForGlobalID(com.webobjects.eocontrol.EOGlobalID gid)
decrementSnapshotCountForGlobalID
in class com.webobjects.eoaccess.EODatabase
public void dispose()
dispose
in interface com.webobjects.foundation.NSDisposable
dispose
in class com.webobjects.eoaccess.EODatabase
public com.webobjects.eoaccess.EOEntity entityForObject(com.webobjects.eocontrol.EOEnterpriseObject object)
entityForObject
in class com.webobjects.eoaccess.EODatabase
public com.webobjects.eoaccess.EOEntity entityNamed(String entityName)
entityNamed
in class com.webobjects.eoaccess.EODatabase
public void forgetAllSnapshots()
forgetAllSnapshots
in class com.webobjects.eoaccess.EODatabase
public void forgetSnapshotForGlobalID(com.webobjects.eocontrol.EOGlobalID gid)
forgetSnapshotForGlobalID
in class com.webobjects.eoaccess.EODatabase
public void forgetSnapshotsForGlobalIDs(NSArray array)
forgetSnapshotsForGlobalIDs
in class com.webobjects.eoaccess.EODatabase
public void handleDroppedConnection()
handleDroppedConnection
in class com.webobjects.eoaccess.EODatabase
public void incrementSnapshotCountForGlobalID(com.webobjects.eocontrol.EOGlobalID gid)
incrementSnapshotCountForGlobalID
in class com.webobjects.eoaccess.EODatabase
public void invalidateResultCache()
invalidateResultCache
in class com.webobjects.eoaccess.EODatabase
public void invalidateResultCacheForEntityNamed(String name)
invalidateResultCacheForEntityNamed
in class com.webobjects.eoaccess.EODatabase
public NSArray models()
models
in class com.webobjects.eoaccess.EODatabase
public void recordSnapshots(NSDictionary snapshots)
recordSnapshots
in class com.webobjects.eoaccess.EODatabase
public void recordToManySnapshots(NSDictionary snapshots)
recordToManySnapshots
in class com.webobjects.eoaccess.EODatabase
public void registerContext(com.webobjects.eoaccess.EODatabaseContext context)
registerContext
in class com.webobjects.eoaccess.EODatabase
public NSArray registeredContexts()
registeredContexts
in class com.webobjects.eoaccess.EODatabase
public void removeModel(com.webobjects.eoaccess.EOModel model)
removeModel
in class com.webobjects.eoaccess.EODatabase
public NSArray resultCacheForEntityNamed(String name)
resultCacheForEntityNamed
in class com.webobjects.eoaccess.EODatabase
public void setResultCache(NSArray cache, String name)
setResultCache
in class com.webobjects.eoaccess.EODatabase
public void setTimestampToNow()
setTimestampToNow
in class com.webobjects.eoaccess.EODatabase
public NSDictionary snapshotForGlobalID(com.webobjects.eocontrol.EOGlobalID gid, long timestamp)
snapshotForGlobalID
in class com.webobjects.eoaccess.EODatabase
public NSDictionary snapshotForGlobalID(com.webobjects.eocontrol.EOGlobalID gid)
snapshotForGlobalID
in class com.webobjects.eoaccess.EODatabase
public NSArray snapshotForSourceGlobalID(com.webobjects.eocontrol.EOGlobalID gid, String name, long timestamp)
snapshotForSourceGlobalID
in class com.webobjects.eoaccess.EODatabase
public NSArray snapshotForSourceGlobalID(com.webobjects.eocontrol.EOGlobalID gid, String name)
snapshotForSourceGlobalID
in class com.webobjects.eoaccess.EODatabase
public NSDictionary snapshots()
snapshots
in class com.webobjects.eoaccess.EODatabase
public long timestampForGlobalID(com.webobjects.eocontrol.EOGlobalID gid)
timestampForGlobalID
in class com.webobjects.eoaccess.EODatabase
public long timestampForSourceGlobalID(com.webobjects.eocontrol.EOGlobalID gid, String name)
timestampForSourceGlobalID
in class com.webobjects.eoaccess.EODatabase
public void unregisterContext(com.webobjects.eoaccess.EODatabaseContext context)
unregisterContext
in class com.webobjects.eoaccess.EODatabase
Copyright © 2002 – 2020 Project Wonder.