psdi.app.rsconfig.virtual

Class RSConfigSelectSet

    • Field Detail

      • LOGGER

        public static final MXLogger LOGGER
      • currentAppName

        protected java.lang.String currentAppName
    • Constructor Detail

      • RSConfigSelectSet

        public RSConfigSelectSet(MboServerInterface ms)
                          throws MXException,
                                 java.rmi.RemoteException
        Construct the set
        Parameters:
        ms - The MboServerInterface
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • getMboInstance

        protected Mbo getMboInstance(MboSet ms)
                              throws MXException,
                                     java.rmi.RemoteException
        Description copied from class: MboSet
        Factory to create the business objects This must be overridden in derived class
        Specified by:
        getMboInstance in class MboSet
        Throws:
        MXException
        java.rmi.RemoteException
      • reset

        public void reset()
                   throws MXException,
                          java.rmi.RemoteException
        Description copied from class: MboSet
        Clears the current contents of the collection. This will cause a requery to the database. Save changes you wish to keep before calling this method. All linked Mbos and MboSets are closed.
        Specified by:
        reset in interface MboSetRemote
        Overrides:
        reset in class MboSet
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        MboSet.save()
      • isNewAppSelected

        public boolean isNewAppSelected()
                                 throws MXException,
                                        java.rmi.RemoteException
        return True if the new selected application name is selected and different from the application name that currently saved.
        Specified by:
        isNewAppSelected in interface RSConfigSelectSetRemote
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • reloadDataFromRSConfig

        protected void reloadDataFromRSConfig()
                                       throws MXException,
                                              java.rmi.RemoteException
        Reload selection from the database
        Throws:
        MXException
        java.rmi.RemoteException
      • syncForSave

        public void syncForSave()
                         throws MXException,
                                java.rmi.RemoteException
        Save time - Sync up with RSCONFIG set If new app is selected, copy all attributes from RESULTSETCOLS to RSCONFIG Set display=1 for selected attributes. Set display=0 for unselected attributes. For related attribute, if selected, add new row. If unselected, remove the row.
        Specified by:
        syncForSave in interface RSConfigSelectSetRemote
        Throws:
        MXException
        java.rmi.RemoteException
      • syncGraphAndColorAttr

        protected void syncGraphAndColorAttr(MboRemote layout,
                                             MboSetRemote rsconfigSet)
                                      throws MXException,
                                             java.rmi.RemoteException
        Sync data from nonpersistent attribute rsgraphattr, rsconditionattr to rsconfig set. rsgraphattr, rsconditionattr column in rsconfig must have display=1, otherwise clear non-persistent column in layout.
        Throws:
        MXException
        java.rmi.RemoteException
      • addAttributeAtEnd

        public MboRemote addAttributeAtEnd(MboRemote rsconfig)
                                    throws MXException,
                                           java.rmi.RemoteException
        add attribute at the end
        Parameters:
        rsconfigMbo - - RSCONFIG mbo
        Returns:
        newly added attribute
        Throws:
        MXException
        java.rmi.RemoteException
      • selectAttribute

        public MboRemote selectAttribute(MboRemote maxAttrMbo,
                                         java.lang.String relationPath,
                                         MboRemote currentRelatedObject)
                                  throws MXException,
                                         java.rmi.RemoteException
        select attribute
        Specified by:
        selectAttribute in interface RSConfigSelectSetRemote
        Parameters:
        maxAttrMbo - - MAXATTRIBUTE mbo
        relationPath - - use when the attribute is from related MBO, for example, LOCATION.DESCRIPTION (path="LOCATION.")
        currentRelatedObject - - current selected related or main object
        Throws:
        MXException
        java.rmi.RemoteException
      • unSelectAttribute

        public void unSelectAttribute(int row)
                               throws MXException,
                                      java.rmi.RemoteException
        unselect attribute - remove from non-persistent set
        Specified by:
        unSelectAttribute in interface RSConfigSelectSetRemote
        Parameters:
        row - - index of current unselect row
        Throws:
        MXException
        java.rmi.RemoteException
      • getMaxColumnOrder

        protected int getMaxColumnOrder()
                                 throws MXException,
                                        java.rmi.RemoteException
        Find max column order for the mboSet, use to calculate the next sequence order
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • getStringSelectColumnName

        public java.lang.String getStringSelectColumnName()
                                                   throws MXException,
                                                          java.rmi.RemoteException
        Concatenate all column names into a String, separated them by comma.
        Specified by:
        getStringSelectColumnName in interface RSConfigSelectSetRemote
        Returns:
        Return a String concatenate column name separated by comma.
        Throws:
        MXException
        java.rmi.RemoteException