Up
Authors
- Mirko Viviani (
mirko.viviani@gmail.com
)
-
- Manuel Guesdon (
mguesdon@orange-concept.com
)
-
Version: 26481
Date: 2008-05-01 20:08:18 +0200 (Don, 01 Mai 2008)
Copyright: (C)
2000-2002,2003,2004,2005 Free Software
Foundation, Inc.
- Declared in:
- EOAccess/EODatabaseContext.h
Description forthcoming.
Instance Variables
Method summary
+ (Class)
contextClassToRegister;
Description forthcoming.
+ (
EODatabaseContext*)
registeredDatabaseContextForModel: (
EOModel*)model
editingContext: (EOEditingContext*)editingContext;
Description forthcoming.
+ (void)
setContextClassToRegister: (Class)contextClass;
Description forthcoming.
- (
EODatabaseChannel*)
_availableChannelFromRegisteredChannels;
Warning the underscore at the start of the
name of this method indicates that it is private, for
internal use only, and you should not use the
method in your code.
returns a non busy
channel if any, nil
otherwise
- (EOObjectStoreCoordinator*)
coordinator;
returns the coordinator
- (id)
delegate;
Get the delegate
- (void)
handleDroppedConnection;
Description forthcoming.
- (BOOL)
hasBusyChannels;
Returns YES
if we have at least one
busy channel
- (id)
initWithDatabase: (
EODatabase*)database;
Description forthcoming.
- (NSArray*)
registeredChannels;
Description forthcoming.
- (void)
setDelegate: (id)delegate;
Set the delegate
- (void)
setUpdateStrategy: (
EOUpdateStrategy)strategy;
Set the update strategy to 'strategy' May
raise an exception if transaction has began or if you
want pessimistic lock when there's already a snapshot
recorded
Instance Variables for EODatabaseContext Class
@protected EOAdaptorContext* _adaptorContext;
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected NSMutableDictionary* _batchFaultBuffer;
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected NSMutableDictionary* _batchToManyFaultBuffer;
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected EOObjectStoreCoordinator* _coordinator;
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected EODatabase* _database;
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected NSMapTable* _dbOperationsByGlobalID;
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected id _delegate;
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected struct ... _delegateRespondsTo;
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected NSMutableArray* _deleteStack;
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected EOEditingContext* _editingContext;
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected struct ... _flags;
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected EOEntity* _lastEntity;
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected NSRecursiveLock* _lock;
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected NSHashTable* _lockedObjects;
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected NSHashTable* _nonPrimaryKeyGenerators;
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected NSMutableArray* _registeredChannels;
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected NSMutableArray* _uniqueArrayStack;
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected NSMutableArray* _uniqueStack;
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected EOUpdateStrategy _updateStrategy;
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
- Declared in:
- EOAccess/EODatabaseContext.h
Description forthcoming.
Method summary
- (void)
batchFetchRelationship: (
EORelationship*)relationship
forSourceObjects: (NSArray*)objects
editingContext: (EOEditingContext*)editingContext;
Description forthcoming.
- Declared in:
- EOAccess/EODatabaseContext.h
Description forthcoming.
Method summary
- (void)
commitChanges;
Description forthcoming.
- (void)
createAdaptorOperationsForDatabaseOperation: (
EODatabaseOperation*)dbOpe;
Description forthcoming.
- (void)
createAdaptorOperationsForDatabaseOperation: (
EODatabaseOperation*)dbOpe
attributes: (NSArray*)attributes;
Description forthcoming.
- (
EODatabaseOperation*)
databaseOperationForGlobalID: (EOGlobalID*)gid;
Description forthcoming.
- (NSArray*)
entitiesOnWhichThisEntityDepends: (
EOEntity*)entity;
Description forthcoming.
- (NSArray*)
entityNameOrderingArrayForEntities: (NSArray*)entities;
Description forthcoming.
- (BOOL)
handlesFetchSpecification: (EOFetchSpecification*)fetchSpecification;
Description forthcoming.
- (void)
insertEntity: (
EOEntity*)entity
intoOrderingArray: (NSMutableArray*)orderingArray
withDependencies: (NSDictionary*)dependencies
processingSet: (NSMutableSet*)processingSet;
Description forthcoming.
- (BOOL)
isValidQualifierTypeForAttribute: (
EOAttribute*)attribute;
Description forthcoming.
- (NSArray*)
lockingAttributesForAttributes: (NSArray*)attributes
entity: (
EOEntity*)entity;
Description forthcoming.
- (id)
lockingNonQualifiableAttributes: (NSArray*)attributes;
Description forthcoming.
- (void)
nullifyAttributesInRelationship: (
EORelationship*)relationship
sourceObject: (id)sourceObject
destinationObject: (id)destinationObject;
Description forthcoming.
- (void)
nullifyAttributesInRelationship: (
EORelationship*)relationship
sourceObject: (id)sourceObject
destinationObjects: (NSArray*)destinationObjects;
Description forthcoming.
- (NSArray*)
orderAdaptorOperations;
Description forthcoming.
- (BOOL)
ownsEntityNamed: (NSString*)entityName;
Description forthcoming.
- (BOOL)
ownsGlobalID: (EOGlobalID*)globalID;
Description forthcoming.
- (BOOL)
ownsObject: (id)object;
Description forthcoming.
- (void)
performChanges;
Constructs EOAdaptorOperations for all
EODatabaseOperations constructed in
during recordChangesInEditingContext and
recordUpdateForObject:changes:.
Performs the EOAdaptorOperations on an available
adaptor channel. If the save is OK, updates the
snapshots in the EODatabaseContext to reflect the
new state of the server. Raises an exception is the
adaptor is unable to perform the operations.
- (void)
prepareForSaveWithCoordinator: (EOObjectStoreCoordinator*)coordinator
editingContext: (EOEditingContext*)context;
Description forthcoming.
- (NSArray*)
primaryKeyAttributesForAttributes: (NSArray*)attributes
entity: (
EOEntity*)entity;
Description forthcoming.
- (void)
processSnapshotForDatabaseOperation: (
EODatabaseOperation*)dbOpe;
Description forthcoming.
- (EOQualifier*)
qualifierForLockingAttributes: (NSArray*)attributes
primaryKeyAttributes: (NSArray*)primaryKeyAttributes
entity: (
EOEntity*)entity
snapshot: (NSDictionary*)snapshot;
Description forthcoming.
- (void)
recordChangesInEditingContext;
The method overrides the inherited implementation to
create a list of EODatabaseOperations for
EOEditingContext objects changes (only
objects owned by the receiver). It forwards any
relationship changes found which are not owned
by the receiver to the EOObjectStoreCoordinator. It's
invoked during EOObjectStoreCoordinator saving
changes (saveChangesInEditingContext:) method. It's
invoked after
prepareForSaveWithCoordinator:editingContext:
and before ownsGlobalID:.
- (void)
recordDeleteForObject: (id)object;
Description forthcoming.
- (void)
recordInsertForObject: (id)object;
Description forthcoming.
- (void)
recordUpdateForObject: (id)object
changes: (NSDictionary*)changes;
Contructs a list of EODatabaseOperations for all
changes in the EOEditingContext that are
owned by this context. Forward any relationship
changes discovered but not owned by this
context to the coordinator.
- (NSDictionary*)
relayAttributesInRelationship: (
EORelationship*)relationship
sourceObject: (id)sourceObject
destinationObject: (id)destinationObject;
Description forthcoming.
- (void)
relayAttributesInRelationship: (
EORelationship*)relationship
sourceObject: (id)sourceObject
destinationObjects: (NSArray*)destinationObjects;
Description forthcoming.
- (void)
relayPrimaryKey: (NSDictionary*)pk
object: (id)object
entity: (
EOEntity*)entity;
Description forthcoming.
- (void)
rollbackChanges;
Description forthcoming.
- (NSDictionary*)
valuesForKeys: (NSArray*)keys
object: (id)object;
Description forthcoming.
- (NSDictionary*)
valuesToWriteForAttributes: (NSArray*)attributes
entity: (
EOEntity*)entity
changedValues: (NSDictionary*)changedValues;
Description forthcoming.
- Declared in:
- EOAccess/EODatabaseContext.h
Description forthcoming.
Method summary
- (void)
_beginTransaction;
Warning the underscore at the start of the
name of this method indicates that it is private, for
internal use only, and you should not use the
method in your code.
- (void)
_commitTransaction;
Warning the underscore at the start of the
name of this method indicates that it is private, for
internal use only, and you should not use the
method in your code.
- (void)
_forceDisconnect;
Warning the underscore at the start of the
name of this method indicates that it is private, for
internal use only, and you should not use the
method in your code.
- (
EODatabaseChannel*)
_obtainOpenChannel;
Warning the underscore at the start of the
name of this method indicates that it is private, for
internal use only, and you should not use the
method in your code.
- (BOOL)
_openChannelWithLoginPanel: (
EODatabaseChannel*)databaseChannel;
Warning the underscore at the start of the
name of this method indicates that it is private, for
internal use only, and you should not use the
method in your code.
- (void)
_rollbackTransaction;
Warning the underscore at the start of the
name of this method indicates that it is private, for
internal use only, and you should not use the
method in your code.
- (void)
forgetAllLocks;
Description forthcoming.
- (void)
forgetLocksForObjectsWithGlobalIDs: (NSArray*)gids;
Description forthcoming.
- (void)
forgetSnapshotForGlobalID: (EOGlobalID*)gid;
Description forthcoming.
- (void)
forgetSnapshotsForGlobalIDs: (NSArray*)gids;
Description forthcoming.
- (void)
initializeObject: (id)object
row: (NSDictionary*)row
entity: (
EOEntity*)entity
editingContext: (EOEditingContext*)context;
Description forthcoming.
- (BOOL)
isObjectLockedWithGlobalID: (EOGlobalID*)globalID;
Description forthcoming.
- (NSDictionary*)
localSnapshotForGlobalID: (EOGlobalID*)gid;
Returns the snapshot for the globalID (
nil
if there's none). Only searches
locally (in the transaction scope), not in the
EODatabase.
- (NSArray*)
localSnapshotForSourceGlobalID: (EOGlobalID*)gid
relationshipName: (NSString*)name;
Description forthcoming.
- (void)
recordSnapshot: (NSDictionary*)snapshot
forGlobalID: (EOGlobalID*)gid;
Description forthcoming.
- (void)
recordSnapshot: (NSArray*)gids
forSourceGlobalID: (EOGlobalID*)gid
relationshipName: (NSString*)name;
Description forthcoming.
- (void)
recordSnapshots: (NSDictionary*)snapshots;
Description forthcoming.
- (void)
recordToManySnapshots: (NSDictionary*)snapshots;
Description forthcoming.
- (void)
registerLockedObjectWithGlobalID: (EOGlobalID*)globalID;
Description forthcoming.
- (NSDictionary*)
snapshotForGlobalID: (EOGlobalID*)gid;
Returns snapshot for globalID by calling
snapshotForGlobalID:after: with
EODistantPastTimeInterval as time
interval. Searches first locally (in the
transaction scope) and after in the EODatabase.
- (NSDictionary*)
snapshotForGlobalID: (EOGlobalID*)gid
after: (NSTimeInterval)ti;
Returns snapshot for globalID. (nil
if
there's no snapshot for the globalID or if the
corresponding tsimestamp is less than
ti). Searches first locally (in the
transaction scope) and after in the EODatabase.
- (NSArray*)
snapshotForSourceGlobalID: (EOGlobalID*)gid
relationshipName: (NSString*)name;
Description forthcoming.
- Declared in:
- EOAccess/EODatabaseContext.h
- Conforms to:
- NSLocking
Description forthcoming.
Method summary
- (void)
lock;
Description forthcoming.
- (void)
unlock;
Description forthcoming.
- Declared in:
- EOAccess/EODatabaseContext.h
Description forthcoming.
Method summary
- (void)
_registerSnapshot: (NSArray*)snapshot
forSourceGlobalID: (EOGlobalID*)globalID
relationshipName: (NSString*)name
editingContext: (EOEditingContext*)context;
Warning the underscore at the start of the
name of this method indicates that it is
private, for internal use only, and you should not
use the method in your code.
- (NSArray*)
arrayFaultWithSourceGlobalID: (EOGlobalID*)globalID
relationshipName: (NSString*)relationshipName
editingContext: (EOEditingContext*)context;
Get an array fault for globalID for
relationshipName
- (id)
entityForGlobalID: (EOGlobalID*)globalID;
return entity corresponding to 'globalID'
- (id)
faultForGlobalID: (EOGlobalID*)globalID
editingContext: (EOEditingContext*)context;
Get a fault for 'globalID'
- (id)
faultForRawRow: (NSDictionary*)row
entityNamed: (NSString*)entityName
editingContext: (EOEditingContext*)context;
Return a fault for row 'row'
- (void)
initializeObject: (id)object
withGlobalID: (EOGlobalID*)globalID
editingContext: (EOEditingContext*)context;
Description forthcoming.
- (void)
invalidateAllObjects;
Description forthcoming.
- (void)
invalidateObjectsWithGlobalIDs: (NSArray*)globalIDs;
Description forthcoming.
- (BOOL)
isObjectLockedWithGlobalID: (EOGlobalID*)gid
editingContext: (EOEditingContext*)context;
Description forthcoming.
- (void)
lockObjectWithGlobalID: (EOGlobalID*)globalID
editingContext: (EOEditingContext*)context;
Description forthcoming.
- (NSArray*)
objectsForSourceGlobalID: (EOGlobalID*)globalID
relationshipName: (NSString*)name
editingContext: (EOEditingContext*)context;
Description forthcoming.
- (NSArray*)
objectsWithFetchSpecification: (EOFetchSpecification*)fetchSpecification
editingContext: (EOEditingContext*)context;
Description forthcoming.
- (void)
refaultObject: (id)object
withGlobalID: (EOGlobalID*)globalID
editingContext: (EOEditingContext*)context;
Description forthcoming.
- (void)
saveChangesInEditingContext: (EOEditingContext*)context;
Description forthcoming.
- Declared in:
- EOAccess/EODatabaseContext.h
Description forthcoming.
Method summary
- (void)
databaseContext: (
EODatabaseContext*)context
didFetchObjects: (NSArray*)objects
fetchSpecification: (EOFetchSpecification*)fetchSpecification
editingContext: (EOEditingContext*)editingContext;
Description forthcoming.
- (void)
databaseContext: (
EODatabaseContext*)context
didSelectObjectsWithFetchSpecification: (EOFetchSpecification*)fetchSpecification
databaseChannel: (
EODatabaseChannel*)channel;
Description forthcoming.
- (BOOL)
databaseContext: (
EODatabaseContext*)context
failedToFetchObject: (id)object
globalID: (EOGlobalID*)gid;
Description forthcoming.
- (NSDictionary*)
databaseContext: (
EODatabaseContext*)context
newPrimaryKeyForObject: (id)object
entity: (
EOEntity*)entity;
Description forthcoming.
- (BOOL)
databaseContext: (
EODatabaseContext*)databaseContext
shouldFetchArrayFault: (id)fault;
Description forthcoming.
- (BOOL)
databaseContext: (
EODatabaseContext*)databaseContext
shouldFetchObjectFault: (id)fault;
Description forthcoming.
- (NSArray*)
databaseContext: (
EODatabaseContext*)context
shouldFetchObjectsWithFetchSpecification: (EOFetchSpecification*)fetchSpecification
editingContext: (EOEditingContext*)editingContext;
Description forthcoming.
- (BOOL)
databaseContext: (
EODatabaseContext*)context
shouldInvalidateObjectWithGlobalID: (EOGlobalID*)globalId
snapshot: (NSDictionary*)snapshot;
Description forthcoming.
- (BOOL)
databaseContext: (
EODatabaseContext*)databaseContext
shouldLockObjectWithGlobalID: (EOGlobalID*)globalID
snapshot: (NSDictionary*)snapshot;
Description forthcoming.
- (BOOL)
databaseContext: (
EODatabaseContext*)databaseContext
shouldRaiseExceptionForLockFailure: (NSException*)exception;
Description forthcoming.
- (BOOL)
databaseContext: (
EODatabaseContext*)context
shouldSelectObjectsWithFetchSpecification: (EOFetchSpecification*)fetchSpecification
databaseChannel: (
EODatabaseChannel*)channel;
Description forthcoming.
- (NSDictionary*)
databaseContext: (
EODatabaseContext*)context
shouldUpdateCurrentSnapshot: (NSDictionary*)currentSnapshot
newSnapshot: (NSDictionary*)newSnapshot
globalID: (EOGlobalID*)globalID
databaseChannel: (
EODatabaseChannel*)channel;
Description forthcoming.
- (BOOL)
databaseContext: (
EODatabaseContext*)context
shouldUsePessimisticLockWithFetchSpecification: (EOFetchSpecification*)fetchSpecification
databaseChannel: (
EODatabaseChannel*)channel;
Description forthcoming.
- (NSArray*)
databaseContext: (
EODatabaseContext*)context
willOrderAdaptorOperationsFromDatabaseOperations: (NSArray*)databaseOps;
Description forthcoming.
- (NSArray*)
databaseContext: (
EODatabaseContext*)context
willPerformAdaptorOperations: (NSArray*)adaptorOps
adaptorChannel: (
EOAdaptorChannel*)adaptorChannel;
Description forthcoming.
typedef enum ... EOUpdateStrategy;
Description forthcoming.
NSString* EOCustomQueryExpressionHintKey;
Description forthcoming.
NSString* EODatabaseChannelNeededNotification;
Description forthcoming.
NSString* EODatabaseContextKey;
Description forthcoming.
NSString* EODatabaseOperationsKey;
Description forthcoming.
NSString* EOFailedDatabaseOperationKey;
Description forthcoming.
NSString* EOStoredProcedureNameHintKey;
Description forthcoming.
struct _EOTransactionScope struct _EOTransactionScope;
Description forthcoming.
Up