Klasse DelegatingCDORevisionManager
java.lang.Object
org.eclipse.net4j.util.event.Notifier
org.eclipse.net4j.util.lifecycle.Lifecycle
org.eclipse.emf.cdo.spi.common.revision.DelegatingCDORevisionManager
- Alle implementierten Schnittstellen:
CDORevisionCacheAdder,CDORevisionInterner,CDORevisionManager,InternalCDORevisionManager,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
public abstract class DelegatingCDORevisionManager
extends org.eclipse.net4j.util.lifecycle.Lifecycle
implements InternalCDORevisionManager
If the meaning of this type isn't clear, there really should be more of a description here...
- Seit:
- 3.0
- Autor:
- Eike Stepper
-
Verschachtelte Klassen - Übersicht
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.revision.InternalCDORevisionManager
InternalCDORevisionManager.RevisionLoader, InternalCDORevisionManager.RevisionLoader2, InternalCDORevisionManager.RevisionLoader3, InternalCDORevisionManager.RevisionLocker -
Feldübersicht
Von Klasse geerbte Felder org.eclipse.net4j.util.lifecycle.Lifecycle
USE_LABEL -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidaddRevision(CDORevision revision) Veraltet.booleancontainsRevision(CDOID id, CDOBranchPoint branchPoint) Returnstrueif therevision cachecontains arevisionwith the givenIDat the givenbranch point(branch + timestamp),falseotherwise.booleancontainsRevisionByVersion(CDOID id, CDOBranchVersion branchVersion) Returnstrueif therevision cachecontains arevisionwith the givenIDat the givenbranch version(branch + version),falseotherwise.protected voidprotected voidgetBaseRevision(CDORevision revision, int referenceChunk, boolean loadOnDemand) getCache()protected abstract InternalCDORevisionManagergetObjectLifetime(CDOID id, CDOBranchPoint branchPoint) getObjectType(CDOID id) Returns thetypeof an object if a revision for that object is in the revision cache,nullotherwise.getObjectType(CDOID id, CDOBranchManager branchManagerForLoadOnDemand) Returns thetypeof an object.getRevision(CDOID id, CDOBranchPoint branchPoint, int referenceChunk, int prefetchDepth, boolean loadOnDemand) Returns therevisionwith the givenIDat the givenbranch point(branch + timestamp), optionally demand loading it if it is not already in thecache.getRevision(CDOID id, CDOBranchPoint branchPoint, int referenceChunk, int prefetchDepth, boolean loadOnDemand, SyntheticCDORevision[] synthetics) getRevisionByVersion(CDOID id, CDOBranchVersion branchVersion, int referenceChunk, boolean loadOnDemand) Returns therevisionwith the givenIDat the givenbranch version(branch + version), optionally demand loading it if it is not already in thecache.getRevisions(List<CDOID> ids, CDOBranchPoint branchPoint, int referenceChunk, int prefetchDepth, boolean loadOnDemand) Returns therevisionswith the givenIDsat the givenbranch point(branch + timestamp), optionally demand loading them if they are not already in thecache.getRevisions(List<CDOID> ids, CDOBranchPoint branchPoint, int referenceChunk, int prefetchDepth, boolean prefetchLockStates, boolean loadOnDemand, SyntheticCDORevision[] synthetics) getRevisions(List<CDOID> ids, CDOBranchPoint branchPoint, int referenceChunk, int prefetchDepth, boolean loadOnDemand, List<CDORevision> additionalRevisions) Returns therevisionswith the givenIDsat the givenbranch point(branch + timestamp), optionally demand loading them if they are not already in thecache.getRevisions(List<CDOID> ids, CDOBranchPoint branchPoint, int referenceChunk, int prefetchDepth, boolean loadOnDemand, SyntheticCDORevision[] synthetics) voidhandleRevisions(EClass eClass, CDOBranch branch, boolean exactBranch, long timeStamp, boolean exactTime, CDORevisionHandler handler) internRevision(CDORevision revision) Interns the given revision and returns either the given revision or a revision with the samekeythat was interned previously.protected booleanbooleanbooleanvoidprefetchRevisions(CDOID id, CDOBranchPoint branchPoint, int prefetchDepth, boolean prefetchLockStates, Consumer<CDORevision> consumer) voidreviseLatest(CDOID id, CDOBranch branch) Called on client via postCommit when there is no version of detached objects available.voidreviseVersion(CDOID id, CDOBranchVersion branchVersion, long timeStamp) voidsetCache(CDORevisionCache cache) voidsetFactory(CDORevisionFactory factory) voidsetRevisionLoader(InternalCDORevisionManager.RevisionLoader revisionLoader) voidsetRevisionLocker(InternalCDORevisionManager.RevisionLocker revisionLocker) voidsetSupportingAudits(boolean on) voidsetSupportingBranches(boolean on) Von Klasse geerbte Methoden org.eclipse.net4j.util.lifecycle.Lifecycle
activate, checkActive, checkArg, checkArg, checkInactive, checkNull, checkState, checkState, deactivate, deferredActivate, doAfterActivate, doBeforeActivate, doBeforeDeactivate, 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.lifecycle.ILifecycle
activate, deactivate, getLifecycleState, isActiveVon Schnittstelle geerbte Methoden org.eclipse.net4j.util.event.INotifier
addListener, getListeners, hasListeners, removeListener
-
Konstruktordetails
-
DelegatingCDORevisionManager
public DelegatingCDORevisionManager()
-
-
Methodendetails
-
getCache
- Angegeben von:
getCachein SchnittstelleInternalCDORevisionManager
-
setCache
- Angegeben von:
setCachein SchnittstelleInternalCDORevisionManager- Seit:
- 4.0
-
setFactory
- Angegeben von:
setFactoryin SchnittstelleInternalCDORevisionManager
-
getFactory
- Angegeben von:
getFactoryin SchnittstelleInternalCDORevisionManager
-
getRevisionLoader
- Angegeben von:
getRevisionLoaderin SchnittstelleInternalCDORevisionManager
-
setRevisionLoader
- Angegeben von:
setRevisionLoaderin SchnittstelleInternalCDORevisionManager
-
getRevisionLocker
- Angegeben von:
getRevisionLockerin SchnittstelleInternalCDORevisionManager
-
setRevisionLocker
- Angegeben von:
setRevisionLockerin SchnittstelleInternalCDORevisionManager
-
isSupportingAudits
public boolean isSupportingAudits()- Angegeben von:
isSupportingAuditsin SchnittstelleInternalCDORevisionManager- Seit:
- 4.0
-
setSupportingAudits
public void setSupportingAudits(boolean on) - Angegeben von:
setSupportingAuditsin SchnittstelleInternalCDORevisionManager- Seit:
- 4.0
-
isSupportingBranches
public boolean isSupportingBranches()- Angegeben von:
isSupportingBranchesin SchnittstelleInternalCDORevisionManager
-
setSupportingBranches
public void setSupportingBranches(boolean on) - Angegeben von:
setSupportingBranchesin SchnittstelleInternalCDORevisionManager
-
addRevision
Veraltet.Beschreibung aus Schnittstelle kopiert:CDORevisionCacheAdderAdds the given revision to this cache.- Angegeben von:
addRevisionin SchnittstelleCDORevisionCacheAdder- Angegeben von:
addRevisionin SchnittstelleInternalCDORevisionManager- Seit:
- 4.0
-
internRevision
Beschreibung aus Schnittstelle kopiert:CDORevisionInternerInterns the given revision and returns either the given revision or a revision with the samekeythat was interned previously.The returned revision is only different from the passed revision if this interner contains a previously cached, different revision instance with an equal
revision key.- Angegeben von:
internRevisionin SchnittstelleCDORevisionInterner
-
containsRevision
Beschreibung aus Schnittstelle kopiert:CDORevisionManagerReturnstrueif therevision cachecontains arevisionwith the givenIDat the givenbranch point(branch + timestamp),falseotherwise.- Angegeben von:
containsRevisionin SchnittstelleCDORevisionManager- Siehe auch:
-
containsRevisionByVersion
Beschreibung aus Schnittstelle kopiert:CDORevisionManagerReturnstrueif therevision cachecontains arevisionwith the givenIDat the givenbranch version(branch + version),falseotherwise.- Angegeben von:
containsRevisionByVersionin SchnittstelleCDORevisionManager- Siehe auch:
-
getObjectType
Beschreibung aus Schnittstelle kopiert:CDORevisionManagerReturns thetypeof an object if a revision for that object is in the revision cache,nullotherwise.Same as calling
getObjectType(id, null).- Angegeben von:
getObjectTypein SchnittstelleCDORevisionManager- Siehe auch:
-
getObjectType
Beschreibung aus Schnittstelle kopiert:CDORevisionManagerReturns thetypeof an object.If no revision for that object is found in the revision cache the following is tried:
- If
branchManagerForLoadOnDemandis notnullthe first revision of the object in the main branch is loaded from the server and its type is returned. - Otherwise (i.e., if
branchManagerForLoadOnDemandisnullor the object does not exist)nullis returned.
A
branch manageris required instead of just a boolean value to specify whether to demand-load or not because this revision manager must be able to access themain branchwhile demand-loading.- Angegeben von:
getObjectTypein SchnittstelleCDORevisionManager- Siehe auch:
- If
-
getObjectLifetime
- Angegeben von:
getObjectLifetimein SchnittstelleCDORevisionManager
-
getBaseRevision
public InternalCDORevision getBaseRevision(CDORevision revision, int referenceChunk, boolean loadOnDemand) - Angegeben von:
getBaseRevisionin SchnittstelleInternalCDORevisionManager
-
getRevisionByVersion
public InternalCDORevision getRevisionByVersion(CDOID id, CDOBranchVersion branchVersion, int referenceChunk, boolean loadOnDemand) Beschreibung aus Schnittstelle kopiert:CDORevisionManagerReturns therevisionwith the givenIDat the givenbranch version(branch + version), optionally demand loading it if it is not already in thecache.Prefetching of nested containment levels is not support by this method because the version of a particular revision can not serve as a reasonable baseline criterium for a consistent graph of multiple revisions.
- Angegeben von:
getRevisionByVersionin SchnittstelleCDORevisionManager- Angegeben von:
getRevisionByVersionin SchnittstelleInternalCDORevisionManager- Parameter:
referenceChunk- The number of targetIDsto load for each many-valued reference in the returned revision, orCDORevision.UNCHUNKEDfor all such list elements (IDs).loadOnDemand- If the requested revision is not contained in the revision cache it depends on this parameter's value whether the revision is loaded from the server ornullis returned.- Siehe auch:
-
getRevision
public InternalCDORevision getRevision(CDOID id, CDOBranchPoint branchPoint, int referenceChunk, int prefetchDepth, boolean loadOnDemand) Beschreibung aus Schnittstelle kopiert:CDORevisionManagerReturns therevisionwith the givenIDat the givenbranch point(branch + timestamp), optionally demand loading it if it is not already in thecache.- Angegeben von:
getRevisionin SchnittstelleCDORevisionManager- Angegeben von:
getRevisionin SchnittstelleInternalCDORevisionManager- Parameter:
referenceChunk- The number of targetIDsto load for each many-valued reference in the returned revision, orCDORevision.UNCHUNKEDfor all such list elements (IDs).prefetchDepth- The number of nested containment levels to load revisions for in one round trip. Use the symbolic constantsCDORevision.DEPTH_INFINITEto prefetch all contained revisions orCDORevision.DEPTH_NONEto not prefetch anything. Only the explicitly requested revision is returned by this method. If additional revisions are prefetched they are placed in the revision cache to speed up subsequent calls to this method.loadOnDemand- If the requested revision is not contained in the revision cache it depends on this parameter's value whether the revision is loaded from the server ornullis returned.- Siehe auch:
-
getRevision
public InternalCDORevision getRevision(CDOID id, CDOBranchPoint branchPoint, int referenceChunk, int prefetchDepth, boolean loadOnDemand, SyntheticCDORevision[] synthetics) - Angegeben von:
getRevisionin SchnittstelleInternalCDORevisionManager
-
getRevisions
public List<CDORevision> getRevisions(List<CDOID> ids, CDOBranchPoint branchPoint, int referenceChunk, int prefetchDepth, boolean loadOnDemand) Beschreibung aus Schnittstelle kopiert:CDORevisionManagerReturns therevisionswith the givenIDsat the givenbranch point(branch + timestamp), optionally demand loading them if they are not already in thecache.- Angegeben von:
getRevisionsin SchnittstelleCDORevisionManager- Parameter:
referenceChunk- The number of targetIDsto load for each many-valued reference in the returned revisions, orCDORevision.UNCHUNKEDfor all such list elements (IDs).prefetchDepth- The number of nested containment levels to load revisions for in one round trip. Use the symbolic constantsCDORevision.DEPTH_INFINITEto prefetch all contained revisions orCDORevision.DEPTH_NONEto not prefetch anything. Only the explicitly requested revisions are returned by this method. If additional revisions are prefetched they are placed in the revision cache to speed up subsequent calls to this method.loadOnDemand- If one or more of the requested revisions is/are not contained in the revision cache it depends on this parameter's value whether the revision(s) is/are loaded from the server ornullis placed in the list that is returned.- Siehe auch:
-
getRevisions
public List<CDORevision> getRevisions(List<CDOID> ids, CDOBranchPoint branchPoint, int referenceChunk, int prefetchDepth, boolean loadOnDemand, SyntheticCDORevision[] synthetics) - Angegeben von:
getRevisionsin SchnittstelleInternalCDORevisionManager
-
getRevisions
public List<CDORevision> getRevisions(List<CDOID> ids, CDOBranchPoint branchPoint, int referenceChunk, int prefetchDepth, boolean prefetchLockStates, boolean loadOnDemand, SyntheticCDORevision[] synthetics) - Angegeben von:
getRevisionsin SchnittstelleInternalCDORevisionManager
-
getRevisions
public List<CDORevision> getRevisions(List<CDOID> ids, CDOBranchPoint branchPoint, int referenceChunk, int prefetchDepth, boolean loadOnDemand, List<CDORevision> additionalRevisions) Beschreibung aus Schnittstelle kopiert:CDORevisionManagerReturns therevisionswith the givenIDsat the givenbranch point(branch + timestamp), optionally demand loading them if they are not already in thecache.- Angegeben von:
getRevisionsin SchnittstelleCDORevisionManager- Parameter:
referenceChunk- The number of targetIDsto load for each many-valued reference in the returned revisions, orCDORevision.UNCHUNKEDfor all such list elements (IDs).prefetchDepth- The number of nested containment levels to load revisions for in one round trip. Use the symbolic constantsCDORevision.DEPTH_INFINITEto prefetch all contained revisions orCDORevision.DEPTH_NONEto not prefetch anything. Only the explicitly requested revisions are returned by this method. If additional revisions are prefetched they are placed in the revision cache to speed up subsequent calls to this method.loadOnDemand- If one or more of the requested revisions is/are not contained in the revision cache it depends on this parameter's value whether the revision(s) is/are loaded from the server ornullis placed in the list that is returned.additionalRevisions- If non-null, a list to add additionally prefetched revisions to.- Seit:
- 4.15
- Siehe auch:
-
prefetchRevisions
public void prefetchRevisions(CDOID id, CDOBranchPoint branchPoint, int prefetchDepth, boolean prefetchLockStates, Consumer<CDORevision> consumer) - Angegeben von:
prefetchRevisionsin SchnittstelleInternalCDORevisionManager
-
handleRevisions
public void handleRevisions(EClass eClass, CDOBranch branch, boolean exactBranch, long timeStamp, boolean exactTime, CDORevisionHandler handler) - Angegeben von:
handleRevisionsin SchnittstelleCDORevisionManager
-
reviseLatest
Beschreibung aus Schnittstelle kopiert:InternalCDORevisionManagerCalled on client via postCommit when there is no version of detached objects available.- Angegeben von:
reviseLatestin SchnittstelleInternalCDORevisionManager
-
reviseVersion
- Angegeben von:
reviseVersionin SchnittstelleInternalCDORevisionManager
-
doActivate
- Setzt außer Kraft:
doActivatein Klasseorg.eclipse.net4j.util.lifecycle.Lifecycle- Löst aus:
Exception
-
doDeactivate
- Setzt außer Kraft:
doDeactivatein Klasseorg.eclipse.net4j.util.lifecycle.Lifecycle- Löst aus:
Exception
-
isDelegatingLifecycle
protected boolean isDelegatingLifecycle() -
getDelegate
-