Interface EntityMergeHook

All Superinterfaces:
Hook
All Known Implementing Classes:
DashboardDefaultMergeHooker, DatasinkDefaultMergeHooker, DatasourceDefaultMergeHooker, EntityMergeHooker, FileServerDefaultMergeHooker, ReportDefaultMergeHooker, TableReportMergeHooker

public interface EntityMergeHook extends Hook
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    consumes(Object oldInstance, Object newInstance)
    Decides if the hook can merge the two entities
    void
    mergeEntity(Object oldInstance, Object newInstance)
    Performs the merge of two entities
  • Method Details

    • consumes

      boolean consumes(Object oldInstance, Object newInstance)
      Decides if the hook can merge the two entities
      Parameters:
      oldInstance - the object to be merged
      newInstance - the object with the target values
      Returns:
      true if merge is possible otherwise false
    • mergeEntity

      void mergeEntity(Object oldInstance, Object newInstance) throws IllegalAccessException
      Performs the merge of two entities
      Parameters:
      oldInstance - the object to be merged
      newInstance - the object with the target values
      Throws:
      IllegalAccessException - if the merging of fields failed