psdi.app.pr

Class PRSet

    • Field Detail

      • current

        public boolean current
        Instance boolean variable to hold if the current Purchase Requisitions are to be retreived when showing user preferences.
      • history

        public boolean history
        Instance boolean variable to hold if the history Purchase Requisitions are to be retreived when showing user preferences.
    • Constructor Detail

    • Method Detail

      • getMboInstance

        protected Mbo getMboInstance(MboSet ms)
                              throws MXException,
                                     java.rmi.RemoteException
        Generates a new PR object.
        Specified by:
        getMboInstance in class MboSet
        Parameters:
        ms - to which the new instance of the PR object should belong.
        Returns:
        a new instance of the PR Object which is part of the MboSet that was passed in.
        Throws:
        MXException
        java.rmi.RemoteException
      • getHistory

        public boolean getHistory()
        Gets the histoy setting which was set by the user.
        Returns:
        The userpref setting for history purchase requisitions(true/false).
      • setHistory

        public void setHistory(boolean historyPRs)
                        throws MXException,
                               java.rmi.RemoteException
        Sets the userpref history setting.
        Specified by:
        setHistory in interface PRSetRemote
        Parameters:
        historyPRs - The userpref setting for history purchase requisitions.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        PRSet.setHistory(boolean)
      • setCurrent

        public void setCurrent(boolean currentPRs)
                        throws MXException,
                               java.rmi.RemoteException
        Sets the userpref current setting.
        Specified by:
        setCurrent in interface PRSetRemote
        Parameters:
        currentPRs - The userpref setting for current purchase requisitions.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        PRSet.setCurrent(boolean)
      • getCurrent

        public boolean getCurrent()
                           throws MXException,
                                  java.rmi.RemoteException
        Gets the current setting which was set by the user.
        Returns:
        The userpref setting for current purchase requisitions(true/false).
        Throws:
        MXException
        java.rmi.RemoteException
      • getUserPrefWhere

        public java.lang.String getUserPrefWhere()
        Overrides 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
        Returns:
        The userpref where clause.
      • save

        public void save()
                  throws MXException,
                         java.rmi.RemoteException
        Description copied from class: MboSet
        Sends changes to the database for all objects in the collection. In addition to saving the members in this set, all Mbos owned by members of this set are also saved. If all goes well, commit is called, otherwise rollback is called. Once successfully saved, this MboSet is reset, ready for a requery.
        Specified by:
        save in interface MboSetRemote
        Overrides:
        save in class MboSet
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        MboSet.reset()