psdi.webclient.beans.workman

Class AMManageQueriesBean

  • All Implemented Interfaces:
    java.util.EventListener, javax.servlet.http.HttpSessionBindingListener, DataBeanListener


    public class AMManageQueriesBean
    extends DataBean
    • Constructor Detail

      • AMManageQueriesBean

        public AMManageQueriesBean()
    • Method Detail

      • getMboSetRemote

        public MboSetRemote getMboSetRemote()
                                     throws MXException,
                                            java.rmi.RemoteException
        This is identical to getMboSetRemote in ManageQueriesBean except that instead of fetching the ID of the current app, we pass the getQueriesForUser method the hard-coded name of the Labor app, because it's those queries that we wish to retrieve.
        Overrides:
        getMboSetRemote in class DataBean
        Throws:
        MXException
        java.rmi.RemoteException
      • selectrecord

        public int selectrecord()
                         throws MXException,
                                java.rmi.RemoteException
        In general structure this is similar to selectrecord in ManageQueriesBean except that AMLaborTableBean (the databean of the Labor List table) is being operated on rather than the results bean or the AppBean. However, a simple call to the useStoredQuery method wouldn't work because we retrieve queries created in the Labor app but the mboset bound to the table is a LaborCraftRateSet. It is thus necessary to intervene in the middle of the program flow to alter the query. All the code within the IF block is in lieu of a useStoredQuery call. The regular program flow is to call DataBean.useStoredQuery() which in turn calls MboSet.useStoredQuery(). Our intervention comes in the middle of the MboSet actions. All the code from both these methods has been copied or mimicked in this method, with the source of each block labeled for future reference.
        Overrides:
        selectrecord in class DataBean
        Throws:
        MXException
        java.rmi.RemoteException