public final class AttributeValueSimpleObjectArray extends AttributeValueArray
Modifier and Type | Field and Description |
---|---|
static String |
DATABASE_OBJECT_NAME
The database object name of the array-type AttributeValue.
|
protected Long[] |
m_Ids
The SimpleObject ids.
|
protected Long[] |
m_MarshaledIds
The array used to transport elements across the CORBA line.
|
m_AttributeId, m_Count, m_ObjectId, m_PrimaryClassId, m_ResolvedFlag
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 |
AttributeValueSimpleObjectArray(Long[] values,
Long primaryClassId)
Constructs an array-type SimpleObject AttributeValue.
|
protected |
AttributeValueSimpleObjectArray(long objectId,
Long attributeId,
Long priClassId,
int count)
Constructs an array-type SimpleObject AttributeValue.
|
protected |
AttributeValueSimpleObjectArray(SimpleObjectInterface[] values)
Constructs an array-type SimpleObject AttributeValue.
|
Modifier and Type | Method and Description |
---|---|
protected long |
convertToLong(LibrarySessionInterface session,
int index)
Converts this AttributeValue to a long.
|
protected long[] |
convertToLongArray(LibrarySessionInterface session)
Converts this AttributeValue to an array of longs.
|
protected Long |
convertToLongObject(LibrarySessionInterface session,
int index)
Converts this AttributeValue to a Long.
|
protected Long[] |
convertToLongObjectArray(LibrarySessionInterface session)
Converts this AttributeValue to an array of Longs.
|
protected SimpleObjectInterface |
convertToSimpleObject(LibrarySessionInterface session,
int index)
Converts this AttributeValue to a SimpleObject.
|
protected SimpleObjectInterface[] |
convertToSimpleObjectArray(LibrarySessionInterface session)
Converts this AttributeValue to an array of SimpleObjects.
|
protected String |
convertToString(LibrarySessionInterface session,
int index)
Converts this AttributeValue to a String.
|
protected String[] |
convertToStringArray(LibrarySessionInterface session)
Converts this AttributeValue to an array of Strings.
|
String |
getDatabaseObjectName()
Gets the database object name of the array-type AttributeValue.
|
int |
getDataType()
Gets the data type of this AttributeValue.
|
int |
getElementCount()
Gets the number of elements in an array-type AttributeValue.
|
Object |
getObject(LibrarySessionInterface session)
Gets the default object representation of this AttributeValue.
|
boolean |
isNullValue()
Gets whether this AttributeValue is null.
|
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.
|
getArrayTableCreateString, resolve
added, arrayToHashtable, canPurge, clone, compareTo, convertToBoolean, convertToBooleanArray, convertToBooleanObject, convertToBooleanObjectArray, convertToDate, convertToDateArray, convertToDirectoryObject, convertToDirectoryObjectArray, convertToDouble, convertToDoubleArray, convertToDoubleObject, convertToDoubleObjectArray, convertToInteger, convertToIntegerArray, convertToIntegerObject, convertToIntegerObjectArray, convertToMap, convertToPublicObject, convertToPublicObjectArray, convertToSchemaObject, convertToSchemaObjectArray, convertToSystemObject, convertToSystemObjectArray, ensureUpperCaseName, getArrayAppendOption, getArrayPreventDuplicateValuesOption, getArrayRemoveOption, getBoolean, getBooleanArray, getBooleanArray, getBooleanObject, getBooleanObjectArray, getBooleanObjectArray, getDate, getDateArray, getDateArray, getDirectoryObject, getDirectoryObjectArray, getDirectoryObjectArray, getDouble, getDoubleArray, getDoubleArray, getDoubleObject, getDoubleObjectArray, getDoubleObjectArray, getInteger, getIntegerArray, getIntegerArray, getIntegerObject, getIntegerObjectArray, getIntegerObjectArray, getLibraryObject, getLiteralArrayBindValueOption, getLong, getLongArray, getLongArray, getLongObject, getLongObjectArray, getLongObjectArray, getMap, getMapPutOption, getMapRemoveOption, getName, getOption, getPublicObject, getPublicObjectArray, getPublicObjectArray, getSchemaObject, getSchemaObjectArray, getSchemaObjectArray, getSimpleObject, getSimpleObjectArray, getSimpleObjectArray, getString, getStringArray, getStringArray, getSystemObject, getSystemObjectArray, getSystemObjectArray, getTransientOption, hashtableToArray, isArrayType, isLibraryObjectArrayType, isLibraryObjectScalarType, isLibraryObjectType, isMapType, 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
public static final String DATABASE_OBJECT_NAME
protected transient Long[] m_Ids
This is transient to prevent it from being transported across the CORBA line.
protected Long[] m_MarshaledIds
protected AttributeValueSimpleObjectArray(SimpleObjectInterface[] values) throws IfsException
This variant is used when the user explicitly creates an AttributeValue using the static factory methods of AttributeValue.
values
- the SimpleObject valuesIfsException
- if the operation failsprotected AttributeValueSimpleObjectArray(Long[] values, Long primaryClassId) throws IfsException
This variant is used when the user explicitly creates an AttributeValue using the static factory methods of AttributeValue.
values
- the Long valuesprimaryClassId
- the primary class IDIfsException
- if the operation failsprotected AttributeValueSimpleObjectArray(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
- object IDattributeId
- Attribute IDpriClassId
- the class ID reflecting a ClassDomain settingcount
- the number of elements in this AttributeValueIfsException
- (IFS-19001) if attributeId is nullpublic int getDataType()
getDataType
in class AttributeValue
public boolean isNullValue()
isNullValue
in class AttributeValue
public int getElementCount()
getElementCount
in class AttributeValue
public Object getObject(LibrarySessionInterface session) throws IfsException
getObject
in class AttributeValue
session
- the sessionIfsException
- (IFS-10406) if there is a AttributeValue
conversion errorprotected long convertToLong(LibrarySessionInterface session, int index) throws IfsException
convertToLong
in class AttributeValue
session
- the sessionindex
- the zero-based indexIfsException
- (IFS-10406) if this AttributeValue cannot
be represented as a longprotected Long convertToLongObject(LibrarySessionInterface session, int index) throws IfsException
convertToLongObject
in class AttributeValue
session
- the sessionindex
- the zero-based indexIfsException
- (IFS-10406) if this AttributeValue cannot
be represented as a Longprotected long[] convertToLongArray(LibrarySessionInterface session) throws IfsException
convertToLongArray
in class AttributeValue
session
- the sessionIfsException
- (IFS-10406) if this AttributeValue cannot
be represented as a long[]protected Long[] convertToLongObjectArray(LibrarySessionInterface session) throws IfsException
convertToLongObjectArray
in class AttributeValue
session
- the sessionIfsException
- if the operation failsprotected SimpleObjectInterface convertToSimpleObject(LibrarySessionInterface session, int index) throws IfsException
convertToSimpleObject
in class AttributeValue
session
- the sessionindex
- the zero-based indexIfsException
- (IFS-10406) if this AttributeValue cannot
be represented as a SimpleObjectprotected SimpleObjectInterface[] convertToSimpleObjectArray(LibrarySessionInterface session) throws IfsException
convertToSimpleObjectArray
in class AttributeValue
session
- the sessionIfsException
- (IFS-10406) if this AttributeValue cannot
be represented as a SimpleObject[]protected String convertToString(LibrarySessionInterface session, int index) throws IfsException
convertToString
in class AttributeValue
session
- the sessionindex
- the zero-based indexIfsException
- (IFS-10406) if this AttributeValue cannot
be represented as a Stringprotected String[] convertToStringArray(LibrarySessionInterface session) throws IfsException
convertToStringArray
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.
processResultSet
in class AttributeValueArray
rset
- the result setException
- if the operation failsprotected final void loadElements(AttributeValue source)
loadElements
in class AttributeValueArray
source
- the source AttributeValuepublic final String getDatabaseObjectName()
getDatabaseObjectName
in class AttributeValueArray
Copyright © 2023. All rights reserved.