psdi.app.system

Class MaxTableDomain

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


    public class MaxTableDomain
    extends DomainValueMbo
    implements MaxTableDomainRemote
    Mbo object to represent MaxTableDomain.

    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 be specified by a reference table(s), then the domain type will be MAXTABLE (from valuelist DOMTYPE) and each validation table will be specified in MAXTABLEDOMAIN. A listener is automatically attached to the Mbo instance to perform the appropriate field validations.

    Internally within PSDI, the preferred way to validate against a reference table is by use of a field class validation (maxsyscolumns2.customclassname). The maxsyscolumns2.domainid is generally for use by customers.

    This is a system level object.

    The key attribute for this object is DomainID.

    The attributes in this object are as follows:

    Attribute NameDescription
    DomainIDForeign key to MaxDomain.
    ErrorAccessKeyThe error message key (optional).
    ErrorResourceBundleThe error message context (optional).
    ListWhereClauseThe Where clause used for the validation list (optional).
    TbNameThe name of the reference table.
    ValidtnWhereClauseThe Where clause used for validation, for example owner = :username.
    See Also:
    MAXTableDomain, MAXTABLEDomainInfo, MaximoDD.loadMboValuesInfo(java.sql.Connection), Mbo.generateMboValueInstance(psdi.mbo.MboValueInfo)
    • Constructor Detail

      • MaxTableDomain

        public MaxTableDomain(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
      • 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