Class CDOIDMapper

java.lang.Object
org.eclipse.emf.cdo.spi.common.revision.CDOIDMapper
All Implemented Interfaces:
CDOReferenceAdjuster

public class CDOIDMapper extends Object implements CDOReferenceAdjuster
Reference-adjustment policy backed by the ID mapping returned from a commit. It replaces temporary object IDs with their repository-assigned IDs and can optionally retain temporary IDs that have no mapping.
Since:
2.0
Author:
Simon McDuff
  • Constructor Details

  • Method Details

    • getIDMappings

      public Map<CDOID,CDOID> getIDMappings()
    • isAllowUnmappedTempIDs

      public boolean isAllowUnmappedTempIDs()
      Since:
      3.0
    • setAllowUnmappedTempIDs

      public void setAllowUnmappedTempIDs(boolean allowUnmappedTempIDs)
      Since:
      3.0
    • adjustReference

      public Object adjustReference(Object value, EStructuralFeature feature, int index)
      Description copied from interface: CDOReferenceAdjuster
      Adjusts the internal structure of an object (e.g: 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.
      Specified by:
      adjustReference in interface CDOReferenceAdjuster
      Since:
      4.0