psdi.app.recontask.engine

Class ComparisonQueryHelper

  • java.lang.Object
    • psdi.app.recontask.engine.ComparisonQueryHelper


  • public class ComparisonQueryHelper
    extends java.lang.Object
    Manages the ComparisonStatementHelper objects for all asset objects at the input end of comparison
    • Field Detail

      • CARDINALITY_STATEMENT_DATASET1

        public static final int CARDINALITY_STATEMENT_DATASET1
        See Also:
        Constant Field Values
      • CARDINALITY_STATEMENT_DATASET2

        public static final int CARDINALITY_STATEMENT_DATASET2
        See Also:
        Constant Field Values
      • ATTRIBUTE_EQUALITY_STATEMENT

        public static final int ATTRIBUTE_EQUALITY_STATEMENT
        See Also:
        Constant Field Values
      • ATTRIBUTE_EQUALITY_STATEMENT_DATASET1

        public static final int ATTRIBUTE_EQUALITY_STATEMENT_DATASET1
        See Also:
        Constant Field Values
      • ATTRIBUTE_EQUALITY_STATEMENT_DATASET2

        public static final int ATTRIBUTE_EQUALITY_STATEMENT_DATASET2
        See Also:
        Constant Field Values
      • allStatements

        protected java.util.Map allStatements
      • attributeMatchLeadingSideObjects

        protected java.util.ArrayList attributeMatchLeadingSideObjects
        the names of the objects on the leading side used in the attribute match expression (empty when the rule does cardinality comparison )
    • Constructor Detail

      • ComparisonQueryHelper

        public ComparisonQueryHelper(ReconInfo reconInfo)
                              throws MXException,
                                     java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • registerAttribute

        protected ComparisonStatementHelper registerAttribute(DataSet dS,
                                                              java.lang.String objectName,
                                                              java.lang.String fullyQualifiedName,
                                                              java.lang.String attributeUnit,
                                                              int type)
      • prepare

        protected void prepare()
                        throws MXException,
                               java.rmi.RemoteException,
                               java.sql.SQLException
        Throws:
        MXException
        java.rmi.RemoteException
        java.sql.SQLException
      • hasStatementsOfType

        public boolean hasStatementsOfType(int type)
        Returns:
        true if there are SQL statements to be run when processing the corresponding step
      • getStatementsOfType

        public java.util.List getStatementsOfType(int type)
        Returns:
        true the iterator to the SQL statements of the corresponding type
      • getAttributeMatchLeadingSideObjects

        public java.util.List getAttributeMatchLeadingSideObjects()
        Returns:
        Returns the attributeMatchLeadingSideObjects.
      • attachFilterResults

        protected void attachFilterResults(ReconCompFilterReturn filterReturn)
        Attaches all recon value objects in the filterReturn container to the corresponding ComparisonStatementHelper in this object
        Parameters:
        filterReturn -
      • detachResults

        public java.util.List detachResults(java.lang.String objectName)
        Parameters:
        the - object name to detach objects from
        Returns:
        a list of AssetValue instances
      • attachOneResult

        public void attachOneResult(java.lang.String objectName,
                                    ReconValue value)
                             throws MXException,
                                    java.rmi.RemoteException
        Attach ONE object to the statement set, removing anything that existed before Use with caution :)
        Throws:
        MXException
        java.rmi.RemoteException
      • isMainUIDMatch

        protected boolean isMainUIDMatch(ComparisonStatementHelper mainSt,
                                         java.lang.Object objUID,
                                         java.lang.String objectName)
                                  throws java.rmi.RemoteException,
                                         MXException
        Issue 09-18001 Validate if Main Data Object UID match passed in objectUID
        Parameters:
        mainSt - - main object data
        objectUID - - validate object UID
        objectName - - validate objectName
        Returns:
        boolean - true=match
        Throws:
        java.rmi.RemoteException
        MXException
      • reset

        public void reset()
      • setLinkValues

        public void setLinkValues(java.util.Map linkValue1,
                                  java.util.Map linkValue2)