psdi.app.configure

Class MaxSysKeys

  • java.lang.Object
  • All Implemented Interfaces:
    java.rmi.Remote, MaxSysKeysRemote, MboConstants, MboRemote, MaxRemoteProxy


    public class MaxSysKeys
    extends Mbo
    implements MaxSysKeysRemote
    Mbo object to represent MaxSysKeys. This stores with column names within an index. Child of MaxSysIndexes.

    See Configure Package description.

    This is a system level object.

    The key attributes for this object are IXName and ColName.

    The attributes in this object are as follows:

    Attribute NameDescription
    AscendingNon-persistent attribute; boolean (YORN) form for "Ordering". True indicates an ascending sort, False a descending sort. Also see persistent attribute "Ordering".
    ChangedUsed in the configuration process. Usually equals No. The values of Changed can be as follows (they are set via the business object, not directly via the UI).
    • N = no changes
    • D = drop index
    • Y = new (or changed) index
    ColNameColumn Name.
    ColSeqSequence of this column within the index.
    IXNameIndex name. Foreign key to MaxSysIndexes.
    Ordering"A" (ascending) or "D" (descending). Also see non-persistent attribute "Ascending".
    ViewChangedNon-persistent attribute. Will equal "Add", "Change", "Delete", or null, depending on the value of Changed. For display in the UI.
    • Constructor Detail

      • MaxSysKeys

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

      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Add a mbo, defaulting the attributes shown below.
        Attribute NameAttribute Value
        AscendingTrue
        ChangedY
        ColSeqmax for this set + 1
        IXNameName from owner (MaxSysIndexes)
        OrderingA (ascending)
        ViewChangedvalue of MaxSysIndexesSet ADD
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • canDelete

        public void canDelete()
                       throws MXException,
                              java.rmi.RemoteException
        Index (owner) must be marked for deletion. Index/key must be not already marked for deletion. Then call delete.
        Overrides:
        canDelete in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • delete

        public void delete(long accessModifier)
                    throws MXException,
                           java.rmi.RemoteException
        Set the value of "changed" on maxsyskeys to indicate deletion. This does NOT actually "delete" the Mbo in the usual manner. It is fully deleted only after running the Configuration process.

        However, if the accessModifier equals DBCONFIG then super is called. The DBCONFIG flag is used only internally from MaxTablesCfg, never from the UI framework.

        Specified by:
        delete in interface MboRemote
        Overrides:
        delete in class Mbo
        Parameters:
        accessModifier - See Mbo delete.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        Mbo.delete(long)
      • canUndelete

        public void canUndelete()
                         throws MXException,
                                java.rmi.RemoteException
        To undelete, index/key must be marked for deletion via the "changed" attribute. Then call undelete.
        Throws:
        MXException
        java.rmi.RemoteException
      • undelete

        public void undelete()
                      throws MXException,
                             java.rmi.RemoteException
        Set the value of "changed" to indicate undeletion for maxsyskeys. This does NOT "undelete" the Mbo in the usual manner.
        Specified by:
        undelete in interface MboRemote
        Overrides:
        undelete in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • appValidate

        public void appValidate()
                         throws MXException,
                                java.rmi.RemoteException
        Application validation routine. Evaluate attribute "ascending" to set value for "ordering" (True --> "A", False --> "D").
        Overrides:
        appValidate in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • toBeSaved

        public boolean toBeSaved()
                          throws java.rmi.RemoteException
        Check whether any of the non-persistent attributes have been modified.
        Specified by:
        toBeSaved in interface MboRemote
        Overrides:
        toBeSaved in class Mbo
        Throws:
        java.rmi.RemoteException