public class CDOIDMapper extends Object implements CDOReferenceAdjuster
Constructor and Description |
---|
CDOIDMapper(Map<CDOID,CDOID> idMappings) |
Modifier and Type | Method and Description |
---|---|
Object |
adjustReference(Object value,
org.eclipse.emf.ecore.EStructuralFeature feature,
int index)
Adjusts the internal structure of an object (e.g:
CDORevision ). |
Map<CDOID,CDOID> |
getIDMappings() |
boolean |
isAllowUnmappedTempIDs() |
void |
setAllowUnmappedTempIDs(boolean allowUnmappedTempIDs) |
public boolean isAllowUnmappedTempIDs()
public void setAllowUnmappedTempIDs(boolean allowUnmappedTempIDs)
public Object adjustReference(Object value, org.eclipse.emf.ecore.EStructuralFeature feature, int index)
CDOReferenceAdjuster
CDORevision
). This is mainly used after committing a
transaction. CDORevision
must replace CDOIDTemp
for non-temporary CDOID
with a mapped ID.
Only the internal structure knows how to do these modifications. This is important to consider using different
implementation of CDOList
.adjustReference
in interface CDOReferenceAdjuster
Copyright (c) 2011-2014 Eike Stepper (Berlin, Germany) and others.