psdi.app.masterpm

Class MasterPMSeasons

  • java.lang.Object
  • All Implemented Interfaces:
    java.rmi.Remote, MasterPMSeasonsRemote, MboConstants, MboRemote, MaxRemoteProxy


    public class MasterPMSeasons
    extends Mbo
    implements MasterPMSeasonsRemote
    MBO object to represent MasterPMSeasons. See the MasterPM package description for details.

    The key attributes for this object are masterPmnum,EndDay,EndMonth,StartDay and StartMonth

    Attribute NameDescription
    EndDay End day of the active Season
    EndMonthEnd month of the active Season
    MasterPMNumIdentifier for the MasterPM record.
    StartDayStart day of the active Season
    StartMonthStart month of the active Season

    • Constructor Detail

      • MasterPMSeasons

        public MasterPMSeasons(MboSet ms)
                        throws MXException,
                               java.rmi.RemoteException
        Construct the MasterPMSeasons object
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        sets default values for the MasterPMSeasons object
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • validDayMonth

        public void validDayMonth(int newDay,
                                  java.lang.String month)
                           throws MXException,
                                  java.rmi.RemoteException
        checks the entered day is a valid day or not in a given month
        Parameters:
        day - The day to be checked
        month - The month in which the day falls.
        Throws:
        MXException - If not a valid day then MXApplicationException ("MasterPM", "InvalidDay")
        java.rmi.RemoteException
      • skipCopyField

        protected boolean skipCopyField(MboValueInfo mvi)
                                 throws java.rmi.RemoteException,
                                        MXException
        This method overrides the skipCopyField() in the Mbo. This method takes the MboValueInfo as its parameter to see if this field needs to be copied or skipped.If this field does not need to be copied, it returns true. The following fields donot get copied from the source MasterPMSeasons to the target MasterPMSeasons.
        1. masterpmnum
        Overrides:
        skipCopyField in class Mbo
        Parameters:
        mvi - The MboValueInfo object of the MboValue that needs to be copied.
        Returns:
        True,if the field does not need to be copied.In all other cases return false.
        Throws:
        MXException
        java.rmi.RemoteException