Class ToOneRelationMergeHandler
java.lang.Object
ch.tocco.nice2.entityoperation.spi.merge.ToOneRelationMergeHandler
- All Implemented Interfaces:
RelationMergeHandler
Merge handler which handles to-one relations.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionmergeRelation
(RelationMergeContext mergeContext) Merges the relation into the target entity.boolean
supports
(RelationModel relationModel) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.entityoperation.api.merge.RelationMergeHandler
priority
-
Constructor Details
-
ToOneRelationMergeHandler
-
-
Method Details
-
supports
- Specified by:
supports
in interfaceRelationMergeHandler
- Returns:
- true if this handler supports merging the given relation model
-
mergeRelation
Description copied from interface:RelationMergeHandler
Merges the relation into the target entity.- Specified by:
mergeRelation
in interfaceRelationMergeHandler
- Parameters:
mergeContext
- contains the necessary data to perform the merge operation (like relation model and target entity)- Returns:
- merge result (for example skipped entities)
-