# EODatabaseContext Class

mirko.viviani@gmail.com
mguesdon@orange-concept.com
Generated at 2026-02-03 22:13:20 +0000

2000-2002,2003,2004,2005 Free Software Foundation, Inc.
Software documentation for the EODatabaseContext class
EOAccess/EODatabaseContext.h
Description forthcoming.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
_setUseToManyCaching:
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.
contextClassToRegister
Description forthcoming.
databaseContextWithDatabase:
database
Description forthcoming.
registeredDatabaseContextForModel:
model
editingContext:
editingContext
Description forthcoming.
setContextClassToRegister:
contextClass
Description forthcoming.
_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
adaptorContext
returns the adaptor context
availableChannel
return a non busy channel
database
returns the database
delegate
Get the delegate
handleDroppedConnection
Description forthcoming.
hasBusyChannels
Returns `YES` if we have at least one busy channel
initWithDatabase:
database
Description forthcoming.
missingObjectGlobalIDs
Description forthcoming.
registerChannel:
channel
Description forthcoming.
registeredChannels
Description forthcoming.
setDelegate:
delegate
Set the delegate
setUpdateStrategy:
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
unregisterChannel:
channel
Description forthcoming.
updateStrategy
Get the update strategy
Software documentation for the EODatabaseContext(EOBatchFaulting) category
EOAccess/EODatabaseContext.h
Description forthcoming.
batchFetchRelationship:
relationship
forSourceObjects:
objects
editingContext:
editingContext
Description forthcoming.
Software documentation for the EODatabaseContext(EOCooperatingObjectStoreSupport) category
EOAccess/EODatabaseContext.h
Description forthcoming.
commitChanges
Description forthcoming.
createAdaptorOperationsForDatabaseOperation:
dbOpe
Description forthcoming.
createAdaptorOperationsForDatabaseOperation:
dbOpe
attributes:
attributes
Description forthcoming.
databaseOperationForGlobalID:
gid
Description forthcoming.
databaseOperationForObject:
object
Description forthcoming.
entitiesOnWhichThisEntityDepends:
entity
Description forthcoming.
entityNameOrderingArrayForEntities:
entities
Description forthcoming.
handlesFetchSpecification:
fetchSpecification
Description forthcoming.
insertEntity:
entity
intoOrderingArray:
orderingArray
withDependencies:
dependencies
processingSet:
processingSet
Description forthcoming.
isValidQualifierTypeForAttribute:
attribute
Description forthcoming.
lockingAttributesForAttributes:
attributes
entity:
entity
Description forthcoming.
lockingNonQualifiableAttributes:
attributes
Description forthcoming.
nullifyAttributesInRelationship:
relationship
sourceObject:
sourceObject
destinationObject:
destinationObject
Description forthcoming.
nullifyAttributesInRelationship:
relationship
sourceObject:
sourceObject
destinationObjects:
destinationObjects
Description forthcoming.
orderAdaptorOperations
Description forthcoming.
ownsEntityNamed:
entityName
Description forthcoming.
ownsGlobalID:
globalID
Description forthcoming.
ownsObject:
object
Description forthcoming.
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.
prepareForSaveWithCoordinator:
coordinator
editingContext:
context
Description forthcoming.
primaryKeyAttributesForAttributes:
attributes
entity:
entity
Description forthcoming.
processSnapshotForDatabaseOperation:
dbOpe
Description forthcoming.
qualifierForLockingAttributes:
attributes
primaryKeyAttributes:
primaryKeyAttributes
entity:
entity
snapshot:
snapshot
Description forthcoming.
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:.
recordDatabaseOperation:
databaseOpe
Description forthcoming.
recordDeleteForObject:
object
Description forthcoming.
recordInsertForObject:
object
Description forthcoming.
recordUpdateForObject:
object
changes:
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.
relayAttributesInRelationship:
relationship
sourceObject:
sourceObject
destinationObject:
destinationObject
Description forthcoming.
relayAttributesInRelationship:
relationship
sourceObject:
sourceObject
destinationObjects:
destinationObjects
Description forthcoming.
relayPrimaryKey:
pk
object:
object
entity:
entity
Description forthcoming.
rollbackChanges
Description forthcoming.
valuesForKeys:
keys
object:
object
Description forthcoming.
valuesToWriteForAttributes:
attributes
entity:
entity
changedValues:
changedValues
Description forthcoming.
Software documentation for the EODatabaseContext(EODatabaseSnapshotting) category
EOAccess/EODatabaseContext.h
Description forthcoming.
_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.
_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.
_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.
_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.
_openChannelWithLoginPanel:
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.
_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.
forgetAllLocks
Description forthcoming.
forgetLocksForObjectsWithGlobalIDs:
gids
Description forthcoming.
forgetSnapshotForGlobalID:
gid
Description forthcoming.
forgetSnapshotsForGlobalIDs:
gids
Description forthcoming.
initializeObject:
object
row:
row
entity:
entity
editingContext:
context
Description forthcoming.
isObjectLockedWithGlobalID:
globalID
Description forthcoming.
localSnapshotForGlobalID:
gid
Returns the snapshot for the globalID ( `nil` if there's none). Only searches locally (in the transaction scope), not in the EODatabase.
localSnapshotForSourceGlobalID:
gid
relationshipName:
name
Description forthcoming.
recordSnapshot:
snapshot
forGlobalID:
gid
Description forthcoming.
recordSnapshot:
gids
forSourceGlobalID:
gid
relationshipName:
name
Description forthcoming.
recordSnapshots:
snapshots
Description forthcoming.
recordToManySnapshots:
snapshots
Description forthcoming.
registerLockedObjectWithGlobalID:
globalID
Description forthcoming.
snapshotForGlobalID:
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.
snapshotForGlobalID:
gid
after:
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.
snapshotForSourceGlobalID:
gid
relationshipName:
name
Description forthcoming.
Software documentation for the EODatabaseContext(EOMultiThreaded) category
EOAccess/EODatabaseContext.h
NSLocking
Description forthcoming.
lock
Description forthcoming.
unlock
Description forthcoming.
Software documentation for the EODatabaseContext(EOObjectStoreSupport) category
EOAccess/EODatabaseContext.h
Description forthcoming.
_registerSnapshot:
snapshot
forSourceGlobalID:
globalID
relationshipName:
name
editingContext:
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.
arrayFaultWithSourceGlobalID:
globalID
relationshipName:
relationshipName
editingContext:
context
Get an array fault for globalID for relationshipName
clearOriginalSnapshotForObject:
object
sourceGlobalID:
globalID
relationshipName:
name
editingContext:
context
Description forthcoming.
entityForGlobalID:
globalID
return entity corresponding to 'globalID'
faultForGlobalID:
globalID
editingContext:
context
Get a fault for 'globalID'
faultForRawRow:
row
entityNamed:
entityName
editingContext:
context
Return a fault for row 'row'
forgetSnapshotForSourceGlobalID:
globalID
relationshipName:
name
Description forthcoming.
initializeObject:
object
withGlobalID:
globalID
editingContext:
context
Description forthcoming.
invalidateAllObjects
Description forthcoming.
invalidateObjectsWithGlobalIDs:
globalIDs
Description forthcoming.
isObjectLockedWithGlobalID:
gid
editingContext:
context
Description forthcoming.
lockObjectWithGlobalID:
globalID
editingContext:
context
Description forthcoming.
objectsForSourceGlobalID:
globalID
relationshipName:
name
editingContext:
context
Description forthcoming.
objectsWithFetchSpecification:
fetchSpecification
editingContext:
context
Description forthcoming.
refaultObject:
object
withGlobalID:
globalID
editingContext:
context
Description forthcoming.
refaultObject:
object
withSourceGlobalID:
globalID
relationshipName:
relName
editingContext:
context
Description forthcoming.
saveChangesInEditingContext:
context
Description forthcoming.
Software documentation for the NSObject(EODatabaseContextDelegation) informal protocol
EOAccess/EODatabaseContext.h
Description forthcoming.
databaseContext:
context
didFetchObjects:
objects
fetchSpecification:
fetchSpecification
editingContext:
editingContext
Description forthcoming.
databaseContext:
context
didSelectObjectsWithFetchSpecification:
fetchSpecification
databaseChannel:
channel
Description forthcoming.
databaseContext:
context
failedToFetchObject:
object
globalID:
gid
Description forthcoming.
databaseContext:
context
newPrimaryKeyForObject:
object
entity:
entity
Description forthcoming.
databaseContext:
databaseContext
shouldFetchArrayFault:
fault
Description forthcoming.
databaseContext:
databaseContext
shouldFetchObjectFault:
fault
Description forthcoming.
databaseContext:
databaseContext
shouldFetchObjectsWithFetchSpecification:
fetchSpecification
databaseChannel:
databaseChannel
Description forthcoming.
databaseContext:
context
shouldFetchObjectsWithFetchSpecification:
fetchSpecification
editingContext:
editingContext
Description forthcoming.
databaseContext:
databaseContext
shouldHandleDatabaseException:
exception
If the delegate returns `NO`, it is responsible for doing the right thing This is new in WO 4.5
databaseContext:
context
shouldInvalidateObjectWithGlobalID:
globalId
snapshot:
snapshot
Description forthcoming.
databaseContext:
databaseContext
shouldLockObjectWithGlobalID:
globalID
snapshot:
snapshot
Description forthcoming.
databaseContext:
databaseContext
shouldRaiseExceptionForLockFailure:
exception
Description forthcoming.
databaseContext:
context
shouldSelectObjectsWithFetchSpecification:
fetchSpecification
databaseChannel:
channel
Description forthcoming.
databaseContext:
context
shouldUpdateCurrentSnapshot:
currentSnapshot
newSnapshot:
newSnapshot
globalID:
globalID
databaseChannel:
channel
Description forthcoming.
databaseContext:
context
shouldUsePessimisticLockWithFetchSpecification:
fetchSpecification
databaseChannel:
channel
Description forthcoming.
databaseContext:
context
willOrderAdaptorOperationsFromDatabaseOperations:
databaseOps
Description forthcoming.
databaseContext:
context
willPerformAdaptorOperations:
adaptorOps
adaptorChannel:
adaptorChannel
Description forthcoming.
databaseContext:
context
willRunLoginPanelToOpenDatabaseChannel:
channel
Description forthcoming.
EODatabaseContext types

Description forthcoming.
EODatabaseContext variables

Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.