public class Attribute extends TieSchemaObject
Each Attribute is defined by exactly one ClassObject. A ClassObject may define one or more Attributes. Subclasses will inherit all attributes from its super class. This object describes an Attribute of a ClassObject. This object is not used for manipulating the attributes of instances of ClassObjects, but rather the ClassObject itself.
Modifier and Type | Field and Description |
---|---|
static int |
ATTRIBUTEDATATYPE_BOOLEAN
The data type of boolean attributes.
|
static int |
ATTRIBUTEDATATYPE_BOOLEAN_ARRAY
The data type of array-type boolean attributes.
|
static int |
ATTRIBUTEDATATYPE_DATE
The data type of date attributes.
|
static int |
ATTRIBUTEDATATYPE_DATE_ARRAY
The data type of array-type date attributes.
|
static int |
ATTRIBUTEDATATYPE_DIRECTORYOBJECT
The data type of DirectoryObject attributes.
|
static int |
ATTRIBUTEDATATYPE_DIRECTORYOBJECT_ARRAY
The data type of array-type DirectoryObject attributes.
|
static int |
ATTRIBUTEDATATYPE_DOUBLE
The data type of double attributes.
|
static int |
ATTRIBUTEDATATYPE_DOUBLE_ARRAY
The data type of array-type double attributes.
|
static int |
ATTRIBUTEDATATYPE_INTEGER
The data type of integer attributes.
|
static int |
ATTRIBUTEDATATYPE_INTEGER_ARRAY
The data type of array-type integer attributes.
|
static int |
ATTRIBUTEDATATYPE_LONG
The data type of long attributes.
|
static int |
ATTRIBUTEDATATYPE_LONG_ARRAY
The data type of array-type long attributes.
|
static int |
ATTRIBUTEDATATYPE_LONGLONG_MAP
The data type of Long-Long Map attributes.
|
static int |
ATTRIBUTEDATATYPE_LONGSTRING_MAP
The data type of Long-String Map attributes.
|
static int |
ATTRIBUTEDATATYPE_OBJECTREFERENCE
The data type of Serializable Object reference attributes.
|
static int |
ATTRIBUTEDATATYPE_PUBLICOBJECT
The data type of PublicObject attributes.
|
static int |
ATTRIBUTEDATATYPE_PUBLICOBJECT_ARRAY
The data type of array-type PublicObject attributes.
|
static int |
ATTRIBUTEDATATYPE_SCHEMAOBJECT
The data type of SchemaObject attributes.
|
static int |
ATTRIBUTEDATATYPE_SCHEMAOBJECT_ARRAY
The data type of array-type SchemaObject attributes.
|
static int |
ATTRIBUTEDATATYPE_SIMPLEOBJECT
The data type of SimpleObject attributes.
|
static int |
ATTRIBUTEDATATYPE_SIMPLEOBJECT_ARRAY
The data type of array-type SimpleObject attributes.
|
static int |
ATTRIBUTEDATATYPE_STRING
The data type of string attributes.
|
static int |
ATTRIBUTEDATATYPE_STRING_ARRAY
The data type of array-type string attributes.
|
static int |
ATTRIBUTEDATATYPE_STRINGDOUBLE_MAP
The data type of String-Double Map attributes.
|
static int |
ATTRIBUTEDATATYPE_STRINGLONG_MAP
The data type of String-Long Map attributes.
|
static int |
ATTRIBUTEDATATYPE_STRINGSTRING_MAP
The data type of String-String Map attributes.
|
static int |
ATTRIBUTEDATATYPE_SYSTEMOBJECT
The data type of SystemObject attributes.
|
static int |
ATTRIBUTEDATATYPE_SYSTEMOBJECT_ARRAY
The data type of array-type SystemObject attributes.
|
static int |
ATTRIBUTEDATATYPE_UNKNOWN
An unknown data type.
|
static String |
CLASS_ATTRIBUTE
The Class to which this Attribute belongs.
|
static String |
CLASS_CLASSNAME_OPTION
The Classname of the Class to which this Attribute belongs.
|
static String |
CLASS_NAME
The name of the Attribute.
|
static String |
CLASSDOMAIN_ATTRIBUTE
The ClassDomain applied to this object-type Attribute to restrict
the objects to which it refers by their ClassObject.
|
static String |
DATABASEOBJECTNAME_ATTRIBUTE
The name of the column for this Attribute in the database table for the ClassObject.
|
static String |
DATALENGTH_ATTRIBUTE
The maximum size of this Attribute.
|
static String |
DATASCALE_ATTRIBUTE
The Datascale attribute is reserved for future use.
|
static String |
DATATYPE_ATTRIBUTE
The datatype of this Attribute- either scalar or array of integer,
long, double, string, boolean, date, DirectoryObject, PublicObject,
SchemaObject, SystemObject, or SimpleObject.
|
static String |
DBMS_HIDDENCOLUMN_PREFIX
Prefix used for hidden database columns.
|
static String |
DESCRIPTION_ATTRIBUTE
A textual description of the Attribute.
|
static String |
INDEXED_ATTRIBUTE
An indicator of whether the database table that stores data
for instances of the ClassObject has an index on this Attribute.
|
static String |
REFERENTIALINTEGRITYRULE_ATTRIBUTE
The referential integrity behavior (clear, restrict) of this Attribute.
|
static String |
REQUIRED_ATTRIBUTE
An indicator of whether each instance of the ClassObject
must have a value for this Attribute.
|
static int |
RIRULE_BEANEXTENSIONS
Represents the "BEANEXTENSIONS" referential integrity rule.
|
static int |
RIRULE_CLEAR
Represents the "CLEAR" referential integrity rule.
|
static int |
RIRULE_RESTRICT
Represents the "RESTRICT" referential integrity rule.
|
static String |
SETTABLE_ATTRIBUTE
An indicator of whether this Attribute can be set using
the repository SDK when creating new instances of the
ClassObject.
|
static String |
UNIQUE_ATTRIBUTE
An indicator of whether each instance of the ClassObject
must have a unique value for this Attribute (if not null).
|
static String |
UPDATEABLE_ATTRIBUTE
An indicator of whether this Attribute can be updated
using the repository SDK for existing instances of the
ClassObject.
|
static String |
VALUEDEFAULT_ATTRIBUTE
The default value of this Attribute in new instances of the ClassObject.
|
static String |
VALUEDOMAIN_ATTRIBUTE
The ValueDomain applied to this Attribute to restrict its values
to a list of pre-specified allowed values for instances of the ClassObject.
|
static String |
VALUEDOMAINVALIDATED_ATTRIBUTE
An indicator of whether the ValueDomain is enforced or merely a guideline.
|
ACTIVE_ATTRIBUTE, NAME_ATTRIBUTE, POLICYBUNDLE_ATTRIBUTE, POLICYLISTS_ATTRIBUTE, PROPERTYBUNDLE_ATTRIBUTE
DOMAIN_UNIQUENAME_DEFAULT_DELIMITER, m_ClassId, m_Id, m_Session
Modifier | Constructor and Description |
---|---|
protected |
Attribute(LibrarySession session,
Long id,
Long classId,
S_AttributeData data)
Internal use only: Constructs an Attribute.
|
protected |
Attribute(LibrarySession session,
Long id,
Long classId,
S_LibraryObjectData data)
Internal use only: Constructs an Attribute.
|
Modifier and Type | Method and Description |
---|---|
static String |
attributeDataTypeArrayPrefix(int attributeDataType)
Gets the character prefix to use in generating the custom array table for
the specified data type.
|
static String |
attributeDataTypeArrayTypeDatabaseObjectName(int attributeDataType)
Gets the default database object name for the attribute array tables
for the specified array attribute data type.
|
static String |
attributeDataTypeBaseClassName(int dataType)
Gets the common name of the base Class representing the
data type specified.
|
static int |
attributeDataTypeDefaultDataLength(int attributeDataType)
Gets the default data length of the specified Attribute data type.
|
static int |
attributeDataTypeDefaultDataScale(int attributeDataType)
Gets the default data scale of the specified Attribute data type.
|
static boolean |
attributeDataTypeIsArrayType(int attributeDataType)
Gets whether the specified Attribute data type is an array type.
|
static boolean |
attributeDataTypeIsMapType(int attributeDataType)
Gets whether the specified Attribute data type is a map type.
|
static boolean |
attributeDataTypeIsObjectType(int attributeDataType)
Gets whether the specified Attribute data type is an object type.
|
static int |
attributeDataTypeJdbcType(int attributeDataType)
Gets the JDBC type for the specified Attribute data type.
|
static String |
attributeDataTypeLabel(int attributeDataType)
Gets the generic String representation (label)
for the specified Attribute data type.
|
static String |
attributeDataTypeLabel(int attributeDataType,
int dataLength)
Gets the generic String representation (label)
for the specified Attribute data type.
|
static String |
attributeDataTypeLabel(int attributeDataType,
int dataLength,
int dataScale)
Gets the generic String representation (label)
for the specified Attribute data type.
|
static String |
attributeDataTypeMapTypeDatabaseObjectName(int attributeDataType)
Gets the default database object name for the attribute map tables
for the specified map attribute data type.
|
static String |
attributeDataTypeRdbmsType(int attributeDataType)
Gets the RDBMS type for the specified Attribute data type.
|
static String |
attributeDataTypeRdbmsType(int attributeDataType,
int dataLength)
Gets the RDBMS type for the specified Attribute data type.
|
static String |
attributeDataTypeRdbmsType(int attributeDataType,
int dataLength,
int dataScale)
Gets the RDBMS type for the specified Attribute data type.
|
static String |
attributeDataTypeRdbmsTypeOracle(int attributeDataType,
int dataLength,
int dataScale)
Gets the RDBMS type for the specified Attribute data type, for Oracle database.
|
static String |
attributeDataTypeRdbmsTypePostgres(int attributeDataType,
int dataLength,
int dataScale)
Gets the RDBMS type for the specified Attribute data type, for Oracle database.
|
static String |
attributeDataTypeResourceBundleKey(int attributeDataType)
Deprecated.
9.2.5.0: use
toDataTypeLabel |
protected static Attribute |
constructAttribute(LibrarySession session,
S_LibraryObjectData data)
Internal use only: Constructs an Attribute for the specified data.
|
void |
free()
Permanently removes this Attribute.
|
ClassDomain |
getClassDomain()
Gets the ClassDomain of this Attribute.
|
String |
getCommonName()
Returns the common Name of the Attribute, preferably in the
original mixed case that was used to create it.
|
String |
getDatabaseObjectName()
get the database object name corresponding to this attribute.
|
int |
getDataLength()
Get the length of the attribute.
|
int |
getDataScale()
Get the Data Scale of this Attribute.
|
int |
getDataType()
Get the data type of the attribute.
|
String |
getDataTypeLabel()
Gets the localized String label for the data type set for
this instance.
|
String |
getDefiningClass()
Returns the CLASS of which this is an attribute.
|
ClassObject |
getDefiningClassObject()
Returns the ClassObject that defines this attribute.
|
String |
getDefinitionSettingPolicy()
Returns the policy in effect for applying a definition setting
for the Attribute.
|
String |
getDescription()
Returns the description of an Attribute.
|
int |
getEffectiveDatalength()
Gets the effective data length for the Attribute.
|
String |
getLabel()
returns the Label for this Attribute, based on the Attribute's name
and class.
|
static String |
getMultiValueTableCreateString(int dataType,
int dataLength,
int dataScale,
String tableName)
Gets the CREATE TABLE string for multi-value tables for the specified type
and specified table name.
|
String |
getMultiValueTableName()
Gets the table name to use for storing multi-valued
attribute values (maps or arrays).
|
static String |
getMultiValueTableName(int dataType,
String suffix)
Gets the table name to use for storing multi-valued
attribute values (maps or arrays), based on the specified
data type and optional custom suffix.
|
String |
getMultiValueTableSuffix()
Returns the custom table suffix used to derive the table
for the map or array values used for this Attribute.
|
int |
getReferentialIntegrityRule()
Gets the Referential Integrity Rule associated with this Attribute.
|
String |
getReferentialIntegrityRuleLabel()
Gets the localized String label for the ReferentialIntegrityRule set for
this instance.
|
ValueDefault |
getValueDefault()
Gets the ValueDefault of this Attribute.
|
ValueDomain |
getValueDomain()
Gets the ValueDomain of this Attribute.
|
boolean |
isIndexed()
Determine if the current attribute is indexed.
|
static boolean |
isLegalDataType(int attributeDataType)
Gets whether the specified Attribute data type is legal.
|
boolean |
isRequired()
Determine if the current attribute is required.
|
boolean |
isSettable()
Determine if the current attribute is Settable.
|
boolean |
isStandardSimplePropertyArray()
Returns identication as to whether the Attribute should
implement "standard" semantics for a SimpleProperty array.
|
boolean |
isUnique()
Determine if the current attribute is unique.
|
boolean |
isUpdateable()
Determine if the current attribute is Updateable.
|
boolean |
isValueDomainValidated()
Determines if the attribute's value domain has been validated.
|
void |
setClassDomain(ClassDomain cd)
Sets the ClassDomain of this Attribute.
|
void |
setDescription(String description)
Sets the description of this Attribute.
|
void |
setReferentialIntegrityRule(int rule)
Sets the referential Integrity rule associated with this Attribute.
|
void |
setValueDefault(ValueDefault vde)
Sets the ValueDefault of this Attribute.
|
void |
setValueDomain(ValueDomain vd)
Sets the ValueDomain of this Attribute.
|
void |
setValueDomainValidated(boolean value)
Marks the attribute as ValueDomainValidated.
|
static int |
toDataType(String stype)
Gets the integer data type value for the specified data type label.
|
static String |
toDataTypeLabel(int dataType)
Converts the specified data type constant to a
localized label.
|
static String |
toDataTypeLabel(int dataType,
LibrarySession session)
Converts the specified data type constant to a
localized label, using the Localizer from the specified
LibrarySession.
|
static String |
toDataTypeLabel(int dataType,
Localizer localizer)
Converts the specified data type constant to a
localized label, using the specified Localizer.
|
static int |
toReferentialIntegrityRule(String label)
Gets the integer referential integrity rule value for the specified
referential integrity rule label.
|
static String |
toReferentialIntegrityRuleLabel(int riRule)
Converts the specified ReferentialIntegrityRule constant to a
localized label.
|
static String |
toReferentialIntegrityRuleLabel(int riRule,
LibrarySession session)
Converts the specified ReferentialIntegrityRule constant to a
localized label, using the Localizer from the specified
LibrarySession.
|
static String |
toReferentialIntegrityRuleLabel(int riRule,
Localizer localizer)
Converts the specified ReferentialIntegrityRule constant to a
localized label, using the specified Localizer.
|
addCategory, constructSchemaObject, constructSchemaObjectVector, free, getCategories, getCategories, getCategories, getCategories, getPolicyBundle, getPolicyLists, handleCreate, hasNameAttribute, hasPropertyBundleAttribute, isActive, postCreate, postUpdate, putPolicy, removeAllPolicies, removePolicy, removePolicy, setActive, setPolicyBundle, setPolicyLists
added, addSimpleProperty, addSimpleProperty, applyProperties, auditCreated, auditUpdated, canPurge, checkIfPropertyBundleSupported, checkRequiredAttributeSet, clearCopyContext, clearFreeContext, clearUpdateContext, compareTo, constructIdArray, constructIdArray, constructLibraryObject, constructLibraryObjectVector, createDedicatedPropertyBundle, createInstance, deriveDomainUniqueName, dispose, equals, equals, freeAll, get, getAttribute, getAttributeByUpperCaseName, getAttributes, getAttributesByUpperCaseNames, getAuditDomainContext, getAuditEventFolderContext, getClassId, getClassname, getClassName, getClassObject, getCommonNameAndClass, getCopyContext, getCreateContext, getData, getDefinition, getDefinitionForSimplePropertyUpdates, getEffectivePolicyListElements, getEventualAttributeByUpperCaseName, getFreeContext, getId, getName, getObjectReferenceAttribute, getOperationActionSpecificationContext, getPropertyBundle, getPropertyValue, getPublicObjectAttribute, getResourceString, getResourceString, getSchemaObjectAttribute, getSession, getSessionInterface, getSharedStateFactory, getSimpleObjectAttribute, getSimpleProperties, getSimpleProperty, getSimplePropertyValue, getStringIdentifier, getSystemObjectAttribute, getTraceLogger, getUpdateContext, handleAdminModeChange, handleEvent, handleFree, handleUpdate, hashCode, invalidateState, invokeOperation, invokeOperation, invokeServerMethod, isConnected, isCoreEventPostingEnabled, isInstanceOf, isPersistent, isTraced, isValidEventType, lockRows, lookupInstanceLabel, performPostCreateExtensions, performPostFreeExtensions, performPostUpdateExtensions, performPreCreateExtensions, performPreFreeExtensions, performPreUpdateExtensions, postEvent, postEvent, postFree, preCreate, preFree, prePostAuditEvent, preUpdate, putProperty, putProperty, removeAllProperties, removeAllSimpleProperties, removeAllSimpleProperties, removed, removeProperty, removeSimpleProperty, removeSimpleProperty, renderAsRandomAccessContent, renderAsReader, renderAsStream, setAttribute, setAttribute, setAttributes, setAttributes, setCopyContext, setFreeContext, setId, setName, setPropertyBundle, setPropertyValue, setUpdateContext, toString, trace, trustHandleCreate, trustHandleCreateAsAdmin, trustHandleFree, trustHandleFreeAsAdmin, trustHandleUpdate, trustHandleUpdateAsAdmin, update, updateAndExposeDefinition, validatePropertyValues, vectorLibraryObjectElement, vectorToLibraryObjectArray, verifyAdministrationMode, verifyConnected, verifyPersistent, verifySystemUserAccess, verifyTargetObject
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAttributeByUpperCaseName, getClassId, getId, getSessionInterface
getTraceLogger, isTraced, trace
public static final String CLASS_NAME
public static final String CLASS_CLASSNAME_OPTION
public static final String CLASS_ATTRIBUTE
public static final String DESCRIPTION_ATTRIBUTE
public static final String DATATYPE_ATTRIBUTE
public static final String DATALENGTH_ATTRIBUTE
public static final String DATASCALE_ATTRIBUTE
public static final String UNIQUE_ATTRIBUTE
public static final String REQUIRED_ATTRIBUTE
public static final String INDEXED_ATTRIBUTE
public static final String SETTABLE_ATTRIBUTE
public static final String UPDATEABLE_ATTRIBUTE
public static final String DATABASEOBJECTNAME_ATTRIBUTE
public static final String CLASSDOMAIN_ATTRIBUTE
public static final String VALUEDOMAIN_ATTRIBUTE
public static final String VALUEDEFAULT_ATTRIBUTE
public static final String VALUEDOMAINVALIDATED_ATTRIBUTE
public static final String REFERENTIALINTEGRITYRULE_ATTRIBUTE
public static final int ATTRIBUTEDATATYPE_UNKNOWN
public static final int ATTRIBUTEDATATYPE_DATE
public static final int ATTRIBUTEDATATYPE_STRING
public static final int ATTRIBUTEDATATYPE_DOUBLE
public static final int ATTRIBUTEDATATYPE_INTEGER
public static final int ATTRIBUTEDATATYPE_BOOLEAN
public static final int ATTRIBUTEDATATYPE_DIRECTORYOBJECT
public static final int ATTRIBUTEDATATYPE_LONG
public static final int ATTRIBUTEDATATYPE_SCHEMAOBJECT
public static final int ATTRIBUTEDATATYPE_SYSTEMOBJECT
public static final int ATTRIBUTEDATATYPE_PUBLICOBJECT
public static final int ATTRIBUTEDATATYPE_OBJECTREFERENCE
public static final int ATTRIBUTEDATATYPE_SIMPLEOBJECT
public static final int ATTRIBUTEDATATYPE_DATE_ARRAY
public static final int ATTRIBUTEDATATYPE_STRING_ARRAY
public static final int ATTRIBUTEDATATYPE_DOUBLE_ARRAY
public static final int ATTRIBUTEDATATYPE_INTEGER_ARRAY
public static final int ATTRIBUTEDATATYPE_BOOLEAN_ARRAY
public static final int ATTRIBUTEDATATYPE_DIRECTORYOBJECT_ARRAY
public static final int ATTRIBUTEDATATYPE_LONG_ARRAY
public static final int ATTRIBUTEDATATYPE_SCHEMAOBJECT_ARRAY
public static final int ATTRIBUTEDATATYPE_SYSTEMOBJECT_ARRAY
public static final int ATTRIBUTEDATATYPE_PUBLICOBJECT_ARRAY
public static final int ATTRIBUTEDATATYPE_SIMPLEOBJECT_ARRAY
public static final int ATTRIBUTEDATATYPE_STRINGSTRING_MAP
public static final int ATTRIBUTEDATATYPE_STRINGLONG_MAP
public static final int ATTRIBUTEDATATYPE_LONGSTRING_MAP
public static final int ATTRIBUTEDATATYPE_LONGLONG_MAP
public static final int ATTRIBUTEDATATYPE_STRINGDOUBLE_MAP
public static final int RIRULE_CLEAR
If LibraryObject.free
is invoked on an object referenced
by a CLEAR-type Attribute, the CLEAR-type Attribute's value is set to
null and the free
is performed.
public static final int RIRULE_RESTRICT
If LibraryObject.free
is invoked on an object referenced
by a RESTRICT-type Attribute, the free
is not performed
and a IfsException is thrown.
public static final int RIRULE_BEANEXTENSIONS
If this option is set, custom referential processing will occur using Bean-side class extensions.
public static final String DBMS_HIDDENCOLUMN_PREFIX
This prefix is prepended to the Attribute's databaseobject name for Attribute types that have hidden columns (e.g. for Date types).
protected Attribute(LibrarySession session, Long id, Long classId, S_LibraryObjectData data) throws IfsException
For internal use only. Do not use this method.
session
- the sessionid
- the idclassId
- the class iddata
- the dataIfsException
- if the operation failsprotected Attribute(LibrarySession session, Long id, Long classId, S_AttributeData data) throws IfsException
For internal use only. Do not use this method.
session
- the sessionid
- the idclassId
- the class iddata
- the dataIfsException
- if the operation failspublic String getCommonName() throws IfsException
Override the default implementation in LibraryObject.
getCommonName
in class LibraryObject
IfsException
- if operation fails.public String getMultiValueTableSuffix() throws IfsException
If a custom value is not defined, this method returns null.
IfsException
- if operation fails.public String getMultiValueTableName() throws IfsException
IfsException
- if the operation failspublic boolean isStandardSimplePropertyArray() throws IfsException
IfsException
- if operation fails.public String getDefinitionSettingPolicy() throws IfsException
IfsException
- if operation fails.public int getEffectiveDatalength() throws IfsException
This is typically the same as the value of DATALENGTH attribute, except for String-array attributes, where the effective data length is the default max (1000) if a custom table is not used.
IfsException
- if the operation failspublic String getLabel() throws IfsException
getLabel
in class LibraryObject
IfsException
- if operation fails.public void setClassDomain(ClassDomain cd) throws IfsException
cd
- the ClassDomainIfsException
- if the operation failspublic final ClassDomain getClassDomain() throws IfsException
IfsException
- if the operation failspublic void setValueDomain(ValueDomain vd) throws IfsException
vd
- the ValueDomainIfsException
- if the operation failspublic final ValueDomain getValueDomain() throws IfsException
IfsException
- if the operation failspublic void setValueDefault(ValueDefault vde) throws IfsException
vde
- the ValueDefaultIfsException
- if the operation failspublic final ValueDefault getValueDefault() throws IfsException
IfsException
- if the operation failspublic void free() throws IfsException
iFS does not allow Attributes to be removed from a ClassObject, so this method always throws IfsException.
free
in class LibraryObject
IfsException
- upon every invocationpublic ClassObject getDefiningClassObject() throws IfsException
IfsException
- if the operation failspublic String getDefiningClass() throws IfsException
IfsException
- if the operation failspublic String getDescription() throws IfsException
IfsException
- if the operation failspublic void setDescription(String description) throws IfsException
description
- the descriptionIfsException
- if the operation failspublic int getDataType() throws IfsException
IfsException
- if the operation fails.public int getDataLength() throws IfsException
IfsException
- if the operation fails.public int getDataScale() throws IfsException
IfsException
- if the operation failspublic boolean isUnique() throws IfsException
IfsException
- if the operation fails.public boolean isRequired() throws IfsException
IfsException
- if the operation fails.public boolean isIndexed() throws IfsException
IfsException
- if the operation fails.public boolean isSettable() throws IfsException
IfsException
- if the operation fails.public boolean isUpdateable() throws IfsException
IfsException
- if the operation fails.public String getDatabaseObjectName() throws IfsException
IfsException
- if the operation fails.public boolean isValueDomainValidated() throws IfsException
IfsException
- if the operation fails.public void setValueDomainValidated(boolean value) throws IfsException
value
- Boolean true of False.IfsException
- if the operation fails.public int getReferentialIntegrityRule() throws IfsException
IfsException
public String getReferentialIntegrityRuleLabel() throws IfsException
IfsException
- if operation fails.public static String toReferentialIntegrityRuleLabel(int riRule) throws IfsException
riRule
- the ReferentialIntegrityRule constant.IfsException
- if operation fails.public static String toReferentialIntegrityRuleLabel(int riRule, LibrarySession session) throws IfsException
riRule
- the ReferentialIntegrityRule constantsession
- the LibrarySession, whose current
Localizer will be used for the conversionIfsException
- if operation fails.public static String toReferentialIntegrityRuleLabel(int riRule, Localizer localizer) throws IfsException
riRule
- the ReferentialIntegrityRule constant.localizer
- the Localizer that performs the conversionIfsException
- if operation fails.public static final int toReferentialIntegrityRule(String label) throws IfsException
label
- the referential integrity rule labelIfsException
- if the operation failspublic void setReferentialIntegrityRule(int rule) throws IfsException
rule
- integer representing a valid RI rule from Attribute.IfsException
- if the operation fails.protected static Attribute constructAttribute(LibrarySession session, S_LibraryObjectData data) throws IfsException
For internal use only. Do not use this method.
session
- the sessiondata
- the dataIfsException
- if an error occurspublic static final String attributeDataTypeResourceBundleKey(int attributeDataType) throws IfsException
toDataTypeLabel
Call LibrarySession.getResourceString
with the returned
value to get a localized name for the specified Attribute data type.
attributeDataType
- the Attribute data typeIfsException
- if operation failspublic String getDataTypeLabel() throws IfsException
IfsException
- if operation fails.public static String toDataTypeLabel(int dataType) throws IfsException
dataType
- the data type constant.IfsException
- if operation fails.public static String toDataTypeLabel(int dataType, LibrarySession session) throws IfsException
dataType
- the data type constantsession
- the LibrarySession, whose current
Localizer will be used for the conversionIfsException
- if operation fails.public static String toDataTypeLabel(int dataType, Localizer localizer) throws IfsException
dataType
- the data type constant.localizer
- the Localizer that performs the conversionIfsException
- if operation fails.public static final int toDataType(String stype) throws IfsException
stype
- the data type labelIfsException
- if the operation failspublic static final boolean isLegalDataType(int attributeDataType)
attributeDataType
- the Attribute data typepublic static final boolean attributeDataTypeIsArrayType(int attributeDataType) throws IfsException
attributeDataType
- the Attribute data typeIfsException
- (IFS-10400) if
attributeDataType
is invalidpublic static final boolean attributeDataTypeIsMapType(int attributeDataType) throws IfsException
attributeDataType
- the Attribute data typeIfsException
- (IFS-10400) if
attributeDataType
is invalidpublic static String getMultiValueTableName(int dataType, String suffix) throws IfsException
IfsException
- if the operation failspublic static final String attributeDataTypeArrayTypeDatabaseObjectName(int attributeDataType) throws IfsException
attributeDataType
- the Attribute data typeIfsException
- (IFS-10410) if
attributeDataType
is not an array typepublic static final String attributeDataTypeArrayPrefix(int attributeDataType) throws IfsException
The table name for custom array value tables are prefixed with a prefix that is unique by type. For example, a custom String-array table name for a custom suffix of "previousaddresses" will be "odmzlt_previousaddresses". The "t" in that name is generated in this method.
attributeDataType
- the Attribute data typeIfsException
- (IFS-10410) if
attributeDataType
is not an array typepublic static final String attributeDataTypeMapTypeDatabaseObjectName(int attributeDataType) throws IfsException
attributeDataType
- the Attribute data typeIfsException
- (IFS-10410) if
attributeDataType
is not a map typepublic static final String getMultiValueTableCreateString(int dataType, int dataLength, int dataScale, String tableName) throws IfsException
dataType
- the Attribute data typedataLength
- the Attribute data lengthdataScale
- the Attribute data scaletableName
- the name of the table being createdIfsException
- (IFS-10400) if the specified type is not validpublic static final boolean attributeDataTypeIsObjectType(int attributeDataType) throws IfsException
attributeDataType
- the Attribute data typeIfsException
- (IFS-10400) if
attributeDataType
is invalidpublic static int attributeDataTypeJdbcType(int attributeDataType) throws IfsException
attributeDataType
- the Attribute data typeIfsException
- (IFS-10400) if
attributeDataType
is invalidpublic static String attributeDataTypeRdbmsType(int attributeDataType) throws IfsException
attributeDataType
- the Attribute data typeIfsException
- (IFS-10400) if
attributeDataType
is invalidpublic static String attributeDataTypeRdbmsType(int attributeDataType, int dataLength) throws IfsException
attributeDataType
- the Attribute data typedataLength
- the total number of digits in a numeric data
type or the number of bytes (not
characters) in a string. If data length is not
applicable for this Attribute data type, the
value is ignored.IfsException
- (IFS-10400) if
attributeDataType
is invalidpublic static String attributeDataTypeRdbmsType(int attributeDataType, int dataLength, int dataScale) throws IfsException
attributeDataType
- the Attribute data typedataLength
- the total number of digits in a numeric data
type or the number of bytes (not
characters) in a string. If data length is not
applicable for this Attribute data type, the
value is ignored.dataScale
- the number of digits to the right of the decimal
point in a numeric data type. If data scale is
not applicable for this Attribute data type, the
value is ignored.IfsException
- (IFS-10400) if
attributeDataType
is invalidpublic static String attributeDataTypeLabel(int attributeDataType) throws IfsException
attributeDataType
- the Attribute data typeIfsException
- if the operation failspublic static String attributeDataTypeLabel(int attributeDataType, int dataLength) throws IfsException
attributeDataType
- the Attribute data typedataLength
- the data lengthIfsException
- if the operation failspublic static String attributeDataTypeLabel(int attributeDataType, int dataLength, int dataScale) throws IfsException
attributeDataType
- the Attribute data typedataLength
- the data lengthdataScale
- the data scaleIfsException
- if the operation failspublic static String attributeDataTypeRdbmsTypeOracle(int attributeDataType, int dataLength, int dataScale) throws IfsException
attributeDataType
- the Attribute data typedataLength
- the total number of digits in a numeric data
type or the number of bytes (not
characters) in a string. If data length is not
applicable for this Attribute data type, the
value is ignored.dataScale
- the number of digits to the right of the decimal
point in a numeric data type. If data scale is
not applicable for this Attribute data type, the
value is ignored.IfsException
- (IFS-10400) if
attributeDataType
is invalidpublic static String attributeDataTypeRdbmsTypePostgres(int attributeDataType, int dataLength, int dataScale) throws IfsException
attributeDataType
- the Attribute data typedataLength
- the total number of digits in a numeric data
type or the number of bytes (not
characters) in a string. If data length is not
applicable for this Attribute data type, the
value is ignored.dataScale
- the number of digits to the right of the decimal
point in a numeric data type. If data scale is
not applicable for this Attribute data type, the
value is ignored.IfsException
- (IFS-10400) if
attributeDataType
is invalidpublic static int attributeDataTypeDefaultDataLength(int attributeDataType) throws IfsException
attributeDataType
- the Attribute data type.IfsException
- (IFS-10400) if
attributeDataType
is invalidpublic static int attributeDataTypeDefaultDataScale(int attributeDataType) throws IfsException
attributeDataType
- the Attribute data type.IfsException
- (IFS-10400) if
attributeDataType
is invalidpublic static String attributeDataTypeBaseClassName(int dataType) throws IfsException
The object type must be an object data type.
dataType
- the Attribute data typeIfsException
- if dataType
is invalidCopyright © 2023. All rights reserved.