psdi.app.jobplan

Class FldJobTaskNestedJPNum

    • Constructor Detail

      • FldJobTaskNestedJPNum

        public FldJobTaskNestedJPNum(MboValue mbv)
                              throws MXException
        Construct and attach to the MboValue.
        Parameters:
        mbv - the MboValue Nested Job Plan field in the jobtask object attach to.
        Throws:
        java.rmi.RemoteException
        MXException
    • Method Detail

      • validate

        public void validate()
                      throws MXException,
                             java.rmi.RemoteException
        Description copied from class: MAXTableDomain
        Validate that the MboSet returned used using either the relationship, or the where clause is not empty. If it is empty, throw an MXAPPLICATIONEXception. If there are attributes as part of the foreign key that don't allow null when this attribute is set, exception will be thrown if the value is empty.
        Specified by:
        validate in interface MboValueListener
        Overrides:
        validate in class MAXTableDomain
        Throws:
        MXException
        java.rmi.RemoteException
      • jpTree

        public void jpTree(MboRemote jobPlanMbo,
                           java.lang.String nestedJPNum,
                           java.lang.String nestedJpRevnum)
                    throws MXException,
                           java.rmi.RemoteException
        This method recursively checks to see if the nested Job Plan exists for all possible 'nestings'.
        Parameters:
        jpnum - The nested jobplan's nested parent jpnum up the hierarchy.
        nestedJPNum - The original nested Job Plan.
        nestedJpRevnum - The original nested Job Plan revision.
        Throws:
        MXException
        java.rmi.RemoteException
      • getList

        public MboSetRemote getList()
                             throws MXException,
                                    java.rmi.RemoteException
        The select value lookup list. If status is Active, show all Active jobplans If status is Draft, show all Active/Draft jobplans. If status in Inactive, show all jobplans regardless of status.
        Specified by:
        getList in interface MboValueListener
        Overrides:
        getList in class MAXTableDomain
        Throws:
        MXException
        java.rmi.RemoteException
      • setValueFromLookup

        public void setValueFromLookup(MboRemote sourceMbo)
                                throws MXException,
                                       java.rmi.RemoteException
        Set the value of the field and other fields which are part of the forein key from the sourceMbo to the Mbo that this mbo value belongs to. Which attribute to set from the lookup mbo to the target mbo is defined by setLookupKeyMapInOrder() method or the algorithm implmented in getMatchingAttrs().
        Specified by:
        setValueFromLookup in interface MboValueListener
        Overrides:
        setValueFromLookup in class MAXTableDomain
        Parameters:
        sourceMbo -
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        #getMatchingAttrs(), #setLookupKeyMapInOrder()
      • setValue

        public void setValue(java.lang.String attributeName,
                             java.lang.String val,
                             long accessModifier)
                      throws MXException,
                             java.rmi.RemoteException
        Sets a string value to an attribute identified by name within the current object and access to the value is controlled by the access modifier. In order to handle the condition where the passed attributeName contains a . notation(for example, ASSET.DESCRIPTION when the current object is WorkOrder ), this method first gets the correct object and then assigns the string value to the attribute of the right object. If the attributeName does not contain a ".", the current object is assumed to be the one to set the string value to the attribute specified. For synonym value attributes (string datatype), the value can be passed with the "!" prefix and suffix, and this function will substitute the appropriate translated external default value for the attribute. for example: "!WAPPR!" will update the field contents with the synonym value of WAPPR.
        Parameters:
        attributeName - The attribute name within the current object.
        val - The string value to set to the attribute.
        accessModifier - The bitwise flags such as NOACCESSCHECK, NOVALIDATION_AND_NOACTION, and DELAYVALIDATION.
        Throws:
        MXException - "Attribute {0} does not exist" exception will be thrown if the attribute does not exist in the object. "Field is read only" exception will be thrown if the attribute is READONLY and the accessModifier does not specify NOACCESSCHECK. "Invalid Data Type" exception will be thrown for datatype mismatch. For example, setting a string value of characters to an attribute which has datatype of YORN.
        java.rmi.RemoteException