psdi.app.pm

Class WogenSet

  • All Implemented Interfaces:
    java.rmi.Remote, WogenSetRemote, MboAccessInterface, MboConstants, MboSetRemote, MaxRemoteProxy, Transactable, FixedLoggerNames, FixedLoggers


    public class WogenSet
    extends MboSet
    implements WogenSetRemote
    Represents the set of Wogen records. This table is used to store the results from the calculateWork methods in PM. The MS-Project interface uses this table to populate projected work schedules. This table has selected attributes from the work order object. It also has "scratch" attributes of various data types that are open for use after calculateWork completes.
    Finally, there are three attributes which identify aspects of the Wogen records. The RunID attribute identifies the WOGen which were created in the same run. RunDate is the date of the run. RunOrder gives the order of when the work order would have been created. The RunOrder and Wonum attributes have the same values except RunOrder will always be an integer while Wonum is usually a string, based on the client's database setup. RunDate can be used to delete old runs that didn't get deleted when they should have.
    See Also:
    psdi.app.pm.PM#calculateWork(boolean,int)
    • Method Detail

      • getMboInstance

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

        public void setupWogen(Wogen mbo)
                        throws MXException,
                               java.rmi.RemoteException
        Called by the Wogen.add() method to set the runID, runDate, and wonum attributes. This is not an external method.
        Parameters:
        mbo -
        Throws:
        MXException
        java.rmi.RemoteException
      • giveRun

        public void giveRun()
                     throws MXException,
                            java.rmi.RemoteException
        This method is called to return all work order information from the PM Generation in the order of the work order creation. This method is called on the set before it is returned by PM­calculateWork.
        Specified by:
        giveRun in interface WogenSetRemote
        Throws:
        MXException
        java.rmi.RemoteException
      • dispose

        public void dispose()
                     throws MXException,
                            java.rmi.RemoteException
        Use this method when you no longer need the information from this set. The records of the set will be deleted from the database.
        Specified by:
        dispose in interface WogenSetRemote
        Throws:
        MXException
        java.rmi.RemoteException