Interface RelationMergeHandler
- All Known Implementing Classes:
AbstractAddressAddressAndUserUserRelationMergeHandler
,AddressAddressRelationMergeHandler
,CalendarRelationMergeHandler
,EntityDocsRelationMergeHandler
,ToManyRelationMergeHandler
,ToOneRelationMergeHandler
,UserRegistrationRelationMergeHandler
,UserUserRelationMergeHandler
public interface RelationMergeHandler
-
Method Summary
Modifier and TypeMethodDescriptionmergeRelation
(RelationMergeContext mergeContext) Merges the relation into the target entity.default int
priority()
The priority can be used to override the default handlers by using a higher priority than the default which is 0boolean
supports
(RelationModel relationModel)
-
Method Details
-
supports
- Returns:
- true if this handler supports merging the given relation model
-
mergeRelation
Merges the relation into the target entity.- Parameters:
mergeContext
- contains the necessary data to perform the merge operation (like relation model and target entity)- Returns:
- merge result (for example skipped entities)
-
priority
default int priority()The priority can be used to override the default handlers by using a higher priority than the default which is 0- Returns:
- the priority of this handler.
-