Package cz.cvut.kbss.jopa.sessions.merge
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.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
mergeValue
(Object target, ChangeRecord changeRecord, Descriptor attributeDescriptor) Merges new value specified by the change record into the target object.
-
Method Details
-
mergeValue
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 mergechangeRecord
- Description of the change (including the new value)attributeDescriptor
- Specifies context of the merged attribute
-