psdi.app.recontask.engine.compare

Class GenericReconComparator

  • java.lang.Object
    • psdi.app.recontask.engine.compare.GenericReconComparator
    • Constructor Detail

      • GenericReconComparator

        public GenericReconComparator()
    • Method Detail

      • compare

        public java.util.List compare(java.util.Map linkValue1,
                                      java.util.Map linkValue2)
                               throws MXException,
                                      java.rmi.RemoteException,
                                      java.sql.SQLException
        Description copied from interface: ReconComparatorI
        Compare 2 sets of data starting from the root values from data set1 and data set2. The root values are returned from the link process. They represent values from the main objects and are in the form of a attribute name - attribute value maps. The attribute names are in lower cases and they should include at least primary keys and unique ids.
        Specified by:
        compare in interface ReconComparatorI
        Parameters:
        linkValue1 - root values for data set1
        linkValue2 - root values for data set2
        Returns:
        List of comparison results.
        Throws:
        MXException
        java.rmi.RemoteException
        java.sql.SQLException
      • prepareAndAddResult

        protected void prepareAndAddResult(ComparisonRule cr,
                                           java.util.Map linkValue1,
                                           java.util.Map linkValue2,
                                           java.util.List results,
                                           ReconCompResult result)
                                    throws MXException,
                                           java.rmi.RemoteException
        prepare the result and write the result
        Parameters:
        comparison - rule
        linkValue1 - - dataset1 link value
        linkValue2 - - dataset2 link value
        results - - result list
        result - - current result
        Throws:
        MXException
        java.rmi.RemoteException