Up
Authors
- Mirko Viviani (
mirko.viviani@gmail.com)
-
- Manuel Guesdon (
mguesdon@orange-concept.com)
-
Date: Generated at 2025-12-01
Copyright: (C)
2000-2002,2003,2004,2005 Free Software
Foundation, Inc.
- Declared in:
- EOAccess/EODatabaseContext.h
Description forthcoming.
EODatabaseContext declares 18 Instance Variables
+ (void)
_setUseToManyCaching: (BOOL)yn;
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.
+ (Class)
contextClassToRegister;
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
- (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*)
missingObjectGlobalIDs;
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 NSMutableArray*
_checkPropagatedPKs;
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 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.
@public 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 NSMutableSet*
_missingObjectGIDs;
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.
- Declared in:
- EOAccess/EODatabaseContext.h
Description forthcoming.
- (void)
commitChanges;
Description forthcoming.
- (void)
createAdaptorOperationsForDatabaseOperation: (
EODatabaseOperation*)dbOpe;
Description forthcoming.
- (void)
createAdaptorOperationsForDatabaseOperation: (
EODatabaseOperation*)dbOpe
attributes: (
NSArray*)attributes;
Description forthcoming.
- (
NSArray*)
entitiesOnWhichThisEntityDepends: (
EOEntity*)entity;
Description forthcoming.
- (
NSArray*)
entityNameOrderingArrayForEntities: (
NSArray*)entities;
Description forthcoming.
- (BOOL)
handlesFetchSpecification: (
EOFetchSpecification*)fetchSpecification;
Description forthcoming.
- (BOOL)
isValidQualifierTypeForAttribute: (
EOAttribute*)attribute;
Description forthcoming.
- (
NSArray*)
lockingAttributesForAttributes: (
NSArray*)attributes
entity: (
EOEntity*)entity;
Description forthcoming.
- (
NSArray*)
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.
- (
NSArray*)
primaryKeyAttributesForAttributes: (
NSArray*)attributes
entity: (
EOEntity*)entity;
Description forthcoming.
- (void)
processSnapshotForDatabaseOperation: (
EODatabaseOperation*)dbOpe;
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.
- Declared in:
- EOAccess/EODatabaseContext.h
Description forthcoming.
- (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.
- (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.
- (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.
- Declared in:
- EOAccess/EODatabaseContext.h
- Conforms to:
- NSLocking
Description forthcoming.
- (void)
lock;
Description forthcoming.
- (void)
unlock;
Description forthcoming.
- Declared in:
- EOAccess/EODatabaseContext.h
Description forthcoming.
- (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'
- (void)
forgetSnapshotForSourceGlobalID: (
EOGlobalID*)globalID
relationshipName: (
NSString*)name;
Description forthcoming.
- (void)
initializeObject: (id)object
withGlobalID: (
EOGlobalID*)globalID
editingContext: (
EOEditingContext*)context;
Description forthcoming.
- (void)
invalidateAllObjects;
Description forthcoming.
- (void)
invalidateObjectsWithGlobalIDs: (
NSArray*)globalIDs;
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.
- (BOOL)
databaseContext: (
EODatabaseContext*)context
failedToFetchObject: (id)object
globalID: (
EOGlobalID*)gid;
Description forthcoming.
- (BOOL)
databaseContext: (
EODatabaseContext*)databaseContext
shouldFetchArrayFault: (id)fault;
Description forthcoming.
- (BOOL)
databaseContext: (
EODatabaseContext*)databaseContext
shouldFetchObjectFault: (id)fault;
Description forthcoming.
- (BOOL)
databaseContext: (
EODatabaseContext*)databaseContext
shouldHandleDatabaseException: (
NSException*)exception;
If the delegate returns NO, it is
responsible for doing the right thing This is
new in WO 4.5
- (BOOL)
databaseContext: (
EODatabaseContext*)databaseContext
shouldRaiseExceptionForLockFailure: (
NSException*)exception;
Description forthcoming.
- (
NSArray*)
databaseContext: (
EODatabaseContext*)context
willOrderAdaptorOperationsFromDatabaseOperations: (
NSArray*)databaseOps;
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