org.eclipse.emf.cdo.spi.server
Class StoreAccessor

java.lang.Object
  extended by org.eclipse.net4j.util.event.Notifier
      extended by org.eclipse.net4j.util.lifecycle.Lifecycle
          extended by org.eclipse.emf.cdo.spi.server.StoreAccessorBase
              extended by org.eclipse.emf.cdo.spi.server.StoreAccessor
All Implemented Interfaces:
IQueryHandlerProvider, IStoreAccessor, InternalCDOBranchManager.BranchLoader, InternalCDOCommitInfoManager.CommitInfoLoader, INotifier, ILifecycle, ILifecycle.DeferrableActivation
Direct Known Subclasses:
LongIDStoreAccessor

public abstract class StoreAccessor
extends StoreAccessorBase

Since:
2.0

Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.emf.cdo.spi.server.StoreAccessorBase
StoreAccessorBase.CommitDataRevisionHandler
 
Nested classes/interfaces inherited from interface org.eclipse.emf.cdo.server.IStoreAccessor
IStoreAccessor.CommitContext, IStoreAccessor.DurableLocking, IStoreAccessor.DurableLocking2, IStoreAccessor.QueryResourcesContext, IStoreAccessor.QueryXRefsContext, IStoreAccessor.Raw
 
Nested classes/interfaces inherited from interface org.eclipse.emf.cdo.spi.common.branch.InternalCDOBranchManager.BranchLoader
InternalCDOBranchManager.BranchLoader.BranchInfo, InternalCDOBranchManager.BranchLoader.SubBranchInfo
 
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.lifecycle.ILifecycle
ILifecycle.DeferrableActivation
 
Field Summary
 
Fields inherited from class org.eclipse.net4j.util.lifecycle.Lifecycle
USE_LABEL
 
Fields inherited from interface org.eclipse.emf.cdo.spi.common.branch.InternalCDOBranchManager.BranchLoader
NEW_BRANCH, NEW_LOCAL_BRANCH
 
Constructor Summary
protected StoreAccessor(Store store, ISession session)
           
protected StoreAccessor(Store store, ITransaction transaction)
           
 
Method Summary
protected  void applyIDMappings(InternalCommitContext context, OMMonitor monitor)
           
protected abstract  void detachObjects(CDOID[] detachedObjects, CDOBranch branch, long timeStamp, OMMonitor monitor)
           
protected  void doWrite(InternalCommitContext context, OMMonitor monitor)
           
protected abstract  void writeBlob(byte[] id, long size, InputStream inputStream)
           
protected abstract  void writeClob(byte[] id, long size, Reader reader)
           
protected abstract  void writeCommitInfo(CDOBranch branch, long timeStamp, long previousTimeStamp, String userID, String comment, OMMonitor monitor)
           
protected abstract  void writeRevisionDeltas(InternalCDORevisionDelta[] revisionDeltas, CDOBranch branch, long created, OMMonitor monitor)
           
protected abstract  void writeRevisions(InternalCDORevision[] revisions, CDOBranch branch, OMMonitor monitor)
           
 
Methods inherited from class org.eclipse.emf.cdo.spi.server.StoreAccessorBase
addIDMappings, commit, doCommit, doPassivate, doRollback, doUnpassivate, getNextCDOID, getSession, getStore, getTransaction, isReader, loadCommitData, readResourceID, release, rollback, write
 
Methods inherited from class org.eclipse.net4j.util.lifecycle.Lifecycle
activate, checkActive, checkArg, checkArg, checkInactive, checkNull, checkState, checkState, deactivate, deferredActivate, doActivate, doAfterActivate, doBeforeActivate, doBeforeDeactivate, doDeactivate, dump, getLifecycleState, isActive, isDeferredActivation, toString
 
Methods inherited from class org.eclipse.net4j.util.event.Notifier
addListener, fireEvent, fireEvent, fireEvent, firstListenerAdded, getListeners, getNotificationService, hasListeners, lastListenerRemoved, removeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.emf.cdo.server.IStoreAccessor
createChunkReader, handleLobs, handleRevisions, loadLob, loadPackageUnit, queryLobs, queryResources, queryXRefs, readChangeSet, readPackageUnits, readRevision, readRevisionByVersion, writePackageUnits
 
Methods inherited from interface org.eclipse.emf.cdo.server.IQueryHandlerProvider
getQueryHandler
 
Methods inherited from interface org.eclipse.emf.cdo.spi.common.branch.InternalCDOBranchManager.BranchLoader
createBranch, loadBranch, loadBranches, loadSubBranches
 
Methods inherited from interface org.eclipse.emf.cdo.spi.common.commit.InternalCDOCommitInfoManager.CommitInfoLoader
loadCommitInfos
 
Methods inherited from interface org.eclipse.net4j.util.event.INotifier
addListener, getListeners, hasListeners, removeListener
 

Constructor Detail

StoreAccessor

protected StoreAccessor(Store store,
                        ISession session)

StoreAccessor

protected StoreAccessor(Store store,
                        ITransaction transaction)
Method Detail

doWrite

protected void doWrite(InternalCommitContext context,
                       OMMonitor monitor)
Specified by:
doWrite in class StoreAccessorBase
Since:
4.0

applyIDMappings

protected void applyIDMappings(InternalCommitContext context,
                               OMMonitor monitor)
Since:
3.0

writeCommitInfo

protected abstract void writeCommitInfo(CDOBranch branch,
                                        long timeStamp,
                                        long previousTimeStamp,
                                        String userID,
                                        String comment,
                                        OMMonitor monitor)
Since:
4.0

writeRevisions

protected abstract void writeRevisions(InternalCDORevision[] revisions,
                                       CDOBranch branch,
                                       OMMonitor monitor)
Since:
3.0

writeRevisionDeltas

protected abstract void writeRevisionDeltas(InternalCDORevisionDelta[] revisionDeltas,
                                            CDOBranch branch,
                                            long created,
                                            OMMonitor monitor)
Since:
3.0

detachObjects

protected abstract void detachObjects(CDOID[] detachedObjects,
                                      CDOBranch branch,
                                      long timeStamp,
                                      OMMonitor monitor)
Since:
3.0

writeBlob

protected abstract void writeBlob(byte[] id,
                                  long size,
                                  InputStream inputStream)
                           throws IOException
Throws:
IOException
Since:
4.0

writeClob

protected abstract void writeClob(byte[] id,
                                  long size,
                                  Reader reader)
                           throws IOException
Throws:
IOException
Since:
4.0


Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.