psdi.app.dpldasset

Class DeployedAssetViewSet

    • Field Detail

      • TLOAMISPROMOTED_ATTRIBUTENAME

        protected static final java.lang.String TLOAMISPROMOTED_ATTRIBUTENAME
        See Also:
        Constant Field Values
      • tloamispromotedNoQbeSelection

        protected java.lang.String tloamispromotedNoQbeSelection
        holds the original QBE value for TLOAMISPROMOTED only when it evaluates to NO. Empty otherwise
    • Constructor Detail

      • DeployedAssetViewSet

        public DeployedAssetViewSet(MboServerInterface ms)
                             throws MXException,
                                    java.rmi.RemoteException
        Construct the set
        Parameters:
        ms - Mbo server interface
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • resetSpecialQbe

        protected void resetSpecialQbe()
                                throws java.rmi.RemoteException,
                                       MXException
        Clear the special QBE fields
        Throws:
        java.rmi.RemoteException
        MXException
      • getMboInstance

        protected Mbo getMboInstance(MboSet ms)
                              throws MXException,
                                     java.rmi.RemoteException
        Generate a new DeployedAssetView object
        Overrides:
        getMboInstance in class TheOneMboSet
        Parameters:
        ms - Mbo object
        Returns:
        Mbo instance
        Throws:
        MXException
        java.rmi.RemoteException
      • getQbe

        public java.lang.String getQbe(java.lang.String attribute)
                                throws MXException,
                                       java.rmi.RemoteException
        Description copied from class: MboSet
        Return the current Qbe expression for the specified attribute. Returns null if there is no current Qbe expression.
        Specified by:
        getQbe in interface MboSetRemote
        Overrides:
        getQbe in class MboSet
        Throws:
        MXException
        java.rmi.RemoteException
      • setQbe

        public void setQbe(java.lang.String attribute,
                           java.lang.String expression)
                    throws MXException,
                           java.rmi.RemoteException
        Description copied from class: MboSet
        Add an expression to the existing Qbe. This will take effect the next time the MboSet is reset and a record is fetched. setQbe(String, String) can be called multiple times before initiating the fetch, in which case the expressions will be ANDed together.
        Specified by:
        setQbe in interface MboSetRemote
        Overrides:
        setQbe in class MboSet
        Parameters:
        attribute - The attribute name whose value is being restricted.
        expression - The restriction value for the attribute. The expression can be in either of two forms:
        • [operator] [operand] For example, >10. The supported operators are >, >=, <, <=, =, !=, and LIKE (default). For string datatypes, the operand can contain % characters for wildcards.
        • [operand] For example, "ABC" . In this form, the operator is assumed to be LIKE.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        MboSet.resetQbe(), MboSet.setQbe(String[], String), MboSet.reset(), MboSet.getMbo()
      • stripQueryAttributeValue

        protected java.lang.String stripQueryAttributeValue(java.lang.String value)
        Remove the leading = as well as enclosing simple or double quotes from the passed string and return the new value
      • getUserWhere

        public java.lang.String getUserWhere(java.lang.String alias)
                                      throws MXException,
                                             java.rmi.RemoteException
        Description copied from class: MboSet
        Returns the user defined where clause. This method returns the where clause in the native SQL format.
        Overrides:
        getUserWhere in class MboSet
        Throws:
        MXException
        java.rmi.RemoteException
      • getNotPromotedSpecialClause

        protected java.lang.String getNotPromotedSpecialClause()
                                                        throws MXException
        Return the special clause in case the qbe asks for promoted=NO, or null if this does not apply
        Throws:
        MXException
      • combineAndWhereClauses

        protected java.lang.String combineAndWhereClauses(java.lang.String[] wheres)
                                                   throws java.rmi.RemoteException
        Combines the passed where clauses, joining them with the and operator
        Throws:
        java.rmi.RemoteException
      • isNullString

        protected boolean isNullString(java.lang.String str)
        Return true if the passed string is null or empty, false otherwise
      • getFormattedWhereClause

        protected java.lang.String getFormattedWhereClause(java.lang.String whereClauseToBeFormatted)
                                                    throws java.rmi.RemoteException
        Return the passed MAXIMO where clause converted to the native SQL
        Throws:
        java.rmi.RemoteException