public class AttributeValueArray extends AttributeValue
AttributeValueArray is an abstract class.
Modifier and Type | Field and Description |
---|---|
protected long |
m_AttributeId
The Attribute id.
|
protected int |
m_Count
The number of elements in this AttributeValue.
|
protected long |
m_ObjectId
The LibraryObject ID.
|
protected Long |
m_PrimaryClassId
The primary Class ID, obtained from a ClassDomain setting for the Attribute.
|
protected oracle.ifs.common.SharedFlag |
m_ResolvedFlag
Whether the elements of this AttributeValueArray have been retrieved
from the database.
|
LONG_ZERO, m_Name, m_Options, OPTION_ARRAY_APPEND_MODE, OPTION_ARRAY_PREVENT_DUPLICATES, OPTION_ARRAY_REMOVE_MODE, OPTION_LITERAL_ARRAY_BIND_VALUE, OPTION_MAP_PUT_MODE, OPTION_MAP_REMOVE_MODE, OPTION_TRANSIENT
Modifier | Constructor and Description |
---|---|
protected |
AttributeValueArray()
Constructs an AttrbuteValueArray.
|
protected |
AttributeValueArray(long objectId,
Long attributeId,
Long priClassId,
int count)
Constructs an AttributeValueArray.
|
Modifier and Type | Method and Description |
---|---|
static String |
getArrayTableCreateString(String tableName,
String valueType)
Gets the CREATE TABLE string for multi-value tables for the
specified table name and SQL data type for the value.
|
String |
getDatabaseObjectName()
Gets the database object name of the array-type AttributeValue.
|
protected void |
loadElements(AttributeValue source)
Copies the elements from the specified AttributeValue to this
AttributeValue.
|
AttributeValue |
processResultSet(ResultSet rset)
Processes the result set containing the elements of the array-type
AttributeValue.
|
protected void |
resolve(LibrarySessionInterface session)
Ensures that the elements of this AttributeValue have been loaded from
the database.
|
added, arrayToHashtable, canPurge, clone, compareTo, convertToBoolean, convertToBooleanArray, convertToBooleanObject, convertToBooleanObjectArray, convertToDate, convertToDateArray, convertToDirectoryObject, convertToDirectoryObjectArray, convertToDouble, convertToDoubleArray, convertToDoubleObject, convertToDoubleObjectArray, convertToInteger, convertToIntegerArray, convertToIntegerObject, convertToIntegerObjectArray, convertToLong, convertToLongArray, convertToLongObject, convertToLongObjectArray, convertToMap, convertToPublicObject, convertToPublicObjectArray, convertToSchemaObject, convertToSchemaObjectArray, convertToSimpleObject, convertToSimpleObjectArray, convertToString, convertToStringArray, convertToSystemObject, convertToSystemObjectArray, ensureUpperCaseName, getArrayAppendOption, getArrayPreventDuplicateValuesOption, getArrayRemoveOption, getBoolean, getBooleanArray, getBooleanArray, getBooleanObject, getBooleanObjectArray, getBooleanObjectArray, getDataType, getDate, getDateArray, getDateArray, getDirectoryObject, getDirectoryObjectArray, getDirectoryObjectArray, getDouble, getDoubleArray, getDoubleArray, getDoubleObject, getDoubleObjectArray, getDoubleObjectArray, getElementCount, getInteger, getIntegerArray, getIntegerArray, getIntegerObject, getIntegerObjectArray, getIntegerObjectArray, getLibraryObject, getLiteralArrayBindValueOption, getLong, getLongArray, getLongArray, getLongObject, getLongObjectArray, getLongObjectArray, getMap, getMapPutOption, getMapRemoveOption, getName, getObject, getOption, getPublicObject, getPublicObjectArray, getPublicObjectArray, getSchemaObject, getSchemaObjectArray, getSchemaObjectArray, getSimpleObject, getSimpleObjectArray, getSimpleObjectArray, getString, getStringArray, getStringArray, getSystemObject, getSystemObjectArray, getSystemObjectArray, getTransientOption, hashtableToArray, isArrayType, isLibraryObjectArrayType, isLibraryObjectScalarType, isLibraryObjectType, isMapType, isNullValue, newAttributeValue, newAttributeValue, newAttributeValue, newAttributeValue, newAttributeValue, newAttributeValue, newAttributeValue, newAttributeValue, newAttributeValue, newAttributeValue, newAttributeValue, newAttributeValue, newAttributeValue, newAttributeValue, newAttributeValue, newAttributeValue, newAttributeValue, newAttributeValue, newAttributeValue, newAttributeValue, newAttributeValue, newAttributeValue, newAttributeValue, newAttributeValue, newAttributeValue, newAttributeValue, newAttributeValue, newAttributeValue, newAttributeValue, newAttributeValue, newAttributeValue, newAttributeValue, newAttributeValue, newAttributeValue, newAttributeValue, newAttributeValue, newAttributeValue, newAttributeValue, newAttributeValue, newAttributeValue, newAttributeValue, newNullAttributeValue, overrideName, removed, removeOption, setArrayAppendOption, setArrayPreventDuplicateValuesOption, setArrayRemoveOption, setLiteralArrayBindValueOption, setMapPutOption, setMapRemoveOption, setName, setOption, setTransientOption, toBoolean, toBoolean, toBoolean, toBoolean, toDate, toDate, toDouble, toDouble, toDouble, toInteger, toInteger, toInteger, toLong, toLong, toLong, toLong, toString, toString, toString, toString, toString, toString, toString
protected long m_ObjectId
protected long m_AttributeId
protected Long m_PrimaryClassId
protected int m_Count
protected oracle.ifs.common.SharedFlag m_ResolvedFlag
protected AttributeValueArray() throws IfsException
This variant is used when the user explicitly creates an AttributeValue using the static factory methods of AttributeValue.
IfsException
- if the operation failsprotected AttributeValueArray(long objectId, Long attributeId, Long priClassId, int count) throws IfsException
This variant is used to retrieve an array-type AttributeValue from the database. It defers loading the elements of the AttributeValue from the appropriate attribute value database table until they are needed.
objectId
- The LibraryObject ID.attributeId
- The Attribute id.priClassId
- The primary Class IDcount
- the number of elements in this AttributeValueIfsException
- (IFS-19001) if attributeId is nullprotected final void resolve(LibrarySessionInterface session) throws IfsException
resolve
in class AttributeValue
session
- the sessionIfsException
- if the operation failspublic AttributeValue processResultSet(ResultSet rset) throws Exception
For internal use only. Do not use this method.
The invoker of this method sucks the elements from the returned object, plugs them into the corresponding cached AttributeValue, and then discards the returned object.
rset
- the result setException
- if the operation failsprotected void loadElements(AttributeValue source)
source
- the source AttributeValuepublic String getDatabaseObjectName()
public static final String getArrayTableCreateString(String tableName, String valueType) throws IfsException
tableName
- the name of the table being createdvalueType
- the SQL value, e.g. "NUMBER(20)"IfsException
- (IFS-10400) if the specified type is not validCopyright © 2023. All rights reserved.