# Uses of Interface
org.eclipse.emf.cdo.server.db.IDBStoreAccessor

Packages that use IDBStoreAccessor
Package
Description
org.eclipse.emf.cdo.server.db
Server concepts for dealing with DB stores and accessors.
org.eclipse.emf.cdo.server.db.evolution.phased
A phased approach to database evolution.
org.eclipse.emf.cdo.server.db.mapping
Server concepts for dealing with mapping strategies and mappings for classes, lists and types.

## Uses of IDBStoreAccessor in org.eclipse.emf.cdo.server.db

Methods in org.eclipse.emf.cdo.server.db that return IDBStoreAccessor
Modifier and Type
Method
Description
`IDBStoreAccessor`
IDBStoreChunkReader.`getAccessor()`
`IDBStoreAccessor`
IDBStore.`getReader(ISession session)`
`IDBStoreAccessor`
IDBStore.`getWriter(ITransaction transaction)`
Methods in org.eclipse.emf.cdo.server.db with parameters of type IDBStoreAccessor
Modifier and Type
Method
Description
`CDOID`
IIDHandler.`mapURI(IDBStoreAccessor accessor, String uri, long commitTime)`
`String`
IIDHandler.`unmapURI(IDBStoreAccessor accessor, CDOID id)`

## Uses of IDBStoreAccessor in org.eclipse.emf.cdo.server.db.evolution.phased

Methods in org.eclipse.emf.cdo.server.db.evolution.phased with parameters of type IDBStoreAccessor
Modifier and Type
Method
Description
`protected boolean`
DefaultSchemaMigrator.`commitChanges(Context context, IDBStoreAccessor accessor)`
Commits the model evolution changes to the database.
`protected void`
DefaultSchemaMigrator.`migrateSchema(Context context, IDBStoreAccessor accessor, ISchemaMigration schemaMigration)`
Delegates the schema migration to the mapping strategy.
`void`
ISchemaMigration.`migrateSchema(Context context, IDBStoreAccessor accessor)`
Migrates the database schema to match the new models in the given context.
`protected void`
DefaultSchemaMigrator.`updateSystemTables(Context context, IDBStoreAccessor accessor)`
Updates the system tables with the changed models.

## Uses of IDBStoreAccessor in org.eclipse.emf.cdo.server.db.mapping

Methods in org.eclipse.emf.cdo.server.db.mapping with parameters of type IDBStoreAccessor
Modifier and Type
Method
Description
`void`
IListMapping2.`addRangedChunkWhere(IDBStoreAccessor accessor, CDOID cdoid, StringBuilder builder, int fromIndex, int toIndex)`
`void`
IListMapping2.`addSimpleChunkWhere(IDBStoreAccessor accessor, CDOID cdoid, StringBuilder builder, int index)`
`PreparedStatement`
IClassMapping.`createObjectIDStatement(IDBStoreAccessor accessor)`
Create a prepared statement which returns all IDs of instances of the corresponding class.
`PreparedStatement`
IClassMapping.`createResourceQueryStatement(IDBStoreAccessor accessor, CDOID folderId, String name, boolean exactMatch, CDOBranchPoint branchPoint)`
Create a prepared statement which returns all IDs of instances of the corresponding class.
`void`
IBranchDeletionSupport.`deleteBranches(IDBStoreAccessor accessor, org.eclipse.net4j.db.Batch batch, String idList)`
`void`
IClassMapping.`detachObject(IDBStoreAccessor accessor, CDOID id, int version, CDOBranch branch, long timeStamp, org.eclipse.net4j.util.om.monitor.OMMonitor monitor)`
Detaches (deletes) a CDO object leaving a "ghost" revision behind.
`void`
IClassMapping.`handleRevisions(IDBStoreAccessor accessor, CDOBranch branch, long timeStamp, boolean exactTime, CDORevisionHandler handler)`
Passes all revisions of the store to the `handler` if all of the following conditions are met: The `branch` parameter is `null` or equal to `revision.getBranch()`.
`void`
IMappingStrategy.`handleRevisions(IDBStoreAccessor accessor, EClass eClass, CDOBranch branch, long timeStamp, boolean exactTime, CDORevisionHandler handler)`
Passes all revisions of the store to the `handler` if all of the following conditions are met: The `eClass` parameter is `null` or equal to `revision.getEClass()`.
`void`
IListMapping.`objectDetached(IDBStoreAccessor accessor, CDOID id, long revised)`
Hook with which a list mapping is notified that a containing object has been revised.
`void`
IMappingStrategy2.`postProcessRevisions(IDBStoreAccessor accessor, IStoreAccessor.CommitContext context, org.eclipse.net4j.util.om.monitor.OMMonitor monitor)`
`void`
IMappingStrategySchemaPreflight.`prepareSchema(IDBStoreAccessor accessor, CDORevision[] newObjects, CDORevision[] dirtyObjects, CDORevisionDelta[] dirtyObjectDeltas, org.eclipse.net4j.util.om.monitor.OMMonitor monitor)`
Prepares every physical schema object that may be accessed while writing the supplied commit.
`void`
IListMappingDeltaSupport.`processDelta(IDBStoreAccessor accessor, CDOID id, int branchId, int oldVersion, int newVersion, long created, CDOListFeatureDelta delta)`
Process a set of CDOFeatureDeltas for a many-valued feature.
`void`
IListMappingBatchingSupport.`processDeltas(IDBStoreAccessor accessor, ListDeltaWork[] work, org.eclipse.net4j.util.om.monitor.OMMonitor monitor)`
Processes list deltas in their supplied order.
`void`
IMappingStrategy.`queryResources(IDBStoreAccessor accessor, IStoreAccessor.QueryResourcesContext context)`
Executes a resource query.
`ResultSet`
IListMappingUnitSupport.`queryUnitEntries(IDBStoreAccessor accessor, IIDHandler idHandler, long timeStamp, CDOID rootID)`
`boolean`
IClassMapping.`queryXRefs(IDBStoreAccessor accessor, IStoreAccessor.QueryXRefsContext context, String idString)`
Retrieve cross-references from DB
`boolean`
IListMapping.`queryXRefs(IDBStoreAccessor accessor, String mainTableName, String mainTableWhere, IStoreAccessor.QueryXRefsContext context, String idString)`
Retrieve cross-references from DB.
`void`
IMappingStrategy.`queryXRefs(IDBStoreAccessor accessor, IStoreAccessor.QueryXRefsContext context)`
Executes a cross reference query.
`void`
IMappingStrategy.`rawExport(IDBStoreAccessor accessor, CDODataOutput out, int lastReplicatedBranchID, int lastBranchID, long lastReplicatedCommitTime, long lastCommitTime)`
`void`
IMappingStrategy.`rawImport(IDBStoreAccessor accessor, CDODataInput in, long fromCommitTime, long toCommitTime, org.eclipse.net4j.util.om.monitor.OMMonitor monitor)`
`Set<CDOID>`
IClassMapping.`readChangeSet(IDBStoreAccessor accessor, CDOChangeSetSegment[] segments)`
Returns a set of CDOIDs that have at least one revision in any of the passed branches and time ranges.
`Set<CDOID>`
IMappingStrategy.`readChangeSet(IDBStoreAccessor accessor, org.eclipse.net4j.util.om.monitor.OMMonitor monitor, CDOChangeSetSegment[] segments)`
Returns a set of CDOIDs that have at least one revision in any of the passed branches and time ranges.
`org.eclipse.net4j.util.collection.CloseableIterator<CDOID>`
IMappingStrategy.`readObjectIDs(IDBStoreAccessor accessor)`
Get an iterator over all instances of objects in the store.
`CDOClassifierRef`
IMappingStrategy.`readObjectType(IDBStoreAccessor accessor, CDOID id)`
Read the type (i.e.
`default EClass`
IMappingStrategy.`readObjectType2(IDBStoreAccessor accessor, CDOID id)`
Read the type (i.e.
`boolean`
IClassMapping.`readRevision(IDBStoreAccessor accessor, InternalCDORevision revision, int listChunk)`
Read a revision.
`boolean`
IClassMappingAuditSupport.`readRevisionByVersion(IDBStoreAccessor storeAccessor, InternalCDORevision revision, int listChunk)`
Read a specific version of a revision.
`void`
IClassMappingUnitSupport.`readUnitRevisions(IDBStoreAccessor accessor, CDOBranchPoint branchPoint, CDOID rootID, CDORevisionHandler revisionHandler)`
`void`
IListMapping.`readValues(IDBStoreAccessor accessor, InternalCDORevision revision, int listChunk)`
Read the list size and the complete list or the first part of it.
`void`
IClassMapping.`writeRevision(IDBStoreAccessor accessor, InternalCDORevision revision, boolean firstRevision, boolean revise, org.eclipse.net4j.util.om.monitor.OMMonitor monitor)`
Write the revision data to the database.
`void`
IClassMappingDeltaSupport.`writeRevisionDelta(IDBStoreAccessor accessor, InternalCDORevisionDelta delta, long created, org.eclipse.net4j.util.om.monitor.OMMonitor monitor)`
Write a revision delta.
`void`
IClassMappingBatchingSupport.`writeRevisionDeltas(IDBStoreAccessor accessor, InternalCDORevisionDelta[] deltas, long created, org.eclipse.net4j.util.om.monitor.OMMonitor monitor)`
Writes revision deltas that all belong to this class mapping.
`void`
IMappingStrategyBatchingSupport.`writeRevisionDeltas(IDBStoreAccessor accessor, InternalCDORevisionDelta[] deltas, long created, org.eclipse.net4j.util.om.monitor.OMMonitor monitor)`
Writes a group of revision deltas belonging to one DBStore write phase.
`void`
IClassMappingBatchingSupport.`writeRevisions(IDBStoreAccessor accessor, InternalCDORevision[] revisions, boolean firstRevision, boolean revise, org.eclipse.net4j.util.om.monitor.OMMonitor monitor)`
Writes revisions that all belong to this class mapping.
`void`
IMappingStrategyBatchingSupport.`writeRevisions(IDBStoreAccessor accessor, InternalCDORevision[] revisions, boolean firstRevision, boolean revise, org.eclipse.net4j.util.om.monitor.OMMonitor monitor)`
Writes a group of revisions belonging to one DBStore write phase.
`void`
IListMapping.`writeValues(IDBStoreAccessor accessor, InternalCDORevision revision)`
Write a complete list of values to the database.
`void`
IListMapping4.`writeValues(IDBStoreAccessor accessor, CDORevision revision, boolean firstRevision, boolean raw)`
Write a complete list of values to the database.
`void`
IListMappingBatchingSupport.`writeValues(IDBStoreAccessor accessor, InternalCDORevision[] revisions, boolean firstRevision, boolean raw, org.eclipse.net4j.util.om.monitor.OMMonitor monitor)`
Writes complete list values for the supplied revisions.