psdi.app.recontask.engine

Class ResultTableAttributes

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


  • public class ResultTableAttributes
    extends java.lang.Object
    Data set providers use this class to map attributes of objects invloved in linking or comparison to attributes in RECONLINK or RECONRESULT tables.
    • Constructor Summary

      Constructors 
      Constructor and Description
      ResultTableAttributes(java.lang.String resultTableName) 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void addAttribute(java.lang.String resultTableAttributeName, java.lang.String objectTableAttributeName)
      Add an attribute mapping entry.
      void addAttribute(java.lang.String resultTableAttributeName, java.lang.String objectTableAttributeName, boolean isInRootObject)
      Add an attribute mapping entry.
      void clear()
      Clear the attribute mappings
      int getAttributeCount()
      Get the total number of attribute mappings added by the addAttribute() calls
      java.lang.String getObjectTableAttributeName(int index)
      Get the name of the linking or comparion object attribute in the mapping entry indicated by an index.
      java.lang.String getResultTableAttributeName(int index)
      Get the name of the attribute in the RECONLINK or RECONRESULT table in the mapping entry indicated by an index.
      java.lang.String getResultTableName()
      Get the target result table name as passed in in the constructor
      boolean isObjectTableAttributeInRoot(int index)
      Detect if the mapping if for attribute that comes from a root object in comparison in the mapping entry indicated by an index.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ResultTableAttributes

        public ResultTableAttributes(java.lang.String resultTableName)
        Parameters:
        resultTableName - The target result table name. This should be one the the 2 values: TABLE_RECONLINK for the RECONLINK table, or TABLE_RECONRESULT for the RECONRESULT table.
    • Method Detail

      • addAttribute

        public void addAttribute(java.lang.String resultTableAttributeName,
                                 java.lang.String objectTableAttributeName)
        Add an attribute mapping entry.
        Parameters:
        resultTableAttributeName - Name of the attribute in the RECONLINK or RECONRESULT table
        objectTableAttributeName - Corresponding attribute name in object table, such as ASSET, where the value comes from.
      • addAttribute

        public void addAttribute(java.lang.String resultTableAttributeName,
                                 java.lang.String objectTableAttributeName,
                                 boolean isInRootObject)
        Add an attribute mapping entry.
        Parameters:
        resultTableAttributeName - Name of the attribute in the RECONLINK or RECONRESULT table
        objectTableAttributeName - Corresponding attribute name in object table, such as ASSET, where the value comes from.
        isInRootObject - True if the value of the object table attribute comes from the root object
        False if the value of the object table attribute comes from the object being compared
        This parameter only makes sense in comparison. And it is meaningful only if the main objects exist in a tree structure, such as ASSET and CI.
      • getResultTableName

        public java.lang.String getResultTableName()
        Get the target result table name as passed in in the constructor
        Returns:
        Target result table name
      • clear

        public void clear()
        Clear the attribute mappings
      • getAttributeCount

        public int getAttributeCount()
        Get the total number of attribute mappings added by the addAttribute() calls
        Returns:
        The total number of attribute mappings
      • getResultTableAttributeName

        public java.lang.String getResultTableAttributeName(int index)
        Get the name of the attribute in the RECONLINK or RECONRESULT table in the mapping entry indicated by an index.
        Parameters:
        Index - The index of the attribute mappings in interest.
        Returns:
        Name of the attribute in the RECONLINK or RECONRESULT table
      • getObjectTableAttributeName

        public java.lang.String getObjectTableAttributeName(int index)
        Get the name of the linking or comparion object attribute in the mapping entry indicated by an index.
        Parameters:
        Index - The index of the attribute mappings in interest.
        Returns:
        Name of the linking or comparion object attribute
      • isObjectTableAttributeInRoot

        public boolean isObjectTableAttributeInRoot(int index)
        Detect if the mapping if for attribute that comes from a root object in comparison in the mapping entry indicated by an index.
        Parameters:
        Index - The index of the attribute mappings in interest.
        Returns:
        True if the attribute comes from a root object, false otherwise