Interface SourceEntityStrategy

All Known Implementing Classes:
DeleteSourceEntityStrategy, SetFieldSourceEntityStrategy, SetRelationSourceEntityStrategy

public interface SourceEntityStrategy
  • Method Details

    • priority

      int priority()
      The priority can be used to define the order of the strategies.
      Returns:
      the priority of this strategy.
    • supports

      boolean supports(String modelName)
      Returns:
      true if this strategy supports handling the given relation model
    • getMergeStrategyDisplay

      String getMergeStrategyDisplay()
      Returns:
      a description on that happens with the source entities during processing this strategy
    • process

      void process(List<Entity> sourceEntities, EntityMergeResult mergeResult)
      processes the source entities
      Parameters:
      sourceEntities - all source entities of the merge operation
      mergeResult - summary of the merge process