psdi.iface.query

Class QbeXMLProcessor

  • java.lang.Object
    • psdi.iface.query.QbeXMLProcessor
    • Constructor Detail

      • QbeXMLProcessor

        public QbeXMLProcessor(java.lang.String objName,
                               UserInfo userInfo)
                        throws MXException,
                               java.rmi.RemoteException
        Parameters:
        objName - the name of the Maximo object [Mbo name]
        userInfo - t
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • setQueryClauseProperties

        protected void setQueryClauseProperties(org.jdom2.Element queryElement)
                                         throws java.rmi.RemoteException,
                                                MXException
        Sets the query clause properties like orcerby and the operand mode [or/and].
        Parameters:
        queryElement - the element thats parent to the Mbo element.
        Throws:
        MXException
        java.rmi.RemoteException
      • setWhereClause

        protected void setWhereClause(org.jdom2.Element whereElement)
                               throws java.rmi.RemoteException,
                                      MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • getMboSet

        public abstract MboSetRemote getMboSet(org.jdom2.Document doc)
                                        throws MXException,
                                               java.rmi.RemoteException
        Parameters:
        doc - the query xml document.
        Returns:
        MboSetRemote the MboSet with the qbe set.
        Throws:
        MXException
        java.rmi.RemoteException
      • getMboSet

        public abstract MboSetRemote getMboSet(org.jdom2.Element elem)
                                        throws MXException,
                                               java.rmi.RemoteException
        Parameters:
        elem - the query xml element.
        Returns:
        MboSetRemote the MboSet with the qbe set.
        Throws:
        MXException
        java.rmi.RemoteException
      • instantiateMboSet

        protected MboSetRemote instantiateMboSet(java.lang.String objName)
                                          throws MXException,
                                                 java.rmi.RemoteException
        Parameters:
        objName - the name of the Maximo object.
        Returns:
        MboSetRemote
        Throws:
        MXException
        java.rmi.RemoteException
      • prepareQbe

        protected void prepareQbe(java.lang.String relation,
                                  MboValueInfo mboValueInfo,
                                  org.jdom2.Element mboElem)
                           throws MXException,
                                  java.rmi.RemoteException
        Parameters:
        mboValueInfo -
        mboElem -
        Throws:
        MXException
        java.rmi.RemoteException
      • getColumnValue

        protected java.lang.String getColumnValue(org.jdom2.Element columnElem,
                                                  MboValueInfo mboValueInfo)
                                           throws MXException,
                                                  java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • isNull

        protected boolean isNull(org.jdom2.Element elem)
      • getQbeValue

        protected java.lang.String getQbeValue(java.lang.String value,
                                               java.lang.String queryOperator)
      • getQbeColumn

        protected java.lang.String getQbeColumn(java.lang.String relation,
                                                java.lang.String columnName,
                                                boolean isRange)
      • getLogger

        protected MXLogger getLogger()