public final class FndSimpleArray extends FndBinary
setLongArray(long[])
,
setDoubleArray(double[])
,
setStringArray(java.lang.String[])
,
setDateArray(java.util.Date[])
,
setBinaryArray(byte[][])
,
setBooleanArray(boolean[])
,
getLongArray()
,
getDoubleArray()
,
getStringArray()
,
getDateArray()
,
getBinaryArray()
,
getBooleanArray()
,
Serialized FormModifier and Type | Class and Description |
---|---|
static class |
FndSimpleArray.ElementType
Enumeration class that represents the type of array elements
|
FndAttribute.Iterator
Modifier and Type | Field and Description |
---|---|
static FndSimpleArray.ElementType |
BINARY
Constant indicating that the type of array elements is byte[].
|
static FndSimpleArray.ElementType |
BOOLEAN
Constant indicating that the type of array elements is boolean.
|
static FndSimpleArray.ElementType |
DATE
Constant indicating that the type of array elements is Date.
|
static FndSimpleArray.ElementType |
DOUBLE
Constant indicating that the type of array elements is double.
|
static FndSimpleArray.ElementType |
LONG
Constant indicating that the type of array elements is long.
|
static FndSimpleArray.ElementType |
STRING
Constant indicating that the type of array elements is String.
|
defaultEncoding
meta, rec, value
Constructor and Description |
---|
FndSimpleArray()
Creates a new instance of FndSimpleArray with TEXT type of elements.
|
FndSimpleArray(FndAttributeMeta meta,
FndSimpleArray.ElementType type)
Creates a new instance of FndSimpleArray with the specified type of elements.
|
FndSimpleArray(java.lang.String name)
Creates a new instance of FndSimpleArray with TEXT type of elements.
|
FndSimpleArray(java.lang.String name,
FndSimpleArray.ElementType type)
Creates a new instance of FndSimpleArray with the specified type of elements.
|
Modifier and Type | Method and Description |
---|---|
void |
assign(FndBinary from)
Sets the value of the attribute from another attribute.
|
FndSimpleArrayParser.DestArray |
createDestArray(java.lang.String elementType)
Creates a new instance of FndSimpleArrayParser.DestArray for given element type.
|
protected void |
formatAttributeToXml(FndXmlSerializer s,
FndAttribute customAttr,
FndAttributeXmlFormatter customFormatter)
Formats this object into the XML stream.
|
protected void |
formatValueToXml(FndXmlSerializer s)
Formats this attribute's value to the xml stream.
|
byte[][] |
getBinaryArray()
Retrieves an array of byte[] from the internal binary representation.
|
boolean[] |
getBooleanArray()
Retrieves an array of long from the internal binary representation.
|
java.util.Date[] |
getDateArray()
Retrieves an array of Date from the internal binary representation.
|
double[] |
getDoubleArray()
Retrieves an array of double from the internal binary representation.
|
FndSimpleArray.ElementType |
getElementType()
Returns the type of array elements.
|
long[] |
getLongArray()
Retrieves an array of long from the internal binary representation.
|
java.lang.String[] |
getStringArray()
Retrieves an array of String from the internal binary representation.
|
protected FndAttribute |
newAttribute(FndAttributeMeta meta)
Creates a new attribute based on meta-data.
|
void |
setBinaryArray(byte[][] arr)
Stores an array of byte[] in the internal binary representation.
|
void |
setBooleanArray(boolean[] arr)
Stores a boolean array in the internal binary representation.
|
void |
setDateArray(java.util.Date[] arr)
Stores a Date array in the internal binary representation.
|
void |
setDoubleArray(double[] arr)
Stores a double array in the internal binary representation.
|
void |
setLongArray(long[] arr)
Stores a long array in the internal binary representation.
|
void |
setStringArray(java.lang.String[] arr)
Stores a String array in the internal binary representation.
|
void |
setValue(FndSimpleArray attribute)
Copies the value from another FndSimpleArray
|
void |
setValue(FndSimpleArrayParser.DestArray arr)
Sets the value of this binary attribute.
|
clone, cloneValue, copy, createIsNotNullCondition, createIsNullCondition, formatValue, getCount, getDataAsString, getInputStreamManager, getLength, getOutputStreamManager, getSize, getSqlType, getValue, getValue, isLong, isNull, parseString, setInputStreamManager, setOutputStreamManager, setSqlValue, setValue, setValue, toFndSqlValue, toString, valueOf
addInvalidValueInfo, assign, checkFormat, checkFormat, checkNotModified, checkNotModified, checkNotModified, checkNotModified, checkNotModified, checkNotModified, checkRange, checkRange, checkRange, checkRange, checkRange, checkRange, checkUpperCase, checkUpperCase, checkValuePresent, checkValuePresent, checkValuePresent, checkValuePresent, checkValuePresent, checkValuePresent, clear, compareTo, createBetweenCondition, createEqualCondition, createGreaterThanCondition, createGreaterThanOrEqualCondition, createLessThanCondition, createLessThanOrEqualCondition, createNotEqualCondition, descending, exclude, exist, getColumns, getInnerTypes, getInvalidValueInfo, getMeta, getName, getParentRecord, getResultCategory, getSortDirection, getState, getType, hasValue, include, include, internalGetValue, internalSetValue, invalidate, invalidate, invalidate, invalidate, invalidate, invalidate, invalidate, invalidate, invalidate, invalidate, invalidate, invalidate, isCompound, isDirty, isExcluded, isKey, isMandatory, isPartOfPrimaryKey, isQuery, isSet, isUpdateAllowed, isVector, parse, parseBuffer, parseDatabaseString, parseXmlString, set, setDirty, setDirty, setExistent, setInvalidValueInfo, setMandatory, setName, setNonExistent, setNull, setParentRecord, setQuery, setState, setType, setUpdateAllowed, sortFieldIterator, toDatabaseString, unset, validate, validate
public static final FndSimpleArray.ElementType LONG
public static final FndSimpleArray.ElementType DOUBLE
public static final FndSimpleArray.ElementType STRING
public static final FndSimpleArray.ElementType DATE
public static final FndSimpleArray.ElementType BINARY
public static final FndSimpleArray.ElementType BOOLEAN
public FndSimpleArray()
public FndSimpleArray(java.lang.String name)
name
- the name of the attributepublic FndSimpleArray(java.lang.String name, FndSimpleArray.ElementType type)
name
- the name of the attributetype
- the type of array elementspublic FndSimpleArray(FndAttributeMeta meta, FndSimpleArray.ElementType type)
protected FndAttribute newAttribute(FndAttributeMeta meta)
FndBinary
newAttribute
in class FndBinary
meta
- Meta-data to base the attribute onpublic void setValue(FndSimpleArray attribute) throws ApplicationException
attribute
- Attribute to copy value fromApplicationException
- Value out of rangepublic void assign(FndBinary from) throws ApplicationException, SystemException
assign
in class FndBinary
from
- Attribute to copy value fromSystemException
- Thrown if cloning failsApplicationException
- Thrown if value if out of range for this attributeprotected void formatAttributeToXml(FndXmlSerializer s, FndAttribute customAttr, FndAttributeXmlFormatter customFormatter) throws ParseException
formatAttributeToXml
in class FndAttribute
s
- XML serializer to which to append the attribute contentscustomAttr
- top level attribute (tested with "==" operator) which will be formatted by the custom formattercustomFormatter
- formatter that will format the custom attribute valueParseException
protected void formatValueToXml(FndXmlSerializer s) throws ParseException
formatValueToXml
in class FndBinary
s
- XML serializer to which to add the valueParseException
public FndSimpleArray.ElementType getElementType()
public java.util.Date[] getDateArray() throws ParseException
ParseException
- if the internal binary representation has invalid formatpublic void setDateArray(java.util.Date[] arr) throws IfsException
arr
- Date array to be serialized and stored as a value of this binary attributeIfsException
- if the formatting process fails for any reasonpublic java.lang.String[] getStringArray() throws ParseException
ParseException
- if the internal binary representation has invalid formatpublic void setStringArray(java.lang.String[] arr) throws IfsException
arr
- String array to be serialized and stored as a value of this binary attributeIfsException
- if the formatting process fails for any reasonpublic long[] getLongArray() throws ParseException
ParseException
- if the internal binary representation has invalid formatpublic void setLongArray(long[] arr) throws IfsException
arr
- long array to be serialized and stored as a value of this binary attributeIfsException
- if the formatting process fails for any reasonpublic boolean[] getBooleanArray() throws ParseException
ParseException
- if the internal binary representation has invalid formatpublic void setBooleanArray(boolean[] arr) throws IfsException
arr
- boolean array to be serialized and stored as a value of this binary attributeIfsException
- if the formatting process fails for any reasonpublic double[] getDoubleArray() throws ParseException
ParseException
- if the internal binary representation has invalid formatpublic void setDoubleArray(double[] arr) throws IfsException
arr
- double array to be serialized and stored as a value of this binary attributeIfsException
- if the formatting process fails for any reasonpublic byte[][] getBinaryArray() throws ParseException
ParseException
- if the internal binary representation has invalid formatpublic void setBinaryArray(byte[][] arr) throws IfsException
arr
- an array of byte[] to be serialized and stored as a value of this binary attributeIfsException
- if the formatting process fails for any reasonpublic FndSimpleArrayParser.DestArray createDestArray(java.lang.String elementType) throws ParseException
elementType
- the String representing the type of array elementsParseException
- if the specified element type is invalidpublic void setValue(FndSimpleArrayParser.DestArray arr) throws IfsException
arr
- an instance of FndSimpleArrayParser.DestArrayIfsException
- if the formatting process fails for any reason