psdi.app.configure

Class MaxAttribute

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


    public class MaxAttribute
    extends Mbo
    implements MaxAttributeRemote
    Mbo object to represent MaxAttribute.

    See Configure Package description.

    This is a system level object.

    The key attributes for this object are ObjectName, AttributeName.

    The attributes in this object are as follows:

    Attribute NameDescription
    AliasAlias for Attribute Name.
    AttributeNameAttribute Name.
    AttributeNoThe attribute number (sequential within this ObjectName).
    AutoKeyNameIf this attribute supports autokeying, foreign key to AutoKey, which is used for assigning the attribute's value. A value for AutoKeyName is allowed only if CanAutoNum is True.
    CanAutoNumIndicates whether this attribute supports autokeying. For most attributes, this will be False. CanAutoNum is set to True by Maximo and cannot be changed by the user. The CanAutoNum attribute, the AutoKeyName attribute, and the AutoKey row support autokeying; they do not in themselves indicate that autokeying is in effect for an attribute. Autokeying in put into effect by setting the attribute's DefaultValue to &AUTOKEY&.
    ClassNameJava class for field validation (if any). For example, psdi.app.calendar.FldCalNum. For details on the listener, see Mbo generateMboValueInstance.
    ColumnNameIf this is a persistent attribute for a table, then EntityName indicates the table name (TableName) and ColumnName indicates the column name. If this is a persistent attribute for a view, then EntityName + ColumnName refer to the row in MaxViewColumn (ViewName + ViewColumnName). If this is a non-persistent attribute, then this should be null.
    DefaultValueDefaultValue indicates the default value for that column when inserting a row. DefaultValue has some reserved words, as follows (also see Mbo setDefaultValues).
    • &AUTOKEY& indicates that autokeying is in effect for this attribute. This can be set only if the attribute supports autokeying (CanAutoNum is True), and AutoKeyName is non-null -- described above.
    • &SYSDATE& indicates the current system date.
    • &USERNAME& indicates the current user name (userid).
    • &APPNAME& indicates the current application (getParentApp).
    • &MBONAME& indicates the current Mbo name (getName).
    • &OWNERNAME& indicates the name of the Owner mbo (if there is one).
    • &PERSONID& indicates the current person ID.
    DomainIDFor field validations not defined in a custom field validation class (ClassName). For details on the listener, see Mbo generateMboValueInstance. For information on domains, see MaxDomain. See also System Package description.
    EauditEnabledIdentifies whether this attribute participates in EAUDIT logic. Also see MaxObject (EAuditEnabled and EAuditFilter attributes) and MaxTable (EAuditTbname attribute).
    EntityNameIf this is a persistent attribute for a table, then EntityName indicates the table name (TableName) and ColumnName indicates the column name. If this is a persistent attribute for a view, then EntityName + ColumnName refer to the row in MaxViewColumn (ViewName + ViewColumnName). If this is a non-persistent attribute, then this should be null.
    EsigEnabledIdentifies whether this attribute participates in ESIG logic.
    HandleColumnNameUsed for text search in DB2. When a column's searchtype is TEXT, the column will have an associated "handle" column, whose name is stored here.
    IsLDOwnerYes if this column "owns" a long description. For example, many Description columns are associated with a long description, so the Description has IsLDOwner = Yes. See System Package description.
    IsPositiveYes if this is a numeric column that cannot be negative.
    LengthThe column length.
    MaxTypeThe Maximo data type. See valuelist MAXTYPE. This is a refinement of the native db's datatype.
    MLInUseIndicates whether multilanguage is currently being used for this attribute. This can be set to Yes only if MLSupported is Yes. When MLInUse is Yes, this table will have an associated language table which will contain an attribute with the translated values.
    MLSupportedIndicates whether multilanguage functionality is supported for this attribute. This value is set by IBM Corp. and cannot be changed by the user, except for user-defined attributes. Also see MaxTable LangTableName, LangColumnName, IsLangTable.
    MustBeYes if the MaxType, Length, and Scale of this column are not allowed to be changed. This information is used in the configuration UI.
    ObjectNameObject Name. Foreign key to MaxObject.
    PersistentIndicates whether the data in this column is stored on the database. A persistent object may contain both persistent and non-persistent attributes. If the object is non-persistent then all its attributes must be non-persistent.
    PrimaryKeyColSeqIf this column participates in a primary (unique) key, this identifies the sequence of the column within that key. This should correspond to the value of "colseq" in MaxSysKeys where the index is unique. If more than one unique index exists for the table, only one should be used for the purposes of PrimaryKeyColSeq. This is used by the Java framework's field validations to ensure the uniqueness of new data.

    If any column within a given index allows nulls, then none of the columns for that index should be assigned a value for primarykeycolseq (this rule is expected to change). Also, if the index includes a column having a datetime datatype, then none of the columns for that index should be assigned a value for primarykeycolseq.

    For details on the listener, see Mbo generateMboValueInstance.

    RemarksFreeform description of the column.
    RequiredYes if a value must be entered in this column (i.e. the column is not nullable).
    SameAsAttribute, SameAsObjectSometimes a master column controls the datatype, length and scale of various related child columns. When this is the case, the child columns will identify the master column via SameAsTable and SameAsColumn. If the master column is reconfigured, then all child columns are automatically reconfigured to have the same MaxType, Length and Scale. For example, many tables contain a Location column that is supposed to have the same type, length and scale as in the Locations table. These children will specify SameAsTable = Locations and SameAsColumn = Location.
    ScaleThe column scale (if numeric).
    SearchTypeType of search allowed for this attribute. Values are from domainid SEARCHTYPE:
    • NONE indicates that no searching is allowed. Typically, all non-persistent attributes other than long descriptions will have searchtype NONE.
    • EXACT indicates that a search is allowed for an exact match on the entire value of the field. All attributes in the primary key, or that are "sameas" an attribute that's in a primary key, must have searchtype EXACT. Also, all attributes that have datetime, numeric, or YORN maxtypes must have searchtype EXACT.
    • WILDCARD indicates that an alphanumeric wildcard search is allowed. This is allowed only if the attribute and its "sameas" attribute (if any) are not in a primary key.
    • TEXT indicates that full text search is allowed. This value is permitted only when the table has been flagged for text search (MaxTable TextSearchEnabled), or this is a long description attribute. The syntax for text search depends on the native database platform. Oracle calls this facility "Oracle Text," SqlServer calls it "full-text indexing," and DB2 calls it "Text Extender." (Also see MaxAttribute HandleColumnName, and MaxSysIndexes TextSearch.)
    TitleShort description of the attribute. May be dynamically displayed on UIs and in error messages.
    UserDefinedIndicates whether this column was added by a user via the Config application. This is False for Maximo columns.
    • Constructor Detail

      • MaxAttribute

        public MaxAttribute(MboSet ms)
                     throws java.rmi.RemoteException
        Construct the MaxAttribute object
        Throws:
        java.rmi.RemoteException