psdi.app.jobplan

Class JobTaskSet

    • Constructor Detail

      • JobTaskSet

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

      • getMboInstance

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

        public boolean isValidTaskComponentKey(MboRemote mbo)
                                        throws MXException,
                                               java.rmi.RemoteException
        Using the combination of Task Number:Orgid:Siteid, validates that the component mbo can belong to at least one JobTask in this JobTaskSet.
        Specified by:
        isValidTaskComponentKey in interface JobTaskSetRemote
        Parameters:
        mbo - MboRemote
        Returns:
        true if mbo can belong to task in the set
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        psdi.app.jobplan.JobTaskSet#validateTaskComponentKey
      • isValidTaskComponentKey

        public boolean isValidTaskComponentKey(MboRemote mbo,
                                               java.lang.String orgidfield,
                                               java.lang.String siteidfield,
                                               java.lang.String jptaskfield)
                                        throws MXException,
                                               java.rmi.RemoteException
        Using the combination of Task Number:Orgid:Siteid, validates that the component mbo can belong to at least one JobTask in this JobTaskSet.
        Specified by:
        isValidTaskComponentKey in interface JobTaskSetRemote
        Parameters:
        mbo - MboRemote
        mbo - Org Id field name
        mbo - Site Id field name
        mbo - Job Plan Task field name
        Returns:
        true if mbo can belong to task in the set
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        JobTaskSet.isValidTaskComponentKey(psdi.mbo.MboRemote)
      • canAdd

        public void canAdd()
                    throws MXException
        If this object is being added to a newly created Job Plan then validate the Job Plan Key. Do not allow an object to be added to this set if the Job Plan key is invalid
        Overrides:
        canAdd in class MboSet
        Throws:
        MXException
      • reset

        public void reset()
                   throws MXException,
                          java.rmi.RemoteException
        Description copied from class: MboSet
        Clears the current contents of the collection. This will cause a requery to the database. Save changes you wish to keep before calling this method. All linked Mbos and MboSets are closed.
        Specified by:
        reset in interface MboSetRemote
        Overrides:
        reset in class MboSet
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        MboSet.save()
      • setWhere

        public void setWhere(java.lang.String whereClause)
        Description copied from class: MboSet
        Sets the SQL Where clause that will be used for the database select criteria for this object collection. The word "where" (any case) is optional in the first 5 characters of the whereClause parameter. The Where clause takes effect when the MboSet is reset and a record is fetched.
        Specified by:
        setWhere in interface MboSetRemote
        Overrides:
        setWhere in class MboSet
        Parameters:
        whereClause - The SQL string for the Where clause, with or without the "where" literal.
        See Also:
        MboSet.reset(), MboSet.getMbo()