public class ERXDatabase extends 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 |
EODatabase._DatabaseRecord, EODatabase.ClassDelegate
Modifier and Type | Field and Description |
---|---|
static String |
CacheChangeKey |
static String |
SnapshotCacheChanged |
protected static int |
SnapshotCacheMapInitialCapacity |
protected static float |
SnapshotCacheMapInitialLoadFactor |
_adaptor, _doesReleaseUnreferencedSnapshots, _entityCache, _entityFetchAttributesCache, _lastEntity, _lastGID, _lastRec, _models, _registeredContexts, _snapshots, _timestamp
_CLASS
Constructor and Description |
---|
ERXDatabase(EOAdaptor adaptor) |
ERXDatabase(EODatabase _database) |
ERXDatabase(EOModel model) |
classDelegate, disableSnapshotRefCounting, newDatabase, setClassDelegate
public static final String SnapshotCacheChanged
public static final String CacheChangeKey
protected static int SnapshotCacheMapInitialCapacity
protected static float SnapshotCacheMapInitialLoadFactor
public ERXDatabase(EOAdaptor adaptor)
public ERXDatabase(EOModel model)
public ERXDatabase(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 EODatabase
protected void _clearLastRecords()
_clearLastRecords
in class EODatabase
protected EODatabase._DatabaseRecord _fastHashGet(EOGlobalID gid)
_fastHashGet
in class EODatabase
protected void _fastHashInsert(EODatabase._DatabaseRecord rec, EOGlobalID gid)
_fastHashInsert
in class EODatabase
protected void _fastHashRemove(EOGlobalID gid)
_fastHashRemove
in class EODatabase
public void _forgetSnapshotForGlobalID(EOGlobalID gid)
_forgetSnapshotForGlobalID
in class EODatabase
protected void _freeToManyMap(EODatabase._DatabaseRecord rec)
_freeToManyMap
in class EODatabase
public void _globalIDChanged(NSNotification notification)
_globalIDChanged
in class EODatabase
public void recordSnapshotForGlobalID(NSDictionary snapshot, EOGlobalID gid)
recordSnapshotForGlobalID
in class EODatabase
public void recordSnapshotForSourceGlobalID(NSArray gids, EOGlobalID gid, String name)
recordSnapshotForSourceGlobalID
in class EODatabase
public int _indexOfRegisteredContext(EODatabaseContext context)
_indexOfRegisteredContext
in class EODatabase
protected EOGlobalID _recordedGIDForSnapshotWithGid(EOGlobalID gid)
_recordedGIDForSnapshotWithGid
in class EODatabase
protected void _setTimestampForCachedGlobalID(EOGlobalID gid)
_setTimestampForCachedGlobalID
in class EODatabase
public int _snapshotCountForGlobalID(EOGlobalID gid)
_snapshotCountForGlobalID
in class EODatabase
public EOAdaptor adaptor()
adaptor
in class EODatabase
public void addModel(EOModel model)
addModel
in class EODatabase
public boolean addModelIfCompatible(EOModel model)
addModelIfCompatible
in class EODatabase
public void decrementSnapshotCountForGlobalID(EOGlobalID gid)
decrementSnapshotCountForGlobalID
in class EODatabase
public void dispose()
dispose
in interface NSDisposable
dispose
in class EODatabase
public EOEntity entityForObject(EOEnterpriseObject object)
entityForObject
in class EODatabase
public EOEntity entityNamed(String entityName)
entityNamed
in class EODatabase
public void forgetAllSnapshots()
forgetAllSnapshots
in class EODatabase
public void forgetSnapshotForGlobalID(EOGlobalID gid)
forgetSnapshotForGlobalID
in class EODatabase
public void forgetSnapshotsForGlobalIDs(NSArray array)
forgetSnapshotsForGlobalIDs
in class EODatabase
public void handleDroppedConnection()
handleDroppedConnection
in class EODatabase
public void incrementSnapshotCountForGlobalID(EOGlobalID gid)
incrementSnapshotCountForGlobalID
in class EODatabase
public void invalidateResultCache()
invalidateResultCache
in class EODatabase
public void invalidateResultCacheForEntityNamed(String name)
invalidateResultCacheForEntityNamed
in class EODatabase
public NSArray models()
models
in class EODatabase
public void recordSnapshots(NSDictionary snapshots)
recordSnapshots
in class EODatabase
public void recordToManySnapshots(NSDictionary snapshots)
recordToManySnapshots
in class EODatabase
public void registerContext(EODatabaseContext context)
registerContext
in class EODatabase
public NSArray registeredContexts()
registeredContexts
in class EODatabase
public void removeModel(EOModel model)
removeModel
in class EODatabase
public NSArray resultCacheForEntityNamed(String name)
resultCacheForEntityNamed
in class EODatabase
public void setResultCache(NSArray cache, String name)
setResultCache
in class EODatabase
public void setTimestampToNow()
setTimestampToNow
in class EODatabase
public NSDictionary snapshotForGlobalID(EOGlobalID gid, long timestamp)
snapshotForGlobalID
in class EODatabase
public NSDictionary snapshotForGlobalID(EOGlobalID gid)
snapshotForGlobalID
in class EODatabase
public NSArray snapshotForSourceGlobalID(EOGlobalID gid, String name, long timestamp)
snapshotForSourceGlobalID
in class EODatabase
public NSArray snapshotForSourceGlobalID(EOGlobalID gid, String name)
snapshotForSourceGlobalID
in class EODatabase
public NSDictionary snapshots()
snapshots
in class EODatabase
public long timestampForGlobalID(EOGlobalID gid)
timestampForGlobalID
in class EODatabase
public long timestampForSourceGlobalID(EOGlobalID gid, String name)
timestampForSourceGlobalID
in class EODatabase
public void unregisterContext(EODatabaseContext context)
unregisterContext
in class EODatabase
Copyright © 2002 – 2024 Project Wonder.