psdi.app.system

Class NUMValue

  • All Implemented Interfaces:
    java.rmi.Remote, NUMValueRemote, MboConstants, MboRemote, MaxRemoteProxy


    public class NUMValue
    extends DomainValueMbo
    implements NUMValueRemote
    Mbo object to represent a value in a numeric value set, for table NUMDOMAINVALUE.

    One of the ways that field validation can be attached to an attribute at a customer site is via domains. The maxsyscolumns2.domainid would be set to a value that exists in the MaxDomain table. If the domain is to include specific numeric values, then the domain type will be NUMERIC (from valuelist DOMTYPE) and each valid value for the domain will be specified in NUMDOMAINVALUE. A listener is automatically attached to the Mbo instance to perform the appropriate field validations.

    The maxsyscolumns2.domainid is generally for use by customers.

    This is a system level object.

    The key attributes for this object are DomainID and NUMValue.

    The attributes in this object are as follows:

    Attribute NameDescription
    DomainIDForeign key to MaxDomain.
    NUMValueA valid numeric value within this domain.
    See Also:
    NumericDomain, NUMERICDomainInfo, MaximoDD.loadMboValuesInfo(java.sql.Connection), Mbo.generateMboValueInstance(psdi.mbo.MboValueInfo)
    • Constructor Detail

      • NUMValue

        public NUMValue(MboSet ms)
                 throws java.rmi.RemoteException
        Throws:
        java.rmi.RemoteException
    • Method Detail

      • init

        public void init()
                  throws MXException
        Description copied from class: Mbo
        Called by the framework when the Mbo has been constructed and the MboValues have been initialized. This can be overridden by the programmer to provide any custom initialization they would like to do.
        Overrides:
        init in class Mbo
        Throws:
        MXException
      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Add a mbo, defaulting the attributes shown below.
        Attribute NameAttribute Value
        DomainIDOwner's DomainID
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • appValidate

        public void appValidate()
                         throws MXException,
                                java.rmi.RemoteException
        Description copied from class: Mbo
        Pre-save validation method. Programmer can override with specific rules.
        Overrides:
        appValidate in class DomainValueMbo
        Throws:
        MXException
        java.rmi.RemoteException
      • canDelete

        public void canDelete()
                       throws MXException,
                              java.rmi.RemoteException
        Description copied from class: Mbo
        Can the object be deleted ? This is object specific and should be overridden.
        Overrides:
        canDelete in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • delete

        public void delete(long accessModifier)
                    throws MXException,
                           java.rmi.RemoteException
        Description copied from class: Mbo
        Mark the object to be deleted depending on the access modifier. This will usually be overridden in the subclass of Mbo as there may be application specific rules as to if and when an object can be deleted. Object is not actually deleted in the database until save() is called. This method will also mark all associated Long Description and Translation Mbos for deletion.
        Specified by:
        delete in interface MboRemote
        Overrides:
        delete in class Mbo
        Parameters:
        accessModifier - The bitwise flag specified to determine if certain normal security checks are to be bypassed for this delete request. For example: if the accessModifer is NOACCESSCHECK, then the check for the object's NODELETE flag and the call to the object's canDelete() method will not be performed. If the accessModifer is NONE, then all the access checks are performed before this object is marked delete.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        Mbo.delete(long)
      • undelete

        public void undelete()
                      throws MXException,
                             java.rmi.RemoteException
        Description copied from class: Mbo
        Unmark the Mbo for deletion. Can only be called after a delete() and before the save() has been performed. This method will also unmark associated Long Description and Translation Mbos.
        Specified by:
        undelete in interface MboRemote
        Overrides:
        undelete in class DomainValueMbo
        Throws:
        MXException
        java.rmi.RemoteException
      • genValueId

        public static java.lang.String genValueId(MboRemote mbo)
        Generate the valueid for numericdomain.