psdi.app.pm.virtual

Class PMChangeStatusSet

    • Constructor Detail

      • PMChangeStatusSet

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

      • getMboInstance

        protected Mbo getMboInstance(MboSet ms)
                              throws MXException,
                                     java.rmi.RemoteException
        Factory method to create an PMChangeStatus object.
        Specified by:
        getMboInstance in class MboSet
        Parameters:
        ms - The PMChangeStatusSet.
        Returns:
        an PMChangeStatusMbo object.
        Throws:
        MXException
        java.rmi.RemoteException
      • getMboIntoSet

        protected MboSetRemote getMboIntoSet(MboRemote mbo)
                                      throws MXException,
                                             java.rmi.RemoteException
        This method returns the select Mbo in a set by itself. This should be a framework method but for now it's not. The MboSet should not be linked to any other set as it will be used to change status and will be saved. An Example:
        MboSetRemote changePMSet = getMboServer().getMboSet("PM", getUserInfo()) ; SqlFormat sqf = new SqlFormat(mbo, "pmnum = :pmnum") ; changePMSet.setWhere(sqf.format()) return changePMSet ;
        Specified by:
        getMboIntoSet in class ChangeStatusSet
        Throws:
        MXException
        java.rmi.RemoteException
      • changeStatusOnSet

        protected void changeStatusOnSet(MboSetRemote csSet,
                                         Mbo param)
                                  throws MXException,
                                         java.rmi.RemoteException
        Changes the status of all members of a set. Note that if doing a getMbo(int) on the set causes an exception, the exception is simply passed up the call chain.
        Overrides:
        changeStatusOnSet in class ChangeStatusSet
        Throws:
        MXException
        java.rmi.RemoteException