public final class AttributeValueStringStringMap extends AttributeValueMap
Modifier and Type | Field and Description |
---|---|
static String |
DATABASE_OBJECT_NAME
The default table suffix (database object name) for this data type.
|
m_AttributeId, m_Count, m_ObjectId, 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 |
AttributeValueStringStringMap()
Constructs an AttributeValueStringStringMap.
|
protected |
AttributeValueStringStringMap(long objectId,
Long attributeId,
int count)
Constructs an string-string map-type AttributeValue.
|
protected |
AttributeValueStringStringMap(Map map)
Constructs a string-string map-type AttributeValue.
|
Modifier and Type | Method and Description |
---|---|
protected Map |
convertToMap(LibrarySessionInterface session)
Converts this AttributeValue to a Map.
|
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.
|
int |
getDataType()
Gets the data type of this 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.
|
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 map-type
AttributeValue.
|
getElementCount, isNullValue, resolve
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, 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 AttributeValueStringStringMap() 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 AttributeValueStringStringMap(Map map) throws IfsException
This variant is used when the user explicitly creates an AttributeValue using the static factory methods of AttributeValue.
map
- the string-string mapIfsException
- if the operation failsprotected AttributeValueStringStringMap(long objectId, Long attributeId, int count) throws IfsException
This variant is used to retrieve an map-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 ID of the LibraryObject for which
this AttributeValue represents the value
of one of its AttributesattributeId
- the ID of the Attributecount
- the number of elements in this AttributeValueIfsException
- (IFS-19001) if attributeId is nullpublic int getDataType()
getDataType
in class AttributeValue
public Object getObject(LibrarySessionInterface session) throws IfsException
This will return a Map
getObject
in class AttributeValue
session
- the sessionIfsException
- (IFS-10406) if there is a AttributeValue
conversion errorprotected Map convertToMap(LibrarySessionInterface session) throws IfsException
convertToMap
in class AttributeValue
session
- the sessionIfsException
- if the operation failsprotected String[] convertToStringArray(LibrarySessionInterface session) throws IfsException
This will return the array of String values in the order in which they were specified when inserted.
convertToStringArray
in class AttributeValue
session
- the sessionIfsException
- if the operation failsprotected 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 Stringpublic 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 AttributeValueMap
rset
- the result setException
- if the operation failsprotected final void loadElements(AttributeValue source)
loadElements
in class AttributeValueMap
source
- the source AttributeValuepublic 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.