ERXDatabase Class Reference

Inherits com::webobjects::eoaccess::EODatabase.

Collaboration diagram for ERXDatabase:

Collaboration graph
[legend]

List of all members.

Classes

class  CacheChange
class  SnapshotCacheChange
class  SnapshotDeleted
class  SnapshotInserted
class  SnapshotUpdated
class  ToManySnapshotUpdated

Public Member Functions

void _forgetSnapshotForGlobalID (EOGlobalID gid)
void _globalIDChanged (NSNotification notification)
int _indexOfRegisteredContext (EODatabaseContext context)
synchronized void _notifyCacheChange (CacheChange cacheChange)
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)
 ERXDatabase (EODatabase _database)
 ERXDatabase (EOModel model)
 ERXDatabase (EOAdaptor adaptor)
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)

Static Public Attributes

static final String CacheChangeKey = "CacheChange"
static final String SnapshotCacheChanged = "SnapshotCacheChanged"

Protected Member Functions

NSSet _cachedFetchAttributesForEntityNamed (String name)
void _clearLastRecords ()
_DatabaseRecord _fastHashGet (EOGlobalID gid)
void _fastHashInsert (_DatabaseRecord rec, EOGlobalID gid)
void _fastHashRemove (EOGlobalID gid)
void _freeToManyMap (_DatabaseRecord rec)
EOGlobalID _recordedGIDForSnapshotWithGid (EOGlobalID gid)
void _setTimestampForCachedGlobalID (EOGlobalID gid)

Private Attributes

boolean _decrementSnapshot
boolean _globalIDChanged


Constructor & Destructor Documentation

ERXDatabase ( EOAdaptor  adaptor  ) 

ERXDatabase ( EOModel  model  ) 

ERXDatabase ( EODatabase  _database  ) 


Member Function Documentation

NSSet _cachedFetchAttributesForEntityNamed ( String  name  )  [protected]

void _clearLastRecords (  )  [protected]

_DatabaseRecord _fastHashGet ( EOGlobalID  gid  )  [protected]

void _fastHashInsert ( _DatabaseRecord  rec,
EOGlobalID  gid 
) [protected]

void _fastHashRemove ( EOGlobalID  gid  )  [protected]

void _forgetSnapshotForGlobalID ( EOGlobalID  gid  ) 

void _freeToManyMap ( _DatabaseRecord  rec  )  [protected]

void _globalIDChanged ( NSNotification  notification  ) 

int _indexOfRegisteredContext ( EODatabaseContext  context  ) 

synchronized void _notifyCacheChange ( CacheChange  cacheChange  ) 

EOGlobalID _recordedGIDForSnapshotWithGid ( EOGlobalID  gid  )  [protected]

void _setTimestampForCachedGlobalID ( EOGlobalID  gid  )  [protected]

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  ) 


Member Data Documentation

boolean _decrementSnapshot [private]

boolean _globalIDChanged [private]

final String CacheChangeKey = "CacheChange" [static]

final String SnapshotCacheChanged = "SnapshotCacheChanged" [static]


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

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