psdi.app.labor

Class AttendanceSet

    • Field Detail

      • allDates

        public boolean allDates
        Boolean to store the userpref settings. To be set at the startup of the application by using the method: setAllDates().
      • startDate

        public java.util.Date startDate
        The user sets the start date and the end date. They are not stored in the database.
      • endDate

        public java.util.Date endDate
    • Method Detail

      • addToUserPrefWhere

        public java.lang.String addToUserPrefWhere()
                                            throws MXException,
                                                   java.rmi.RemoteException
        Add this where clause to the MboSet's getUserPrefWhere()
        Returns:
        The where clause.
        Throws:
        MXException
        java.rmi.RemoteException
      • setAllDates

        public void setAllDates(boolean allDatesAtt)
                         throws MXException,
                                java.rmi.RemoteException
        Set the userpref alldates setting.
        Specified by:
        setAllDates in interface AttendanceSetRemote
        Parameters:
        allDatesAtt - The userpref setting for alldates i.e. all the existing labor transactions.
        Throws:
        MXException
        java.rmi.RemoteException
      • setStartDate

        public void setStartDate(java.util.Date startDateAtt)
                          throws MXException,
                                 java.rmi.RemoteException
        Set by the user. If clearing the start date pass null as parameter.
        Specified by:
        setStartDate in interface AttendanceSetRemote
        Parameters:
        startDateAtt - The start date to be set by the user.
        Throws:
        MXException
        java.rmi.RemoteException
      • setEndDate

        public void setEndDate(java.util.Date endDateAtt)
                        throws MXException,
                               java.rmi.RemoteException
        Set by the user. If clearing the end date pass null as parameter.
        Specified by:
        setEndDate in interface AttendanceSetRemote
        Parameters:
        endDateAtt - The end date to be set by the user.
        Throws:
        MXException
        java.rmi.RemoteException
      • getAllDates

        public boolean getAllDates()
                            throws MXException,
                                   java.rmi.RemoteException
        Get the alldates setting which was set at the startup of the application or later changed by the user.
        Specified by:
        getAllDates in interface AttendanceSetRemote
        Throws:
        MXException
        java.rmi.RemoteException
      • getUserPrefWhere

        public java.lang.String getUserPrefWhere()
        Override the MboSet getUserPrefWhere() to return a userpref where clause which is appended to th existing whereClause. This is called by the framework to allow any app specific modifications to the whereClause.
        Overrides:
        getUserPrefWhere in class MboSet
        Throws:
        MXException
        java.rmi.RemoteException
      • addDates

        public java.util.Date addDates(java.util.Date date,
                                       int days)
        Add or minus days from the given date.
      • canAdd

        public void canAdd()
                    throws MXException
        Description copied from class: MboSet
        Can an object be added to the collection ? This is usually overriden in the specific mboset
        Overrides:
        canAdd in class MboSet
        Throws:
        MXException