public class MboValueInfo extends CachedObjectPointer
A business object attribute can have a validation domain associated with it to validate the attribute value being set. The validation domains are of different types namely Alpha numeric nalue domain, Cross over value domain, Business object value domain, Numeric value domain, Numeric range value domain and Value list value domain. Each validation domain performs validation differently on a completely different set of data.
A business object attribute can have a validation class associated
with it to perform validation through Java code. The validation class
must have a constructor that takes a MboValue
as a parameter
and must implement MboValueListener
interface. An object
of this class is created on demand for every attribue value that has been
accessed. This class would have validation preference over the domain
validations that are setup.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CACHE_NAME |
static int |
EXACTSEARCH
Flag to indicate EXACT search type
|
static int |
NONESEARCH
Flag to indicate NONE search type
|
static int |
TEXTSEARCH
Flag to indicate TEXT search type
|
static int |
WILDCARDSEARCH
Flag to indicate WILDACRD search type
|
Constructor and Description |
---|
MboValueInfo() |
MboValueInfo(long uniqueId) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAlias()
Returns the alias name of this attribute.
|
java.lang.String |
getAttributeName()
Returns name of this attribute.
|
int |
getAttributeNumber()
Returns the unique number assigned to this attribute.
|
java.lang.String |
getAutoKeyName()
Returns the auto key name that should be used for this attribute
for generating auto key values.
|
java.lang.String |
getCacheName() |
java.lang.String |
getClassName()
Returns the Java class name with a fully qualified package name
that provides validation logic to this attribute value.
|
java.lang.String |
getComplexexpression() |
java.lang.Class |
getCustomClass()
Return the class to be used for attribute value validation.
|
java.lang.String |
getDefaultValue()
Returns the default value that should be assigned to this attribute
value when a business object is created.
|
java.lang.String |
getDomainId()
Returns the domain identifier used for validating this attribute
value.
|
DomainInfo |
getDomainInfo()
Returns domain information associated with this attribute.
|
java.lang.String |
getDomainName()
Returns the name of the validation domain.
|
java.lang.String |
getEntityColumnName()
Returns the column name used for fetching the value of
this attribute from the database.
|
java.lang.String |
getEntityName()
Returns the database table or view name used for fetching the
value for this attribute from database.
|
int |
getExtendedAttributeNumber()
Returns the unique number assigned to this attribute
(Note that this number is different from the attribute number).
|
int |
getFetchAttributeNumber()
Returns the unique number assigned to this attribute
(Note that this number is different from the attribute number).
|
java.lang.String |
getHandleColumnName()
Gets Handle Column Name
|
int |
getLength()
Returns the maximum allowed size of this attribute in bytes.
|
java.lang.String |
getMaxType()
Returns the maximo supported data type of this attribute.
|
java.lang.Class |
getMboValueClass()
Returns the class used for the data type.
|
java.lang.String |
getName()
Returns the name of this attribute.
|
java.lang.String |
getObjectName()
Returns the name of the business object that has this
attribute.
|
int |
getPersistentAttributeNumber()
Returns the unique number assigned to this attribute
(Note that this number is different from the attribute number).
|
int |
getPrimaryKeyColSeq()
Returns the sequence number to indicate the primary key order
(If this number is greater than 0, it indicates that this attribute
is part of the primary key).
|
int |
getPrimaryKeyColSequence()
Returns the sequence number to indicate the primary key order
(If this number is greater than 0, it indicates that this attribute
is part of the primary key).
|
java.lang.String |
getSameAsAttribute()
Returns the attribute name that has the same attribute
information as this attribute.
|
java.lang.String |
getSameAsObject()
Returns the object name that has the same attribute
information as this attribute.
|
int |
getScale()
Returns the scale value that indicates the number of
decimal places that this attribute value must use.
|
java.lang.String |
getSearchType()
returns the search type.
|
int |
getSearchTypeAsInt()
Returns search type as int
|
java.lang.String |
getSkipCopyCondition()
Returns the SkipCopy condition for this attribute.
|
boolean |
getSkipCopyFlag()
Returns the SkipCopy flag for this attribute.
|
java.lang.String |
getTextdirection() |
java.lang.String |
getTitle()
Returns the title name used for this attribute.
|
java.lang.String |
getType()
Return the maximo data type of this attribute as a string.
|
int |
getTypeAsInt()
Return the maximo data type of this attribute as int value.
|
psdi.mbo.MboValueInfoBase |
getTypedReference() |
boolean |
hasLongDescription()
Returns whether this attribute can have long description or not.
|
boolean |
isContentAttribute()
Return whether it is content attribute
|
boolean |
isEAuditEnabled()
Returns whether this attribute is enabled for electronic audit
or not.
|
boolean |
isESigEnabled()
Returns whether this attribute is enabled for electronic signature
or not.
|
boolean |
isExtended()
Returns whether this attribute is an extended attribute or not.
|
boolean |
isFetchAttribute()
Returns whether this attribute value is fetched from database
or not (A persistent attribute value is stored in the database or
fetched from database always).
|
boolean |
isKey()
Returns whether this attribue is used as a primary key or not.
|
boolean |
isLDOwner()
Returns whether this attribute can have long description
or not.
|
boolean |
isLocalizable() |
boolean |
isMLInUse()
Returns whether multi-language is actually being used for this attribute.
|
boolean |
isMLSupported()
Return whether the multi-language is supported.
|
boolean |
isNumeric()
Returns whether this attribute is numeric or not.
|
boolean |
isPersistent()
Returns whether this attribute is persistent or not
(A persistent attribute value is stored in the database or
fetched from database always).
|
boolean |
isPositive()
Returns whether this attribute value is always positive
or not.
|
boolean |
isRequired()
Returns whether this attribute value is always required
to be set or not (if set to true, null values are not allowed).
|
boolean |
isRestricted()
Returns whether this attribute is restricted.
|
boolean |
isTenantOwned() |
boolean |
isUserdefined()
Returns whether this attribute is defined by maximo or not.
|
void |
setAlias(java.lang.String aliasName)
Sets the alias name of this attribute.
|
void |
setAttributeName(java.lang.String name)
Sets name of this attribute.
|
void |
setComplexexpression(java.lang.String string) |
void |
setDefaultValue(java.lang.String string)
Sets the default value that should be assigned to this attribute
value when a business object is created.
|
void |
setDomainInfo(DomainInfo di)
Sets domain information to be associated with this attribute.
|
void |
setEntityName(java.lang.String entityName)
Sets the database table or view name used for fetching the
value for this attribute from database.
|
void |
setESigEnabled(boolean enabled)
Sets whether this attribute is enabled for electronic signature
or not.
|
void |
setExtended(boolean extended)
Sets whether this attribute is extended or not.
|
void |
setExtendedAttributeNumber(int extendedAttributeNumber)
Sets a unique number to this attribute
(Note that this number is different from the attribute number).
|
void |
setFetchAttributeNumber(int fetchAttributeNumber)
Sets a unique number to this attribute
(Note that this number is different from the attribute number).
|
void |
setHandleColumnName(java.lang.String name)
Sets Handle Column Name.
|
void |
setIsContentAttribute(boolean is)
Called by maximo dd to set whether this attribute is content attribute
|
void |
setLDOwner(boolean isLDOwner)
Sets whether this attribute can have long description
or not.
|
void |
setLength(int length)
Sets the maximum allowed size of this attribute in bytes.
|
void |
setLocalizable(boolean f) |
void |
setMaxType(java.lang.String string)
Sets the maximo supported data type of this attribute.
|
void |
setMLInUse(boolean ml)
Sets the multi-language in use flag
|
void |
setMLSupported(boolean supported)
Set the flag to indicate if multi-language is supported.
|
void |
setObjectName(java.lang.String string)
Sets the name of the business object that has this
attribute.
|
void |
setPersistent(boolean persistent)
Sets whether this attribute is persistent or not
(A persistent attribute value is stored in the database or
fetched from database always).
|
void |
setPersistentAttributeNumber(int persistentAttributeNumber)
Sets a unique number to this attribute
(Note that this number is different from the attribute number).
|
void |
setPositive(boolean isPositive)
Sets whether this attribute value is always positive
or not.
|
void |
setPrimaryKeyColSequence(int sequenceNumber)
Sets the sequence number to indicate the primary key order
(If this number is greater than 0, it indicates that this attribute
is part of the primary key).
|
void |
setRequired(boolean required)
Sets whether this attribute value is always required
to be set or not (if set to true, null values are not allowed).
|
void |
setRestricted(boolean value)
Sets whether this attribute is restricted.
|
void |
setSameAsAttribute(java.lang.String sameAsAttribute)
Sets the attribute name that has the same attribute
information as this attribute.
|
void |
setSameAsObject(java.lang.String sameAsObject)
Sets the object name that has the same attribute
information as this attribute.
|
void |
setScale(int scale)
Sets the scale value that indicates the number of
decimal places that this attribute value must use.
|
void |
setSkipCopyCondition(java.lang.String skipCopyCond)
Sets the SkipCopy condition for this attribute.
|
void |
setSkipCopyFlag(boolean skipCopy)
Sets the SkipCopy flag for this attribute.
|
void |
setTextdirection(java.lang.String string) |
void |
setTitle(java.lang.String string)
Sets the title name used for this attribute.
|
void |
setUserdefined(boolean userdefined)
Sets whether this attribute is defined by maximo or not.
|
getClonedInfo, getID, getParent, getReference, getReferenceForSet, isSameTenantAsReference, setID, setParent, setReference, setTenantReference
public static final java.lang.String CACHE_NAME
public static final int WILDCARDSEARCH
public static final int EXACTSEARCH
public static final int TEXTSEARCH
public static final int NONESEARCH
public MboValueInfo(long uniqueId)
public MboValueInfo()
public void setDomainInfo(DomainInfo di)
di
- domain information to be associated with this attribute.public DomainInfo getDomainInfo()
public boolean isNumeric()
public java.lang.Class getCustomClass() throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
public java.lang.Class getMboValueClass() throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
public psdi.mbo.MboValueInfoBase getTypedReference()
public java.lang.String getAlias()
public void setAlias(java.lang.String aliasName)
string
- alias name of this attribute.public void setHandleColumnName(java.lang.String name)
string
- name of the handle column.public java.lang.String getHandleColumnName()
public java.lang.String getAttributeName()
public void setAttributeName(java.lang.String name)
string
- name of the attribute.public int getAttributeNumber()
public java.lang.String getAutoKeyName()
public java.lang.String getSearchType()
public java.lang.String getClassName()
public java.lang.String getEntityColumnName()
public java.lang.String getDefaultValue()
public void setDefaultValue(java.lang.String string)
string
- the default value that should be assigned to this
attribute value when a business object is created.public java.lang.String getDomainId()
public boolean isEAuditEnabled()
public java.lang.String getEntityName()
public void setEntityName(java.lang.String entityName)
string
- the database table or view name used for fetching the
value for this attribute from database.public boolean isESigEnabled()
public void setESigEnabled(boolean enabled)
enabled
- true, if this attribute should be enabled for
electronic signature, otherwise false.public boolean isLDOwner()
public void setLDOwner(boolean isLDOwner)
isLDOwner
- true, if this attribute can have long description,
otherwise false.public boolean isPositive()
public void setPositive(boolean isPositive)
isPositive
- true, if this attribute value need to be always
positive, otherwise false.public int getLength()
public void setLength(int length)
length
- the maximum allowed size of this attribute in bytes.public java.lang.String getMaxType()
public void setMaxType(java.lang.String string)
string
- the maximo supported data type of this attribute.public java.lang.String getObjectName()
public void setObjectName(java.lang.String string)
string
- the name of the business object that has this
attribute.public boolean isPersistent()
public boolean isExtended()
public void setExtended(boolean extended)
extended
- true, to indicate that this attribute
is extended, otherwise false.public boolean isFetchAttribute()
public void setPersistent(boolean persistent)
persistent
- true, to indicate that this attribute
is persistent, otherwise false.public int getPrimaryKeyColSequence()
public void setPrimaryKeyColSequence(int sequenceNumber)
sequenceNumber
- the primary key sequence number, a value
greater than 0 indicates that this attribute
is part of the primary key.public boolean isRequired()
public void setRequired(boolean required)
required
- true, if this attribute value is always required,
otherwise false.public int getScale()
public void setScale(int scale)
scale
- the number of decimal places that this attribute
value must use.public java.lang.String getTitle()
public void setTitle(java.lang.String string)
string
- the title name to be used for this attribute.public boolean isUserdefined()
public void setRestricted(boolean value)
value
- public boolean isRestricted()
public void setUserdefined(boolean userdefined)
userdefined
- true, if defined by maximo, otherwise false.public java.lang.String getSameAsAttribute()
public void setSameAsAttribute(java.lang.String sameAsAttribute)
string
- the attribute name that has the same attribute
information as this attribute.public java.lang.String getSameAsObject()
public void setSameAsObject(java.lang.String sameAsObject)
string
- the object name that has the same attribute
information as this attribute.public int getPersistentAttributeNumber()
public int getExtendedAttributeNumber()
public void setPersistentAttributeNumber(int persistentAttributeNumber)
persistentAttributeNumber
- a unique numberpublic void setExtendedAttributeNumber(int extendedAttributeNumber)
persistentAttributeNumber
- a unique numberpublic int getFetchAttributeNumber()
public void setFetchAttributeNumber(int fetchAttributeNumber)
fetchAttributeNumber
- a unique numberpublic java.lang.String getName()
public boolean isKey()
public boolean hasLongDescription()
public java.lang.String getType()
public int getTypeAsInt()
public java.lang.String getDomainName()
public int getPrimaryKeyColSeq()
public void setMLInUse(boolean ml)
ml
- true if it is in use.public boolean isMLInUse()
public void setMLSupported(boolean supported)
supported
- public boolean isMLSupported()
public int getSearchTypeAsInt()
public boolean isContentAttribute()
public void setIsContentAttribute(boolean is)
is
- public void setLocalizable(boolean f)
public boolean isLocalizable()
public java.lang.String getTextdirection()
public void setTextdirection(java.lang.String string)
public java.lang.String getComplexexpression()
public void setComplexexpression(java.lang.String string)
public boolean isTenantOwned()
public boolean getSkipCopyFlag()
public void setSkipCopyFlag(boolean skipCopy)
boolean
- SkipCopy flag for this attribute.public java.lang.String getSkipCopyCondition()
public void setSkipCopyCondition(java.lang.String skipCopyCond)
string
- SkipCopy condition for this attributepublic java.lang.String getCacheName()
getCacheName
in class CachedObjectPointer