/* An EODatabase represents a database server. It contains a list of databaseContexts that are connected to this server, a list of models which describe the server's schema, an adaptor which is is capable of communicating with the server and a set of snapshots representing the state of all objects stored in this server */
@interface EODatabase:NSObject
{
NSMutableArray *_registeredContexts;
EOAdaptor *_adaptor;
NSMutableDictionary *_snapshots;
NSMutableArray *_models;
}
- initWithAdaptor:(EOAdaptor *)adaptor;
// Initializes a newly allocated EODatabase with adaptor as its adaptor.
// Returns self. You must never associate more than one EODatabase with
// a given adaptor instance.
- initWithModel:(EOModel *)model;
// Calls [EOAdaptor adaptorWithModel:] and then [self initWithAdaptor:]
// and [self addModel:]
- (NSArray *)registeredContexts;
// Returns an array containing all contexts that have been registered for