psdi.app.pm

Class PMSeasons

  • All Implemented Interfaces:
    java.rmi.Remote, PMSeasonsRemote, MboConstants, MboRemote, MaxRemoteProxy


    public class PMSeasons
    extends Mbo
    implements PMSeasonsRemote
    MBO object to represent PMSeasons. See the PM package description for details.

    This is a site level object.

    The key attributes for this object are SiteId, Pmnum, Endday, Endmonth, StartDay and StartMonth.

    The attributes in this object are as follows:

    Attribute NameDescription
    EndDayIdentifies the season end day of a PM.
    EndMonthIdentifies the season end month of a PM.
    StartDayIdentifies the season start day of a PM.
    StartMonthIdentifies the season start month of a PM
    OrgIdIdentifier of the organization for this PM.
    PMNumIdentifier for the Preventive Maintenance record.
    SiteIdIdentifier of the site for the PM.

    • Constructor Detail

      • PMSeasons

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

      • add

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

        public void appValidate()
                         throws MXException,
                                java.rmi.RemoteException
        Validates the PMSeasons
        Overrides:
        appValidate in class Mbo
        Throws:
        MXException - Thrown if all seasonal fields hasn't specified
        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("PM", "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 PMSeasons to the target PMSeasons.
        1. pmnum
        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
      • canDelete

        public void canDelete()
                       throws MXException,
                              java.rmi.RemoteException
        Method that checks whether a PMSeasons can be deleted or not.
        Throws interactive message in case of UI to delete the PM Hierarchy forecast if the seasons are deleted
        Overrides:
        canDelete in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • save

        public void save()
                  throws MXException,
                         java.rmi.RemoteException
        Description copied from class: Mbo
        Save the object and other linked objects. Subclasses can code their save() logic to include any appropriate updates to other linked objects and call super.save().
        Overrides:
        save in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException