org.eclipse.emf.cdo.common.revision
Class CDORevisionUtil
java.lang.Object
org.eclipse.emf.cdo.common.revision.CDORevisionUtil
- public final class CDORevisionUtil
- extends Object
Various static helper methods for dealing with revisions
.
Method Summary |
static CDORevisable |
copyRevisable(CDORevisable source)
|
static CDORevisionKey |
copyRevisionKey(CDORevisionKey source)
|
static CDOFeatureMapEntry |
createCDOFeatureMapEntry()
|
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)
|
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 |
createRevisionManager()
|
static CDORevisionManager |
createRevisionManager(CDORevisionCache cache)
|
static String |
dumpAllRevisions(Map<CDOBranch,List<CDORevision>> map)
|
static void |
dumpAllRevisions(Map<CDOBranch,List<CDORevision>> map,
PrintStream out)
|
static String |
formatRevisionKey(CDORevisionKey key)
|
static String |
getResourceNodePath(CDORevision revision,
CDORevisionProvider provider)
|
static CDORevisionKey |
parseRevisionKey(String source,
CDOBranchManager branchManager)
|
static Object |
remapID(Object value,
Map<CDOID,CDOID> idMappings,
boolean allowUnmappedTempIDs)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UNINITIALIZED
public static final Object UNINITIALIZED
createRevisionCache
public static CDORevisionCache createRevisionCache(boolean supportingAudits,
boolean supportingBranches)
- Creates and returns a new memory sensitive revision cache.
- Since:
- 4.0
createRevisionManager
public static CDORevisionManager createRevisionManager()
- Since:
- 4.0
createRevisionManager
public static CDORevisionManager createRevisionManager(CDORevisionCache cache)
- Since:
- 4.0
copyRevisable
public static CDORevisable copyRevisable(CDORevisable source)
- Since:
- 4.0
createRevisable
public static CDORevisable createRevisable(CDOBranch branch,
int version,
long timeStamp,
long revised)
- Since:
- 4.0
copyRevisionKey
public static CDORevisionKey copyRevisionKey(CDORevisionKey source)
- Since:
- 4.0
createRevisionKey
public static CDORevisionKey createRevisionKey(CDOID id,
CDOBranch branch,
int version)
- Since:
- 3.0
formatRevisionKey
public static String formatRevisionKey(CDORevisionKey key)
- Since:
- 4.0
parseRevisionKey
public static CDORevisionKey parseRevisionKey(String source,
CDOBranchManager branchManager)
- Since:
- 4.0
createFeatureMapEntry
public static FeatureMap.Entry createFeatureMapEntry(EStructuralFeature feature,
Object value)
- Since:
- 2.0
createCDOFeatureMapEntry
public static CDOFeatureMapEntry createCDOFeatureMapEntry()
- Since:
- 3.0
createDelta
public static CDORevisionDelta createDelta(CDORevision revision)
- 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
getResourceNodePath
public static String getResourceNodePath(CDORevision revision,
CDORevisionProvider provider)
- Since:
- 4.0
dumpAllRevisions
public static String dumpAllRevisions(Map<CDOBranch,List<CDORevision>> map)
- Since:
- 3.0
dumpAllRevisions
public static void dumpAllRevisions(Map<CDOBranch,List<CDORevision>> map,
PrintStream out)
- Since:
- 3.0
Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.