Interface RelationMergeHandler

All Known Implementing Classes:
AbstractAddressAddressAndUserUserRelationMergeHandler, AddressAddressRelationMergeHandler, CalendarRelationMergeHandler, EntityDocsRelationMergeHandler, ToManyRelationMergeHandler, ToOneRelationMergeHandler, UserRegistrationRelationMergeHandler, UserUserRelationMergeHandler

public interface RelationMergeHandler
  • Method Summary

    Modifier and Type
    Method
    Description
    Merges the relation into the target entity.
    default int
    The priority can be used to override the default handlers by using a higher priority than the default which is 0
    boolean
    supports(RelationModel relationModel)
     
  • Method Details

    • supports

      boolean supports(RelationModel relationModel)
      Returns:
      true if this handler supports merging the given relation model
    • mergeRelation

      EntityMergeResult mergeRelation(RelationMergeContext mergeContext)
      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.