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,
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, 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) 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