psdi.app.recontask.engine.load

Class LinkMetaDataLoader

  • java.lang.Object
    • psdi.app.recontask.engine.load.LinkMetaDataLoader


  • public class LinkMetaDataLoader
    extends java.lang.Object
    Class is responsible for loading the attributes and spec attributes for data set 1 and data set 2 at the same time (because they are found in the same database table.)
    • Field Detail

    • Constructor Detail

      • LinkMetaDataLoader

        public LinkMetaDataLoader(ReconInfo reconInfo)
    • Method Detail

      • setTaskMbo

        public void setTaskMbo(MboRemote taskMbo)
        Sets the task mbo to load with.
        Parameters:
        taskMbo - the taskMbo to set
      • setLinkOrder

        public void setLinkOrder(java.lang.String linkOrder)
        Sets the order of the returned results.
        Parameters:
        linkOrder - - ordered by this.
      • load

        public void load()
                  throws java.rmi.RemoteException,
                         MXException
        Loads the attributes and spec attributes for both data sets.
        Throws:
        java.rmi.RemoteException
        MXException
      • addAttributesForDataSet

        protected void addAttributesForDataSet(DataSet dataSet,
                                               java.util.List addAttributesTo)
                                        throws java.rmi.RemoteException,
                                               MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • buildExpression

        public ReconLinkExpression buildExpression(MboRemote linkRule)
                                            throws MXException,
                                                   java.rmi.RemoteException
        Builds an expression tree from a link rule containing attributes.
        Parameters:
        linkRule - - the link rule to build the expression from.
        Returns:
        the expresison as a tree.
        Throws:
        MXException
        java.rmi.RemoteException
      • getLinkExpressionSet

        public java.util.List getLinkExpressionSet()
        Returns the set of expressions.
        Returns:
        the leS
      • getDataSet1Attributes

        public java.util.List getDataSet1Attributes()
        Returns the data set attributes for data set 1.
        Returns:
        the attributeSet1
      • getDataSet2Attributes

        public java.util.List getDataSet2Attributes()
        Returns the data set attributes for data set 2.
        Returns:
        the dataSet2Attributes
      • getDataSet1SpecAttributes

        public java.util.List getDataSet1SpecAttributes()
        Returns the spec attributes for data set 1.
        Returns:
        the dataSet1SpecAttributes
      • getDataSet2SpecAttributes

        public java.util.List getDataSet2SpecAttributes()
        Returns the spec attributes for data set 2.
        Returns:
        the dataSet2SpecAttributes
      • reset

        public void reset()
      • isSpec

        protected boolean isSpec(java.lang.String fullName,
                                 java.lang.String dataSetObjectName,
                                 DataSet dataSet)
        Is an attribute a spec attribute?
        Parameters:
        fullName - - the full name of the attribute
        dataSetObjectName - - the name of the data set object.
        Returns:
      • parseAttributes

        public void parseAttributes(java.util.Set attributeSet,
                                    DataSet dataSet,
                                    boolean isDataSet1)
                             throws MXSystemException
        Splits the set of data set attributes involved in the link phase into 2 sets: data set proper and data set spec.
        Parameters:
        attributeSet - The set of asset attributes used in link clause
        dataSet - The data set whose attributes to parse.
        isDataSet1 - Is the data set data set 1?
        Throws:
        MXSystemException