public interface InternalCDORevisionManager extends CDORevisionManager, CDORevisionCacheAdder, ILifecycle
Modifier and Type | Interface and Description |
---|---|
static interface |
InternalCDORevisionManager.RevisionLoader
If the meaning of this type isn't clear, there really should be more of a description here...
|
static interface |
InternalCDORevisionManager.RevisionLoader2
If the meaning of this type isn't clear, there really should be more of a description here...
|
static interface |
InternalCDORevisionManager.RevisionLocker
If the meaning of this type isn't clear, there really should be more of a description here...
|
ILifecycle.DeferrableActivation
Modifier and Type | Method and Description |
---|---|
InternalCDORevisionCache |
getCache() |
CDORevisionFactory |
getFactory() |
InternalCDORevision |
getRevision(CDOID id,
CDOBranchPoint branchPoint,
int referenceChunk,
int prefetchDepth,
boolean loadOnDemand)
Returns the
revision with the given ID at the given branch
point (branch + timestamp), optionally demand loading it if it is not already in the cache . |
InternalCDORevision |
getRevision(CDOID id,
CDOBranchPoint branchPoint,
int referenceChunk,
int prefetchDepth,
boolean loadOnDemand,
SyntheticCDORevision[] synthetics) |
InternalCDORevision |
getRevisionByVersion(CDOID id,
CDOBranchVersion branchVersion,
int referenceChunk,
boolean loadOnDemand)
Returns the
revision with the given ID at the given branch version (branch + version), optionally demand loading it if it is not already in the
cache . |
InternalCDORevisionManager.RevisionLoader |
getRevisionLoader() |
InternalCDORevisionManager.RevisionLocker |
getRevisionLocker() |
List<CDORevision> |
getRevisions(List<CDOID> ids,
CDOBranchPoint branchPoint,
int referenceChunk,
int prefetchDepth,
boolean loadOnDemand,
SyntheticCDORevision[] synthetics) |
boolean |
isSupportingAudits() |
boolean |
isSupportingBranches() |
void |
reviseLatest(CDOID id,
CDOBranch branch)
Called on client via postCommit when there is no version of detached objects available.
|
void |
reviseVersion(CDOID id,
CDOBranchVersion branchVersion,
long timeStamp) |
void |
setCache(CDORevisionCache cache) |
void |
setFactory(CDORevisionFactory factory) |
void |
setRevisionLoader(InternalCDORevisionManager.RevisionLoader revisionLoader) |
void |
setRevisionLocker(InternalCDORevisionManager.RevisionLocker revisionLocker) |
void |
setSupportingAudits(boolean on) |
void |
setSupportingBranches(boolean on) |
containsRevision, containsRevisionByVersion, getObjectLifetime, getObjectType, getObjectType, getRevisions, handleRevisions
addRevision
activate, deactivate, getLifecycleState, isActive
addListener, getListeners, hasListeners, removeListener
boolean isSupportingAudits()
void setSupportingAudits(boolean on)
boolean isSupportingBranches()
void setSupportingBranches(boolean on)
InternalCDORevisionManager.RevisionLoader getRevisionLoader()
void setRevisionLoader(InternalCDORevisionManager.RevisionLoader revisionLoader)
InternalCDORevisionManager.RevisionLocker getRevisionLocker()
void setRevisionLocker(InternalCDORevisionManager.RevisionLocker revisionLocker)
CDORevisionFactory getFactory()
void setFactory(CDORevisionFactory factory)
InternalCDORevisionCache getCache()
void setCache(CDORevisionCache cache)
void reviseLatest(CDOID id, CDOBranch branch)
void reviseVersion(CDOID id, CDOBranchVersion branchVersion, long timeStamp)
InternalCDORevision getRevision(CDOID id, CDOBranchPoint branchPoint, int referenceChunk, int prefetchDepth, boolean loadOnDemand, SyntheticCDORevision[] synthetics)
List<CDORevision> getRevisions(List<CDOID> ids, CDOBranchPoint branchPoint, int referenceChunk, int prefetchDepth, boolean loadOnDemand, SyntheticCDORevision[] synthetics)
InternalCDORevision getRevision(CDOID id, CDOBranchPoint branchPoint, int referenceChunk, int prefetchDepth, boolean loadOnDemand)
CDORevisionManager
revision
with the given ID
at the given branch
point
(branch + timestamp), optionally demand loading it if it is not already in the cache
.getRevision
in interface CDORevisionManager
referenceChunk
- The number of target IDs
to load for each many-valued reference in the returned revision, or
CDORevision.UNCHUNKED
for all such list elements (IDs).prefetchDepth
- The number of nested containment levels to load revisions for in one round trip. Use the symbolic
constants CDORevision.DEPTH_INFINITE
to prefetch all contained revisions or
CDORevision.DEPTH_NONE
to 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 or null
is returned.CDORevisionManager.getRevisions(List, CDOBranchPoint, int, int, boolean)
,
CDORevisionManager.getRevisionByVersion(CDOID, CDOBranchVersion, int, boolean)
InternalCDORevision getRevisionByVersion(CDOID id, CDOBranchVersion branchVersion, int referenceChunk, boolean loadOnDemand)
CDORevisionManager
revision
with the given ID
at the given branch version
(branch + version), optionally demand loading it if it is not already in the
cache
.
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.
getRevisionByVersion
in interface CDORevisionManager
referenceChunk
- The number of target IDs
to load for each many-valued reference in the returned revision, or
CDORevision.UNCHUNKED
for 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 or null
is returned.CDORevisionManager.getRevision(CDOID, CDOBranchPoint, int, int, boolean)
Copyright (c) 2014 Eike Stepper (Berlin, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html