public final class AttributeValueBooleanArray extends AttributeValueArray
Modifier and Type | Field and Description |
---|---|
static String |
DATABASE_OBJECT_NAME
The database object name of the array-type AttributeValue.
|
protected Boolean[] |
m_MarshaledValues
The array used to transport elements across the CORBA line.
|
protected Boolean[] |
m_Values
The boolean array.
|
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 |
AttributeValueBooleanArray(boolean[] values)
Constructs an array-type boolean AttributeValue.
|
protected |
AttributeValueBooleanArray(Boolean[] values)
Constructs an array-type boolean AttributeValue.
|
protected |
AttributeValueBooleanArray(long objectId,
Long attributeId,
Long priClassId,
int count)
Constructs an array-type boolean AttributeValue.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
convertToBoolean(LibrarySessionInterface session,
int index)
Converts this AttributeValue to a boolean.
|
protected boolean[] |
convertToBooleanArray(LibrarySessionInterface session)
Converts this AttributeValue to an array of booleans.
|
protected Boolean |
convertToBooleanObject(LibrarySessionInterface session,
int index)
Converts this AttributeValue to a Boolean.
|
protected Boolean[] |
convertToBooleanObjectArray(LibrarySessionInterface session)
Converts this AttributeValue to an array of Booleans.
|
protected double |
convertToDouble(LibrarySessionInterface session,
int index)
Converts this AttributeValue to a double.
|
protected double[] |
convertToDoubleArray(LibrarySessionInterface session)
Converts this AttributeValue to an array of doubles.
|
protected Double |
convertToDoubleObject(LibrarySessionInterface session,
int index)
Converts this AttributeValue to a Double.
|
protected Double[] |
convertToDoubleObjectArray(LibrarySessionInterface session)
Converts this AttributeValue to an array of Doubles.
|
protected int |
convertToInteger(LibrarySessionInterface session,
int index)
Converts this AttributeValue to an int.
|
protected int[] |
convertToIntegerArray(LibrarySessionInterface session)
Converts this AttributeValue to an array of ints.
|
protected Integer |
convertToIntegerObject(LibrarySessionInterface session,
int index)
Converts this AttributeValue to an Integer.
|
protected Integer[] |
convertToIntegerObjectArray(LibrarySessionInterface session)
Converts this AttributeValue to an array of Integers.
|
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 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.
|
static String |
getMultiValueTableCreateString(String tableName,
int dataLen,
int dataScale)
Gets the CREATE TABLE string for multi-value tables for the
specified table name.
|
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, convertToDate, convertToDateArray, convertToDirectoryObject, convertToDirectoryObjectArray, convertToMap, convertToPublicObject, convertToPublicObjectArray, convertToSchemaObject, convertToSchemaObjectArray, convertToSimpleObject, convertToSimpleObjectArray, 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 Boolean[] m_Values
This is transient to prevent it from being transported across the CORBA line.
protected Boolean[] m_MarshaledValues
protected AttributeValueBooleanArray(boolean[] values) throws IfsException
This variant is used when the user explicitly creates an AttributeValue using the static factory methods of AttributeValue. It implies that none of the AttributeValue's elements are null.
values
- the boolean valuesIfsException
- if the operation failsprotected AttributeValueBooleanArray(Boolean[] values) throws IfsException
This variant is used when the user explicitly creates an AttributeValue using the static factory methods of AttributeValue.
values
- the boolean valuesIfsException
- if the operation failsprotected AttributeValueBooleanArray(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 int convertToInteger(LibrarySessionInterface session, int index) throws IfsException
convertToInteger
in class AttributeValue
session
- the sessionindex
- the zero-based indexIfsException
- (IFS-10406) if this AttributeValue cannot
be represented as an intprotected Integer convertToIntegerObject(LibrarySessionInterface session, int index) throws IfsException
convertToIntegerObject
in class AttributeValue
session
- the sessionindex
- the zero-based indexIfsException
- (IFS-10406) if this AttributeValue cannot
be represented as an Integerprotected 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 double convertToDouble(LibrarySessionInterface session, int index) throws IfsException
convertToDouble
in class AttributeValue
session
- the sessionindex
- the zero-based indexIfsException
- (IFS-10406) if this AttributeValue cannot
be represented as a doubleprotected Double convertToDoubleObject(LibrarySessionInterface session, int index) throws IfsException
convertToDoubleObject
in class AttributeValue
session
- the sessionindex
- the zero-based indexIfsException
- (IFS-10406) if this AttributeValue cannot
be represented as a Doubleprotected 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 boolean convertToBoolean(LibrarySessionInterface session, int index) throws IfsException
convertToBoolean
in class AttributeValue
session
- the sessionindex
- the zero-based indexIfsException
- (IFS-10406) if this AttributeValue cannot
be represented as a booleanprotected Boolean convertToBooleanObject(LibrarySessionInterface session, int index) throws IfsException
convertToBooleanObject
in class AttributeValue
session
- the sessionindex
- the zero-based indexIfsException
- (IFS-10406) if this AttributeValue cannot
be represented as a Booleanprotected int[] convertToIntegerArray(LibrarySessionInterface session) throws IfsException
convertToIntegerArray
in class AttributeValue
session
- the sessionIfsException
- (IFS-10406) if this AttributeValue cannot
be represented as an int[]protected Integer[] convertToIntegerObjectArray(LibrarySessionInterface session) throws IfsException
convertToIntegerObjectArray
in class AttributeValue
session
- the sessionIfsException
- if the operation failsprotected 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 double[] convertToDoubleArray(LibrarySessionInterface session) throws IfsException
convertToDoubleArray
in class AttributeValue
session
- the sessionIfsException
- (IFS-10406) if this AttributeValue cannot
be represented as a double[]protected Double[] convertToDoubleObjectArray(LibrarySessionInterface session) throws IfsException
convertToDoubleObjectArray
in class AttributeValue
session
- the sessionIfsException
- if the operation failsprotected String[] convertToStringArray(LibrarySessionInterface session) throws IfsException
convertToStringArray
in class AttributeValue
session
- the sessionIfsException
- if the operation failsprotected boolean[] convertToBooleanArray(LibrarySessionInterface session) throws IfsException
convertToBooleanArray
in class AttributeValue
session
- the sessionIfsException
- (IFS-10406) if this AttributeValue cannot
be represented as a boolean[]protected Boolean[] convertToBooleanObjectArray(LibrarySessionInterface session) throws IfsException
convertToBooleanObjectArray
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
public static final String getMultiValueTableCreateString(String tableName, int dataLen, int dataScale) throws IfsException
tableName
- the name of the table being createddataLen
- the data length specifieddataScale
- the data scale specifiedIfsException
- (IFS-10400) if the specified type is not validCopyright © 2023. All rights reserved.