Package cz.cvut.kbss.jopa.sessions.merge
Class MapValueMerger
java.lang.Object
cz.cvut.kbss.jopa.sessions.merge.MapValueMerger
- All Implemented Interfaces:
ValueMerger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
mergeValue
(Object target, ChangeRecord changeRecord, Descriptor attributeDescriptor) Merges new value specified by the change record into the target object.
-
Constructor Details
-
MapValueMerger
public MapValueMerger()
-
-
Method Details
-
mergeValue
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 interfaceValueMerger
- Parameters:
target
- Target of the mergechangeRecord
- Description of the change (including the new value)attributeDescriptor
- Specifies context of the merged attribute
-