Class CDORevisionUtil
java.lang.Object
org.eclipse.emf.cdo.common.revision.CDORevisionUtil
Various static helper methods for dealing with
revisions
.- Author:
- Eike Stepper
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CDOListFeatureDelta
compareLists
(CDORevision originRevision, CDORevision dirtyRevision, EStructuralFeature feature) static CDORevisable
copyRevisable
(CDORevisable source) static CDORevisionKey
copyRevisionKey
(CDORevisionKey source) static CDOFeatureMapEntry
Deprecated.static CDOChangeSet
createChangeSet
(CDOBranchPoint startPoint, CDOBranchPoint endPoint, CDOChangeSetData data) static CDOChangeSetData
createChangeSetData
(List<CDOIDAndVersion> newObjects, List<CDORevisionKey> changedObjects, List<CDOIDAndVersion> detachedObjects) static CDOChangeSetData
createChangeSetData
(Set<CDOID> ids, CDOBranchPoint startPoint, CDOBranchPoint endPoint, CDORevisionManager revisionManager) static CDOChangeSetData
createChangeSetData
(Set<CDOID> ids, CDORevisionProvider startProvider, CDORevisionProvider endProvider) static CDOChangeSetData
createChangeSetData
(Set<CDOID> ids, CDORevisionProvider startProvider, CDORevisionProvider endProvider, boolean useStartVersions) static CDORevisionDelta
createDelta
(CDORevision revision) static FeatureMap.Entry
createFeatureMapEntry
(EStructuralFeature feature, Object value) Deprecated.As of 4.5feature maps
are no longer supported.static CDORevisable
createRevisable
(CDOBranch branch, int version, long timeStamp, long revised) static CDORevisionCache
createRevisionCache
(boolean supportingAudits, boolean supportingBranches) Creates and returns a new memory sensitive revision cache.static CDORevisionKey
createRevisionKey
(CDOID id, CDOBranch branch, int version) static CDORevisionManager
static CDORevisionManager
static String
dumpAllRevisions
(Map<CDOBranch, List<CDORevision>> map) static void
dumpAllRevisions
(Map<CDOBranch, List<CDORevision>> map, PrintStream out) static void
forEachChildRevision
(CDOID container, CDORevisionProvider provider, boolean onlyProperContents, Consumer<CDORevision> consumer) static void
forEachChildRevision
(CDORevision container, CDORevisionProvider provider, boolean onlyProperContents, Consumer<CDORevision> consumer) static String
static List<CDORevision>
getChildRevisions
(CDOID container, CDORevisionProvider provider) static List<CDORevision>
getChildRevisions
(CDOID container, CDORevisionProvider provider, boolean onlyProperContents) static List<CDORevision>
getChildRevisions
(CDORevision container, CDORevisionProvider provider) static List<CDORevision>
getChildRevisions
(CDORevision container, CDORevisionProvider provider, boolean onlyProperContents) static CDORevision
getParentRevision
(CDORevision revision, CDORevisionProvider provider) static String
getResourceNodeName
(CDORevision revision) static String
getResourceNodePath
(CDOID id, CDORevisionProvider provider) static String
getResourceNodePath
(CDORevision revision, CDORevisionProvider provider) static void
handleParentRevisions
(CDORevision revision, CDORevisionProvider provider, CDORevisionHandler handler) static boolean
hasChildRevisions
(CDORevision container) static boolean
isContained
(CDOID child, CDOID container, CDORevisionProvider provider) static boolean
isContained
(InternalCDORevision child, CDOID container, CDORevisionProvider provider) static boolean
isTreeRestructuring
(InternalCDORevisionDelta[] deltas) static CDORevisionKey
parseRevisionKey
(String source, CDOBranchManager branchManager) static Object
-
Field Details
-
UNINITIALIZED
-
-
Method Details
-
createRevisionCache
public static CDORevisionCache createRevisionCache(boolean supportingAudits, boolean supportingBranches) Creates and returns a new memory sensitive revision cache.- Since:
- 4.0
-
createRevisionManager
- Since:
- 4.0
-
createRevisionManager
- Since:
- 4.0
-
copyRevisable
- Since:
- 4.0
-
createRevisable
public static CDORevisable createRevisable(CDOBranch branch, int version, long timeStamp, long revised) - Since:
- 4.0
-
copyRevisionKey
- Since:
- 4.0
-
createRevisionKey
- Since:
- 3.0
-
formatRevisionKey
- Since:
- 4.0
-
parseRevisionKey
- Since:
- 4.0
-
createFeatureMapEntry
@Deprecated public static FeatureMap.Entry createFeatureMapEntry(EStructuralFeature feature, Object value) Deprecated.As of 4.5feature maps
are no longer supported.- Since:
- 2.0
-
createCDOFeatureMapEntry
Deprecated.As of 4.5feature maps
are no longer supported.- Since:
- 3.0
-
createDelta
- Since:
- 4.0
-
createChangeSetData
public static CDOChangeSetData createChangeSetData(Set<CDOID> ids, CDOBranchPoint startPoint, CDOBranchPoint endPoint, CDORevisionManager revisionManager) - Since:
- 4.0
-
createChangeSetData
public static CDOChangeSetData createChangeSetData(Set<CDOID> ids, CDORevisionProvider startProvider, CDORevisionProvider endProvider) - Since:
- 4.0
-
createChangeSetData
public static CDOChangeSetData createChangeSetData(Set<CDOID> ids, CDORevisionProvider startProvider, CDORevisionProvider endProvider, boolean useStartVersions) - Since:
- 4.1
-
createChangeSetData
public static CDOChangeSetData createChangeSetData(List<CDOIDAndVersion> newObjects, List<CDORevisionKey> changedObjects, List<CDOIDAndVersion> detachedObjects) - Since:
- 4.0
-
createChangeSet
public static CDOChangeSet createChangeSet(CDOBranchPoint startPoint, CDOBranchPoint endPoint, CDOChangeSetData data) - Since:
- 4.0
-
remapID
public static Object remapID(Object value, Map<CDOID, CDOID> idMappings, boolean allowUnmappedTempIDs) - Since:
- 3.0
-
isTreeRestructuring
- Since:
- 4.5
-
isContained
- Since:
- 4.3
-
isContained
public static boolean isContained(InternalCDORevision child, CDOID container, CDORevisionProvider provider) - Since:
- 4.3
-
handleParentRevisions
public static void handleParentRevisions(CDORevision revision, CDORevisionProvider provider, CDORevisionHandler handler) - Since:
- 4.5
-
getParentRevision
- Since:
- 4.5
-
hasChildRevisions
- Since:
- 4.21
-
getChildRevisions
- Since:
- 4.4
-
getChildRevisions
public static List<CDORevision> getChildRevisions(CDOID container, CDORevisionProvider provider, boolean onlyProperContents) - Since:
- 4.5
-
getChildRevisions
public static List<CDORevision> getChildRevisions(CDORevision container, CDORevisionProvider provider) - Since:
- 4.4
-
getChildRevisions
public static List<CDORevision> getChildRevisions(CDORevision container, CDORevisionProvider provider, boolean onlyProperContents) - Since:
- 4.5
-
forEachChildRevision
public static void forEachChildRevision(CDOID container, CDORevisionProvider provider, boolean onlyProperContents, Consumer<CDORevision> consumer) - Since:
- 4.18
-
forEachChildRevision
public static void forEachChildRevision(CDORevision container, CDORevisionProvider provider, boolean onlyProperContents, Consumer<CDORevision> consumer) - Since:
- 4.18
-
getResourceNodeName
- Since:
- 4.15
-
getResourceNodePath
- Since:
- 4.3
-
getResourceNodePath
- Since:
- 4.0
-
compareLists
public static CDOListFeatureDelta compareLists(CDORevision originRevision, CDORevision dirtyRevision, EStructuralFeature feature) - Since:
- 4.8
-
dumpAllRevisions
- Since:
- 3.0
-
dumpAllRevisions
- Since:
- 3.0
-
feature maps
are no longer supported.