Class MapValueMerger

java.lang.Object
cz.cvut.kbss.jopa.sessions.merge.MapValueMerger
All Implemented Interfaces:
ValueMerger

public class MapValueMerger extends Object implements ValueMerger
  • Constructor Details

    • MapValueMerger

      public MapValueMerger()
  • Method Details

    • mergeValue

      public void mergeValue(Object target, ChangeRecord changeRecord, Descriptor attributeDescriptor)
      Description copied from interface: ValueMerger
      Merges new value specified by the change record into the target object.

      Note that the change record may be modified during the merge (e.g., in case the new value is a detached instance of a managed type and a corresponding object needs to be loaded from the underlying repository).

      Specified by:
      mergeValue in interface ValueMerger
      Parameters:
      target - Target of the merge
      changeRecord - Description of the change (including the new value)
      attributeDescriptor - Specifies context of the merged attribute