psdi.app.recontask.engine.load

Class ComparisonDataLoader



  • public class ComparisonDataLoader
    extends DataLoader
    This class provides functions to load data for comparison
    • Constructor Detail

      • ComparisonDataLoader

        public ComparisonDataLoader(ReconInfo reconInfo,
                                    DataSet dataSet)
    • Method Detail

      • load

        public void load(ComparisonStatementHelper sh,
                         java.util.Map linkValue)
                  throws MXException,
                         java.rmi.RemoteException,
                         java.sql.SQLException
        Load Object: load main object, load current object, load specification data for current object.
        Parameters:
        sh - - current object to load
        linkValue -
        Throws:
        MXException
        java.rmi.RemoteException
        java.sql.SQLException
      • loadData

        protected void loadData(ComparisonStatementHelper sh,
                                java.util.Map linkValue)
                         throws MXException,
                                java.rmi.RemoteException,
                                java.sql.SQLException
        Build SQL to load data.
        Parameters:
        sh - - current object to load
        linkValue -
        Throws:
        MXException
        java.rmi.RemoteException
        java.sql.SQLException
      • loadDataForOne

        protected void loadDataForOne(ComparisonStatementHelper sh,
                                      java.lang.String sql,
                                      ReconValue parentValue)
                               throws MXException,
                                      java.rmi.RemoteException,
                                      java.sql.SQLException
        Query DB to load data and set record data for the current object "sh"
        Parameters:
        sh - - current object to load
        sql -
        parent - Value
        Throws:
        MXException
        java.rmi.RemoteException
        java.sql.SQLException
      • buildSQL

        protected java.lang.String buildSQL(ComparisonStatementHelper sh,
                                            java.util.Map uidAdnKeys)
                                     throws MXException,
                                            java.rmi.RemoteException,
                                            java.sql.SQLException
        Build SQL statement
        Parameters:
        sh -
        uidAdnKeys -
        Returns:
        Sql string
        Throws:
        MXException
        java.rmi.RemoteException
        java.sql.SQLException
      • getSpecWhereClause

        protected java.lang.String getSpecWhereClause(ComparisonStatementHelper sh,
                                                      int index)
                                               throws MXException,
                                                      java.rmi.RemoteException
        Build Specification SQL where clause
        Parameters:
        sh -
        index -
        Returns:
        Specification SQL where clause
        Throws:
        MXException
        java.rmi.RemoteException