Interface CDORevisionManager.Request
- Enclosing interface:
CDORevisionManager
public static interface CDORevisionManager.Request
A fluent, manager-bound request for loading one or more revisions.
- Since:
- 4.29
- Author:
- Eike Stepper
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classImmutable loading options shared by revision manager operations and modern revision loaders. -
Method Summary
Modifier and TypeMethodDescriptiongetRevision(CDOID id, CDOBranchPoint branchPoint) Executes a single-revision request at a branch point.getRevisionByVersion(CDOID id, CDOBranchVersion branchVersion) Executes a revision request by branch version.getRevisions(List<CDOID> ids, CDOBranchPoint branchPoint) Executes a multi-revision request at a branch point.default CDORevisionManager.RequestSets the lookup mode toCDORevisionManager.Request.Config.LookupMode.CACHE_ONLY.default CDORevisionManager.RequestSets the lookup mode toCDORevisionManager.Request.Config.LookupMode.CACHE_THEN_LOADER.default CDORevisionManager.RequestSets the lookup mode toCDORevisionManager.Request.Config.LookupMode.LOADER_ONLY.Sets the lookup mode.prefetchDepth(int prefetchDepth) Sets the containment prefetch depth.default CDORevisionManager.RequestSets the containment prefetch depth toCDORevision.DEPTH_INFINITE.default CDORevisionManager.RequestSets the containment prefetch depth toCDORevision.DEPTH_NONE.default CDORevisionManager.RequestSets the containment prefetch depth toCDORevision.DEPTH_ONE.default CDORevisionManager.RequestEnables lock-state prefetch.prefetchLockStates(boolean prefetchLockStates) Sets whether lock-state prefetch is enabled.
-
Method Details
-
lookupMode
Sets the lookup mode.- Parameters:
lookupMode- the cache and loader source-selection mode- Returns:
- this request for further configuration
-
lookupCacheOnly
Sets the lookup mode toCDORevisionManager.Request.Config.LookupMode.CACHE_ONLY.- Returns:
- this request for further configuration
-
lookupLoaderOnly
Sets the lookup mode toCDORevisionManager.Request.Config.LookupMode.LOADER_ONLY.- Returns:
- this request for further configuration
-
lookupCacheThenLoader
Sets the lookup mode toCDORevisionManager.Request.Config.LookupMode.CACHE_THEN_LOADER.- Returns:
- this request for further configuration
-
prefetchDepth
Sets the containment prefetch depth.- Parameters:
prefetchDepth- the number of containment levels to prefetch, or aCDORevisiondepth constant- Returns:
- this request for further configuration
-
prefetchDepthNone
Sets the containment prefetch depth toCDORevision.DEPTH_NONE.- Returns:
- this request for further configuration
-
prefetchDepthOne
Sets the containment prefetch depth toCDORevision.DEPTH_ONE.- Returns:
- this request for further configuration
-
prefetchDepthInfinite
Sets the containment prefetch depth toCDORevision.DEPTH_INFINITE.- Returns:
- this request for further configuration
-
prefetchLockStates
Sets whether lock-state prefetch is enabled.- Parameters:
prefetchLockStates-trueto request lock-state prefetch where supported- Returns:
- this request for further configuration
-
prefetchLockStates
Enables lock-state prefetch.- Returns:
- this request for further configuration
-
getRevision
Executes a single-revision request at a branch point.- Parameters:
id- the ID of the requested objectbranchPoint- the branch point at which to load the revision- Returns:
- the revision, or
nullif it does not exist or lookup is cache-only and the cache misses
-
getRevisions
Executes a multi-revision request at a branch point.- Parameters:
ids- the IDs of the requested objectsbranchPoint- the branch point at which to load the revisions- Returns:
- the requested revisions, with
nullentries for revisions that could not be found
-
getRevisionByVersion
Executes a revision request by branch version.- Parameters:
id- the ID of the requested objectbranchVersion- the branch version at which to load the revision- Returns:
- the revision, or
nullif it does not exist or lookup is cache-only and the cache misses
-