Package org.eclipse.emf.cdo.spi.server
Klasse StoreAccessorBase
java.lang.Object
org.eclipse.net4j.util.event.Notifier
org.eclipse.net4j.util.lifecycle.Lifecycle
org.eclipse.emf.cdo.spi.server.StoreAccessorBase
- Alle implementierten Schnittstellen:
IQueryHandlerProvider,IStoreAccessor,IStoreAccessor.NewIDSupport,InternalCDOBranchManager.BranchLoader,InternalCDOCommitInfoManager.CommitInfoLoader,org.eclipse.net4j.util.event.INotifier,org.eclipse.net4j.util.event.INotifier.INotifier2,org.eclipse.net4j.util.lifecycle.IDeactivateable,org.eclipse.net4j.util.lifecycle.ILifecycle,org.eclipse.net4j.util.lifecycle.ILifecycle.DeferrableActivation
- Bekannte direkte Unterklassen:
StoreAccessor
public abstract class StoreAccessorBase
extends org.eclipse.net4j.util.lifecycle.Lifecycle
implements IStoreAccessor.NewIDSupport
If the meaning of this type isn't clear, there really should be more of a description here...
- Seit:
- 4.0
- Autor:
- Eike Stepper
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic classIf the meaning of this type isn't clear, there really should be more of a description here...Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen org.eclipse.net4j.util.lifecycle.ILifecycle
org.eclipse.net4j.util.lifecycle.ILifecycle.DeferrableActivationVon Schnittstelle geerbte verschachtelte Klassen/Schnittstellen org.eclipse.net4j.util.event.INotifier
org.eclipse.net4j.util.event.INotifier.INotifier2Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen org.eclipse.emf.cdo.spi.common.branch.InternalCDOBranchManager.BranchLoader
InternalCDOBranchManager.BranchLoader.BranchInfo, InternalCDOBranchManager.BranchLoader.SubBranchInfoVon Schnittstelle geerbte verschachtelte Klassen/Schnittstellen org.eclipse.emf.cdo.server.IStoreAccessor
IStoreAccessor.CommitContext, IStoreAccessor.DurableLocking, IStoreAccessor.DurableLocking2, IStoreAccessor.NewIDSupport, IStoreAccessor.QueryResourcesContext, IStoreAccessor.QueryXRefsContext, IStoreAccessor.Raw, IStoreAccessor.Raw2, IStoreAccessor.UnitSupport -
Feldübersicht
Von Klasse geerbte Felder org.eclipse.net4j.util.lifecycle.Lifecycle
USE_LABELVon Schnittstelle geerbte Felder org.eclipse.emf.cdo.spi.common.branch.InternalCDOBranchManager.BranchLoader
NEW_BRANCH, NEW_LOCAL_BRANCH -
Konstruktorübersicht
KonstruktorenModifiziererKonstruktorBeschreibungprotectedStoreAccessorBase(Store store, ISession session) protectedStoreAccessorBase(Store store, ITransaction transaction) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidaddIDMappings(InternalCommitContext commitContext, org.eclipse.net4j.util.om.monitor.OMMonitor monitor) Add ID mappings for all new objects of a transaction to the commit context.final voidcommit(org.eclipse.net4j.util.om.monitor.OMMonitor monitor) Flushes to the back-end and makes available the data for others.protected abstract voiddoCommit(org.eclipse.net4j.util.om.monitor.OMMonitor monitor) protected voidprotected abstract voiddoRollback(IStoreAccessor.CommitContext commitContext) protected voidprotected abstract voiddoWrite(InternalCommitContext context, org.eclipse.net4j.util.om.monitor.OMMonitor monitor) getNewID(CDORevision revision) protected abstract CDOIDgetNextCDOID(CDORevision revision) Returns the session this accessor is associated with.getStore()Returns the store this accessor is associated with.Returns the transaction this accessor is associated with ifIStoreAccessor.isReader()returnsfalse,nullotherwise.booleanisReader()Returnstrueif this accessor has been configured for read-only access to the back-end,falseotherwise.loadCommitData(long timeStamp) readResourceID(CDOID folderID, String name, CDOBranchPoint branchPoint) Returns theCDOIDof the resource node with the given folderID and name if a resource with this folderID and name exists in the store,nullotherwise.voidrelease()final voidrollback()Note:IStoreAccessor.write(InternalCommitContext, OMMonitor)andIStoreAccessor.rollback()could be called from different threads.final voidwrite(InternalCommitContext context, org.eclipse.net4j.util.om.monitor.OMMonitor monitor) Called before committing.Von Klasse geerbte Methoden 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, toStringVon Klasse geerbte Methoden org.eclipse.net4j.util.event.Notifier
addListener, addUniqueListener, fireEvent, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListener, hasListeners, lastListenerRemoved, listenerAdded, listenerRemoved, removeListenerVon Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitVon Schnittstelle geerbte Methoden org.eclipse.net4j.util.event.INotifier
addListener, getListeners, hasListeners, removeListenerVon Schnittstelle geerbte Methoden org.eclipse.emf.cdo.spi.common.branch.InternalCDOBranchManager.BranchLoader
createBranch, loadBranch, loadBranches, loadSubBranchesVon Schnittstelle geerbte Methoden org.eclipse.emf.cdo.spi.common.commit.InternalCDOCommitInfoManager.CommitInfoLoader
loadCommitInfosVon Schnittstelle geerbte Methoden org.eclipse.emf.cdo.server.IQueryHandlerProvider
getQueryHandlerVon Schnittstelle geerbte Methoden org.eclipse.emf.cdo.server.IStoreAccessor
createChunkReader, handleLobs, handleRevisions, loadLob, loadPackageUnit, queryLobs, queryResources, queryXRefs, readChangeSet, readPackageUnits, readRevision, readRevisionByVersion, writePackageUnits
-
Konstruktordetails
-
StoreAccessorBase
-
StoreAccessorBase
-
-
Methodendetails
-
getStore
Beschreibung aus Schnittstelle kopiert:IStoreAccessorReturns the store this accessor is associated with.- Angegeben von:
getStorein SchnittstelleIStoreAccessor
-
isReader
public boolean isReader()Beschreibung aus Schnittstelle kopiert:IStoreAccessorReturnstrueif this accessor has been configured for read-only access to the back-end,falseotherwise.- Angegeben von:
isReaderin SchnittstelleIStoreAccessor
-
getSession
Beschreibung aus Schnittstelle kopiert:IStoreAccessorReturns the session this accessor is associated with.- Angegeben von:
getSessionin SchnittstelleIStoreAccessor- Seit:
- 3.0
-
getTransaction
Beschreibung aus Schnittstelle kopiert:IStoreAccessorReturns the transaction this accessor is associated with ifIStoreAccessor.isReader()returnsfalse,nullotherwise.- Angegeben von:
getTransactionin SchnittstelleIStoreAccessor
-
release
public void release()- Angegeben von:
releasein SchnittstelleIStoreAccessor
-
write
public final void write(InternalCommitContext context, org.eclipse.net4j.util.om.monitor.OMMonitor monitor) Beschreibung aus Schnittstelle kopiert:IStoreAccessorCalled before committing. An instance of this accessor represents an instance of a back-end transaction. Could be called multiple times before commit it called.IStoreAccessor.commit(OMMonitor)orIStoreAccessor.rollback()will be called after any numbers ofIStoreAccessor.write(InternalCommitContext, OMMonitor).Note:
IStoreAccessor.write(InternalCommitContext, OMMonitor)andIStoreAccessor.commit(OMMonitor)could be called from different threads.- Angegeben von:
writein SchnittstelleIStoreAccessor- Seit:
- 3.0
-
doWrite
protected abstract void doWrite(InternalCommitContext context, org.eclipse.net4j.util.om.monitor.OMMonitor monitor) -
commit
public final void commit(org.eclipse.net4j.util.om.monitor.OMMonitor monitor) Beschreibung aus Schnittstelle kopiert:IStoreAccessorFlushes to the back-end and makes available the data for others.Note:
IStoreAccessor.write(InternalCommitContext, OMMonitor)andIStoreAccessor.commit(OMMonitor)could be called from different threads.Note: Implementors should detect if dirty write occurred. In this case it should throw an exception.
if (revision.getVersion() != revisionDelta.getOriginVersion()) { throw new ConcurrentModificationException("Trying to update object " + revisionDelta.getID() + " that was already modified"); }- Angegeben von:
commitin SchnittstelleIStoreAccessor- Seit:
- 3.0
-
doCommit
protected abstract void doCommit(org.eclipse.net4j.util.om.monitor.OMMonitor monitor) - Seit:
- 3.0
-
rollback
public final void rollback()Beschreibung aus Schnittstelle kopiert:IStoreAccessorNote:IStoreAccessor.write(InternalCommitContext, OMMonitor)andIStoreAccessor.rollback()could be called from different threads.- Angegeben von:
rollbackin SchnittstelleIStoreAccessor
-
doRollback
-
readResourceID
Beschreibung aus Schnittstelle kopiert:IStoreAccessorReturns theCDOIDof the resource node with the given folderID and name if a resource with this folderID and name exists in the store,nullotherwise.- Angegeben von:
readResourceIDin SchnittstelleIStoreAccessor- Seit:
- 3.0
-
loadCommitData
- Angegeben von:
loadCommitDatain SchnittstelleInternalCDOCommitInfoManager.CommitInfoLoader- Seit:
- 3.0
-
addIDMappings
public void addIDMappings(InternalCommitContext commitContext, org.eclipse.net4j.util.om.monitor.OMMonitor monitor) Add ID mappings for all new objects of a transaction to the commit context. The implementor must, for each new object of the commit context, determine a permanent CDOID and make it known to the context by callingInternalCommitContext.addIDMapping(CDOID, CDOID).- Seit:
- 3.0
-
getNewID
- Angegeben von:
getNewIDin SchnittstelleIStoreAccessor.NewIDSupport
-
getNextCDOID
-
doPassivate
- Löst aus:
Exception
-
doUnpassivate
- Löst aus:
Exception
-