psdi.app.dpldasset

Class ComputerSystemSet

    • 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

      • ComputerSystemSet

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

      • getMboInstance

        protected Mbo getMboInstance(MboSet ms)
                              throws MXException,
                                     java.rmi.RemoteException
        Generate a new ComputerSystem object
        Specified by:
        getMboInstance in class MboSet
        Parameters:
        ms - Mbo object
        Returns:
        Mbo instance
        Throws:
        MXException
        java.rmi.RemoteException
      • resetSpecialQbe

        protected void resetSpecialQbe()
                                throws java.rmi.RemoteException,
                                       MXException
        Clear the special QBE fields
        Throws:
        java.rmi.RemoteException
        MXException
      • 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
      • getChildren

        public MboValueData[][] getChildren(java.lang.String object,
                                            java.lang.String key,
                                            java.lang.String[] attrs,
                                            int maxRows)
                                     throws MXException,
                                            java.rmi.RemoteException
        Returns zero or more children objects in the hierarchy.
        Specified by:
        getChildren in interface HierarchicalMboSetRemote
        Parameters:
        object - - name of the object whose children are being requested.
        key - - unique id of the object whose children are being fetched.
        attrs - - list of attributes whose values are requested, the attribute data returned in the attribute list correspond to this list.
        maxRows - - maximum number of rows to return.
        Returns:
        MboValueData[][] - contains an array of Object name, Object key, hasChildren flag, hasParents flag, list of attributes data from the passed attributes list.
        Throws:
        MXException
        java.rmi.RemoteException
      • getParent

        public MboValueData[] getParent(java.lang.String object,
                                        java.lang.String key,
                                        java.lang.String[] attrs)
                                 throws MXException,
                                        java.rmi.RemoteException
        Returns zero or one parent object for the given object in the hierarchy. This method returns the immediate parent object of the given object.
        Specified by:
        getParent in interface HierarchicalMboSetRemote
        Parameters:
        object - - name of the object whose children are being requested.
        key - - unique id of the object whose children are being fetched.
        attrs - - list of attributes whose values are requested, the attribute data returned in the attribute list correspond to this list.
        Returns:
        MboValueData[] - contains Object name, Object key, hasChildren flag, hasParents flag, list of attributes data from the passed attributes list.
        Throws:
        MXException
        java.rmi.RemoteException
      • getPathToTop

        public MboValueData[][] getPathToTop(java.lang.String object,
                                             java.lang.String key,
                                             java.lang.String[] attrs,
                                             int maxRows)
                                      throws MXException,
                                             java.rmi.RemoteException
        Returns all objects in the path to the top from the current object, i.e. every parent of the object in a sequence.
        Specified by:
        getPathToTop in interface HierarchicalMboSetRemote
        Parameters:
        object - - name of the object whose children are being requested.
        key - - unique id of the object whose children are being fetched.
        attrs - - list of attributes whose values are requested, the attribute data returned in the attribute list correspond to this list.
        maxRows - - maximum number of rows to return.
        Returns:
        MboValueData[][] - contains an array of Object name, Object key, hasChildren flag, hasParents flag, list of attributes data from the passed attributes list.
        Throws:
        MXException
        java.rmi.RemoteException
      • getSiblings

        public MboValueData[][] getSiblings(java.lang.String object,
                                            java.lang.String key,
                                            java.lang.String[] attrs,
                                            int maxRows)
                                     throws MXException,
                                            java.rmi.RemoteException
        Returns zero or more siblings of the given object in the hierarchy.
        Specified by:
        getSiblings in interface HierarchicalMboSetRemote
        Parameters:
        object - - name of the object whose children are being requested.
        key - - unique id of the object whose children are being fetched.
        attrs - - list of attributes whose values are requested, the attribute data returned in the attribute list correspond to this list.
        maxRows - - maximum number of rows to return.
        Returns:
        MboValueData[][] - contains an array of Object name, Object key, hasChildren flag, hasParents flag, list of attributes data from the passed attributes list.
        Throws:
        MXException
        java.rmi.RemoteException
      • getTop

        public MboValueData[][] getTop(java.lang.String[] attrs,
                                       int maxRows)
                                throws MXException,
                                       java.rmi.RemoteException
        Returns all the top level objects in the hierarchy, i.e. objects that do not have parents.
        Specified by:
        getTop in interface HierarchicalMboSetRemote
        Parameters:
        attrs - - list of attributes whose values are requested, the attribute data returned in the attribute list correspond to this list.
        maxRows - - maximum number of rows to return.
        Returns:
        MboValueData[][] - contains an array of Object name, Object key, hasChildren flag, hasParents flag, list of attributes data from the passed attributes list.
        Throws:
        MXException
        java.rmi.RemoteException