Interface ValueMerger

All Known Implementing Classes:
DefaultValueMerger, DetachedValueMerger, MapValueMerger
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ValueMerger
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    mergeValue(Object target, ChangeRecord changeRecord, Descriptor attributeDescriptor)
    Merges new value specified by the change record into the target object.
  • Method Details

    • mergeValue

      void mergeValue(Object target, ChangeRecord changeRecord, Descriptor attributeDescriptor)
      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).

      Parameters:
      target - Target of the merge
      changeRecord - Description of the change (including the new value)
      attributeDescriptor - Specifies context of the merged attribute