Modifier and Type | Field and Description |
---|---|
private java.lang.String[] |
data |
private RecordMetaDataImpl<C> |
metaData |
Constructor and Description |
---|
RecordImpl(java.lang.String[] data,
RecordMetaDataImpl metaData) |
Modifier and Type | Method and Description |
---|---|
<T extends java.lang.Enum<T>> |
buildSelection(java.lang.Class<T> enumType,
T... selectedColumns) |
private int[] |
buildSelection(int[] selectedIndexes) |
private java.lang.String[] |
buildSelection(java.lang.String[] selectedFields) |
boolean |
equals(java.lang.Object o) |
<T extends java.lang.Enum<T>> |
fillEnumMap(java.util.Map<T,java.lang.String> map,
T... selectedColumns)
Fills a map with the
String values of this record. |
<T extends java.lang.Enum<T>> |
fillEnumObjectMap(java.util.Map<T,java.lang.Object> map,
T... selectedColumns)
Fills a map with the converted
Object values of this record. |
java.util.Map<java.lang.String,java.lang.String> |
fillFieldMap(java.util.Map<java.lang.String,java.lang.String> map,
java.lang.String... selectedFields)
Fills a map with the
String values of this record. |
java.util.Map<java.lang.String,java.lang.Object> |
fillFieldObjectMap(java.util.Map<java.lang.String,java.lang.Object> map,
java.lang.String... selectedFields)
Fills a map with the converted
Object values of this record. |
java.util.Map<java.lang.Integer,java.lang.String> |
fillIndexMap(java.util.Map<java.lang.Integer,java.lang.String> map,
int... selectedIndexes)
Fills a map with the
String values of this record. |
java.util.Map<java.lang.Integer,java.lang.Object> |
fillIndexObjectMap(java.util.Map<java.lang.Integer,java.lang.Object> map,
int... selectedIndexes)
Fills a map with the converted
Object values of this record. |
java.math.BigDecimal |
getBigDecimal(java.lang.Enum<?> column)
Converts the
String value in the given column to a BigDecimal and returns the result. |
java.math.BigDecimal |
getBigDecimal(java.lang.Enum<?> column,
java.lang.String format,
java.lang.String... formatOptions)
Converts the
String value in the given column to a BigDecimal and returns the result. |
java.math.BigDecimal |
getBigDecimal(int columnIndex)
Converts the
String value in the given column to a BigDecimal and returns the result. |
java.math.BigDecimal |
getBigDecimal(int columnIndex,
java.lang.String format,
java.lang.String... formatOptions)
Converts the
String value in the given column to a BigDecimal and returns the result. |
java.math.BigDecimal |
getBigDecimal(java.lang.String headerName)
Converts the
String value in the given column to a BigDecimal and returns the result. |
java.math.BigDecimal |
getBigDecimal(java.lang.String headerName,
java.lang.String format,
java.lang.String... formatOptions)
Converts the
String value in the given column to a BigDecimal and returns the result. |
java.math.BigInteger |
getBigInteger(java.lang.Enum<?> column)
Converts the
String value in the given column to a BigInteger and returns the result. |
java.math.BigInteger |
getBigInteger(java.lang.Enum<?> column,
java.lang.String format,
java.lang.String... formatOptions)
Converts the
String value in the given column to a BigInteger and returns the result. |
java.math.BigInteger |
getBigInteger(int columnIndex)
Converts the
String value in the given column to a BigInteger and returns the result. |
java.math.BigInteger |
getBigInteger(int columnIndex,
java.lang.String format,
java.lang.String... formatOptions)
Converts the
String value in the given column to a BigInteger and returns the result. |
java.math.BigInteger |
getBigInteger(java.lang.String headerName)
Converts the
String value in the given column to a BigInteger and returns the result. |
java.math.BigInteger |
getBigInteger(java.lang.String headerName,
java.lang.String format,
java.lang.String... formatOptions)
Converts the
String value in the given column to a BigInteger and returns the result. |
java.lang.Boolean |
getBoolean(java.lang.Enum<?> column)
Converts the
String value in the given column to a Boolean and returns the result. |
java.lang.Boolean |
getBoolean(java.lang.Enum<?> column,
java.lang.String trueString,
java.lang.String falseString)
Converts the
String value in the given column to a Boolean and returns the result. |
java.lang.Boolean |
getBoolean(int columnIndex)
Converts the
String value in the given column to a Boolean and returns the result. |
java.lang.Boolean |
getBoolean(int columnIndex,
java.lang.String trueString,
java.lang.String falseString)
Converts the
String value in the given column to a Boolean and returns the result. |
java.lang.Boolean |
getBoolean(java.lang.String headerName)
Converts the
String value in the given column to a Boolean and returns the result. |
java.lang.Boolean |
getBoolean(java.lang.String headerName,
java.lang.String trueString,
java.lang.String falseString)
Converts the
String value in the given column to a Boolean and returns the result. |
java.lang.Byte |
getByte(java.lang.Enum<?> column)
Converts the
String value in the given column to a Byte and returns the result. |
java.lang.Byte |
getByte(java.lang.Enum<?> column,
java.lang.String format,
java.lang.String... formatOptions)
Converts the
String value in the given column to a Byte and returns the result. |
java.lang.Byte |
getByte(int columnIndex)
Converts the
String value in the given column to a Byte and returns the result. |
java.lang.Byte |
getByte(int columnIndex,
java.lang.String format,
java.lang.String... formatOptions)
Converts the
String value in the given column to a Byte and returns the result. |
java.lang.Byte |
getByte(java.lang.String headerName)
Converts the
String value in the given column to a Byte and returns the result. |
java.lang.Byte |
getByte(java.lang.String headerName,
java.lang.String format,
java.lang.String... formatOptions)
Converts the
String value in the given column to a Byte and returns the result. |
java.util.Calendar |
getCalendar(java.lang.Enum<?> column)
Converts the
String value in the given column to a Calendar and returns the result. |
java.util.Calendar |
getCalendar(java.lang.Enum<?> column,
java.lang.String format,
java.lang.String... formatOptions)
Converts the
String value in the given column to a Calendar and returns the result. |
java.util.Calendar |
getCalendar(int columnIndex)
Converts the
String value in the given column to a Calendar and returns the result. |
java.util.Calendar |
getCalendar(int columnIndex,
java.lang.String format,
java.lang.String... formatOptions)
Converts the
String value in the given column to a Calendar and returns the result. |
java.util.Calendar |
getCalendar(java.lang.String headerName)
Converts the
String value in the given column to a Calendar and returns the result. |
java.util.Calendar |
getCalendar(java.lang.String headerName,
java.lang.String format,
java.lang.String... formatOptions)
Converts the
String value in the given column to a Calendar and returns the result. |
java.lang.Character |
getChar(java.lang.Enum<?> column)
Converts the
String value in the given column to a Character and returns the result. |
java.lang.Character |
getChar(int columnIndex)
Converts the
String value in the given column to a Character and returns the result. |
java.lang.Character |
getChar(java.lang.String headerName)
Converts the
String value in the given column to a Character and returns the result. |
java.util.Date |
getDate(java.lang.Enum<?> column)
Converts the
String value in the given column to a Date and returns the result. |
java.util.Date |
getDate(java.lang.Enum<?> column,
java.lang.String format,
java.lang.String... formatOptions)
Converts the
String value in the given column to a Date and returns the result. |
java.util.Date |
getDate(int columnIndex)
Converts the
String value in the given column to a Date and returns the result. |
java.util.Date |
getDate(int columnIndex,
java.lang.String format,
java.lang.String... formatOptions)
Converts the
String value in the given column to a Date and returns the result. |
java.util.Date |
getDate(java.lang.String headerName)
Converts the
String value in the given column to a Date and returns the result. |
java.util.Date |
getDate(java.lang.String headerName,
java.lang.String format,
java.lang.String... formatOptions)
Converts the
String value in the given column to a Date and returns the result. |
java.lang.Double |
getDouble(java.lang.Enum<?> column)
Converts the
String value in the given column to a Double and returns the result. |
java.lang.Double |
getDouble(java.lang.Enum<?> column,
java.lang.String format,
java.lang.String... formatOptions)
Converts the
String value in the given column to a Double and returns the result. |
java.lang.Double |
getDouble(int columnIndex)
Converts the
String value in the given column to a Double and returns the result. |
java.lang.Double |
getDouble(int columnIndex,
java.lang.String format,
java.lang.String... formatOptions)
Converts the
String value in the given column to a Double and returns the result. |
java.lang.Double |
getDouble(java.lang.String headerName)
Converts the
String value in the given column to a Double and returns the result. |
java.lang.Double |
getDouble(java.lang.String headerName,
java.lang.String format,
java.lang.String... formatOptions)
Converts the
String value in the given column to a Double and returns the result. |
java.lang.Float |
getFloat(java.lang.Enum<?> column)
Converts the
String value in the given column to a Float and returns the result. |
java.lang.Float |
getFloat(java.lang.Enum<?> column,
java.lang.String format,
java.lang.String... formatOptions)
Converts the
String value in the given column to a Float and returns the result. |
java.lang.Float |
getFloat(int columnIndex)
Converts the
String value in the given column to a Float and returns the result. |
java.lang.Float |
getFloat(int columnIndex,
java.lang.String format,
java.lang.String... formatOptions)
Converts the
String value in the given column to a Float and returns the result. |
java.lang.Float |
getFloat(java.lang.String headerName)
Converts the
String value in the given column to a Float and returns the result. |
java.lang.Float |
getFloat(java.lang.String headerName,
java.lang.String format,
java.lang.String... formatOptions)
Converts the
String value in the given column to a Long and returns the result. |
java.lang.Integer |
getInt(java.lang.Enum<?> column)
Converts the
String value in the given column to a Integer and returns the result. |
java.lang.Integer |
getInt(java.lang.Enum<?> column,
java.lang.String format,
java.lang.String... formatOptions)
Converts the
String value in the given column to a Integer and returns the result. |
java.lang.Integer |
getInt(int columnIndex)
Converts the
String value in the given column to a Integer and returns the result. |
java.lang.Integer |
getInt(int columnIndex,
java.lang.String format,
java.lang.String... formatOptions)
Converts the
String value in the given column to a Integer and returns the result. |
java.lang.Integer |
getInt(java.lang.String headerName)
Converts the
String value in the given column to a Integer and returns the result. |
java.lang.Integer |
getInt(java.lang.String headerName,
java.lang.String format,
java.lang.String... formatOptions)
Converts the
String value in the given column to a Integer and returns the result. |
java.lang.Long |
getLong(java.lang.Enum<?> column)
Converts the
String value in the given column to a Long and returns the result. |
java.lang.Long |
getLong(java.lang.Enum<?> column,
java.lang.String format,
java.lang.String... formatOptions)
Converts the
String value in the given column to a Long and returns the result. |
java.lang.Long |
getLong(int columnIndex)
Converts the
String value in the given column to a Long and returns the result. |
java.lang.Long |
getLong(int columnIndex,
java.lang.String format,
java.lang.String... formatOptions)
Converts the
String value in the given column to a Long and returns the result. |
java.lang.Long |
getLong(java.lang.String headerName)
Converts the
String value in the given column to a Long and returns the result. |
java.lang.Long |
getLong(java.lang.String headerName,
java.lang.String format,
java.lang.String... formatOptions)
Converts the
String value in the given column to a Long and returns the result. |
RecordMetaData |
getMetaData()
Returns the
RecordMetaData associated with all records parsed from the input. |
java.lang.Short |
getShort(java.lang.Enum<?> column)
Converts the
String value in the given column to a Short and returns the result. |
java.lang.Short |
getShort(java.lang.Enum<?> column,
java.lang.String format,
java.lang.String... formatOptions)
Converts the
String value in the given column to a Short and returns the result. |
java.lang.Short |
getShort(int columnIndex)
Converts the
String value in the given column to a Short and returns the result. |
java.lang.Short |
getShort(int columnIndex,
java.lang.String format,
java.lang.String... formatOptions)
Converts the
String value in the given column to a Short and returns the result. |
java.lang.Short |
getShort(java.lang.String headerName)
Converts the
String value in the given column to a Short and returns the result. |
java.lang.Short |
getShort(java.lang.String headerName,
java.lang.String format,
java.lang.String... formatOptions)
Converts the
String value in the given column to a Short and returns the result. |
java.lang.String |
getString(java.lang.Enum<?> column)
Returns the
String value in the given column, null or the
default value specified in RecordMetaData.defaultValueOf(String) |
java.lang.String |
getString(java.lang.Enum<?> column,
int maxLength)
Returns the
String value in the given column, truncating it to a given maximum length |
java.lang.String |
getString(int columnIndex)
Returns the
String value in the given column |
java.lang.String |
getString(int columnIndex,
int maxLength)
Returns the
String value in the given column, truncating it to a given maximum length |
java.lang.String |
getString(java.lang.String headerName)
Returns the
String value in the given column |
java.lang.String |
getString(java.lang.String headerName,
int maxLength)
Returns the
String value in the given column, truncating it to a given maximum length |
<T> T |
getValue(java.lang.Enum<?> column,
java.lang.Class<T> expectedType)
Returns the value contained in the given column.
|
<T> T |
getValue(java.lang.Enum<?> column,
java.lang.Class<T> expectedType,
Conversion... conversions)
Returns the value contained in the given column, after applying a sequence of conversion over it.
|
<T> T |
getValue(java.lang.Enum<?> column,
T defaultValue)
Returns the value contained in the given column, or a default value if the column contains
null |
<T> T |
getValue(java.lang.Enum<?> column,
T defaultValue,
Conversion... conversions)
Returns the value contained in a given column, after applying a sequence of conversions over it.
|
<T> T |
getValue(int columnIndex,
java.lang.Class<T> expectedType)
Returns the value contained in the given column.
|
<T> T |
getValue(int columnIndex,
java.lang.Class<T> expectedType,
Conversion... conversions)
Returns the value contained in the given column, after applying a sequence of conversion over it.
|
<T> T |
getValue(int columnIndex,
T defaultValue)
Returns the value contained in the given column, or a default value if the column contains
null |
<T> T |
getValue(int columnIndex,
T defaultValue,
Conversion... conversions)
Returns the value contained in a given column, after applying a sequence of conversions over it.
|
<T> T |
getValue(java.lang.String headerName,
java.lang.Class<T> expectedType)
Returns the value contained in the given column.
|
<T> T |
getValue(java.lang.String headerName,
java.lang.Class<T> expectedType,
Conversion... conversions)
Returns the value contained in the given column, after applying a sequence of conversion over it.
|
<T> T |
getValue(java.lang.String headerName,
T defaultValue)
Returns the value contained in the given column, or a default value if the column contains
null |
<T> T |
getValue(java.lang.String headerName,
T defaultValue,
Conversion... conversions)
Returns the value contained in a given column, after applying a sequence of conversions over it.
|
java.lang.String[] |
getValues()
Returns the plain values obtained from a record parsed from the input.
|
java.lang.String[] |
getValues(java.lang.Enum<?>... fields)
Returns a selection of plain values obtained from a record parsed from the input.
|
java.lang.String[] |
getValues(int... fieldIndexes)
Returns a selection of plain values obtained from a record parsed from the input.
|
java.lang.String[] |
getValues(java.lang.String... fieldNames)
Returns a selection of plain values obtained from a record parsed from the input.
|
int |
hashCode() |
<T extends java.lang.Enum<T>> |
toEnumMap(java.lang.Class<T> enumType,
T... selectedColumns)
Converts the record into a map of
String values. |
<T extends java.lang.Enum<T>> |
toEnumObjectMap(java.lang.Class<T> enumType,
T... selectedColumns)
Converts the record into a map of
Object values. |
java.util.Map<java.lang.String,java.lang.String> |
toFieldMap(java.lang.String... selectedFields)
Converts the record into a map of
String values. |
java.util.Map<java.lang.String,java.lang.Object> |
toFieldObjectMap(java.lang.String... selectedFields)
Converts the record into a map of
Object values. |
java.util.Map<java.lang.Integer,java.lang.String> |
toIndexMap(int... selectedIndexes)
Converts the record into a map of
String values. |
java.util.Map<java.lang.Integer,java.lang.Object> |
toIndexObjectMap(int... selectedIndex)
Converts the record into a map of
Object values. |
java.lang.String |
toString() |
private java.lang.String |
truncate(java.lang.String string,
int maxLength) |
private final java.lang.String[] data
private final RecordMetaDataImpl<C extends Context> metaData
RecordImpl(java.lang.String[] data, RecordMetaDataImpl metaData)
public RecordMetaData getMetaData()
Record
RecordMetaData
associated with all records parsed from the input.
The metadata allows associating types, conversions and default values to any column, which
will be used when performing operations that can convert plain input strings into object instances.
Methods such as Record.toFieldMap(String...)
, Record.fillFieldMap(Map, String...)
and any other
method that returns Objects will use the metadata information to perform data conversions.getMetaData
in interface Record
public java.lang.String[] getValues()
Record
public <T> T getValue(java.lang.String headerName, java.lang.Class<T> expectedType)
Record
getValue
in interface Record
T
- the expected value typeheaderName
- the name of the column whose value will be returnedexpectedType
- the expected type of the value. A conversion will be executed against the value
to produce a result with the expected type.public <T> T getValue(java.lang.Enum<?> column, java.lang.Class<T> expectedType)
Record
getValue
in interface Record
T
- the expected value typecolumn
- the column whose value will be returnedexpectedType
- the expected type of the value. A conversion will be executed against the value
to produce a result with the expected type.public <T> T getValue(int columnIndex, java.lang.Class<T> expectedType)
Record
getValue
in interface Record
T
- the expected value typecolumnIndex
- the position of the column whose value will be returnedexpectedType
- the expected type of the value. A conversion will be executed against the value
to produce a result with the expected type.public <T> T getValue(java.lang.String headerName, java.lang.Class<T> expectedType, Conversion... conversions)
Record
getValue
in interface Record
T
- the expected value typeheaderName
- the name of the column whose value will be returnedexpectedType
- the expected type of the value. A conversion will be executed against the value
to produce a result with the expected type.conversions
- the sequence of Conversion
s to apply over the column value.public <T> T getValue(java.lang.Enum<?> column, java.lang.Class<T> expectedType, Conversion... conversions)
Record
getValue
in interface Record
T
- the expected value typecolumn
- the column whose value will be returnedexpectedType
- the expected type of the value. A conversion will be executed against the value
to produce a result with the expected type.conversions
- the sequence of Conversion
s to apply over the column value.public <T> T getValue(int columnIndex, java.lang.Class<T> expectedType, Conversion... conversions)
Record
getValue
in interface Record
T
- the expected value typecolumnIndex
- the index of the column whose value will be returnedexpectedType
- the expected type of the value. A conversion will be executed against the value
to produce a result with the expected type.conversions
- the sequence of Conversion
s to apply over the column value.public <T> T getValue(java.lang.String headerName, T defaultValue)
Record
null
getValue
in interface Record
T
- the expected value typeheaderName
- the name of the column whose value will be returneddefaultValue
- The default value to use if the column contains null
. Its type will be used to derive
the expected type of the value. A conversion will be executed against the value
to produce a result with the expected type.null
public <T> T getValue(java.lang.Enum<?> column, T defaultValue)
Record
null
getValue
in interface Record
T
- the expected value typecolumn
- the column whose value will be returneddefaultValue
- The default value to use if the column contains null
. Its type will be used to derive
the expected type of the value. A conversion will be executed against the value
to produce a result with the expected type.null
public <T> T getValue(int columnIndex, T defaultValue)
Record
null
getValue
in interface Record
T
- the expected value typecolumnIndex
- index of the column whose value will be returneddefaultValue
- The default value to use if the column contains null
. Its type will be used to derive
the expected type of the value. A conversion will be executed against the value
to produce a result with the expected type.null
public <T> T getValue(java.lang.String headerName, T defaultValue, Conversion... conversions)
Record
getValue
in interface Record
T
- the expected value typeheaderName
- the name of the column whose value will be returneddefaultValue
- The default value to use if the column contains null
.conversions
- the sequence of Conversion
s to apply over the column value.public <T> T getValue(java.lang.Enum<?> column, T defaultValue, Conversion... conversions)
Record
getValue
in interface Record
T
- the expected value typecolumn
- the column whose value will be returneddefaultValue
- The default value to use if the column contains null
.conversions
- the sequence of Conversion
s to apply over the column value.public <T> T getValue(int columnIndex, T defaultValue, Conversion... conversions)
Record
getValue
in interface Record
T
- the expected value typecolumnIndex
- the index of the column whose value will be returneddefaultValue
- The default value to use if the column contains null
.conversions
- the sequence of Conversion
s to apply over the column value.public java.lang.String getString(java.lang.String headerName)
Record
String
value in the given columngetString
in interface Record
headerName
- the name of the columnnull
or the
default value specified in RecordMetaData.defaultValueOf(String)
public java.lang.String getString(java.lang.Enum<?> column)
Record
String
value in the given column, null
or the
default value specified in RecordMetaData.defaultValueOf(String)
getString
in interface Record
column
- the columnnull
or the
default value specified in RecordMetaData.defaultValueOf(String)
public java.lang.String getString(int columnIndex)
Record
String
value in the given columngetString
in interface Record
columnIndex
- the index of the columnnull
or the
default value specified in RecordMetaData.defaultValueOf(String)
public java.lang.String getString(java.lang.String headerName, int maxLength)
Record
String
value in the given column, truncating it to a given maximum lengthgetString
in interface Record
headerName
- the name of the columnmaxLength
- the maximum number of characters to be returned.null
or the
default value specified in RecordMetaData.defaultValueOf(String)
public java.lang.String getString(java.lang.Enum<?> column, int maxLength)
Record
String
value in the given column, truncating it to a given maximum lengthgetString
in interface Record
column
- the columnmaxLength
- the maximum number of characters to be returned.null
or the
default value specified in RecordMetaData.defaultValueOf(String)
public java.lang.String getString(int columnIndex, int maxLength)
Record
String
value in the given column, truncating it to a given maximum lengthgetString
in interface Record
columnIndex
- the index of the columnmaxLength
- the maximum number of characters to be returned.null
or the
default value specified in RecordMetaData.defaultValueOf(String)
private java.lang.String truncate(java.lang.String string, int maxLength)
public java.lang.Byte getByte(java.lang.String headerName, java.lang.String format, java.lang.String... formatOptions)
Record
String
value in the given column to a Byte
and returns the result.
The ByteConversion
conversion will be used perform the transformation.getByte
in interface Record
headerName
- the name of the columnformat
- the numeric mask to apply over the parsed contentformatOptions
- a sequence of key-value pairs with options to configure the underlying formatter.
Each element must be specified as property_name=property_value
,
e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}Byte
stored in the given column, null
or the
default value specified in RecordMetaData.defaultValueOf(String)
public java.lang.Byte getByte(java.lang.Enum<?> column, java.lang.String format, java.lang.String... formatOptions)
Record
String
value in the given column to a Byte
and returns the result.
The ByteConversion
conversion will be used perform the transformation.getByte
in interface Record
column
- the columnformat
- the numeric mask to apply over the parsed contentformatOptions
- a sequence of key-value pairs with options to configure the underlying formatter.
Each element must be specified as property_name=property_value
,
e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}Byte
stored in the given column, null
or the
default value specified in RecordMetaData.defaultValueOf(String)
public java.lang.Byte getByte(int columnIndex, java.lang.String format, java.lang.String... formatOptions)
Record
String
value in the given column to a Byte
and returns the result.
The ByteConversion
conversion will be used perform the transformation.getByte
in interface Record
columnIndex
- the index of columnformat
- the numeric mask to apply over the parsed contentformatOptions
- a sequence of key-value pairs with options to configure the underlying formatter.
Each element must be specified as property_name=property_value
,
e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}Byte
stored in the given column, null
or the
default value specified in RecordMetaData.defaultValueOf(String)
public java.lang.Short getShort(java.lang.String headerName, java.lang.String format, java.lang.String... formatOptions)
Record
String
value in the given column to a Short
and returns the result.
The ShortConversion
conversion will be used perform the transformation.getShort
in interface Record
headerName
- the name of the columnformat
- the numeric mask to apply over the parsed contentformatOptions
- a sequence of key-value pairs with options to configure the underlying formatter.
Each element must be specified as property_name=property_value
,
e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}Short
stored in the given column, null
or the
default value specified in RecordMetaData.defaultValueOf(String)
public java.lang.Short getShort(java.lang.Enum<?> column, java.lang.String format, java.lang.String... formatOptions)
Record
String
value in the given column to a Short
and returns the result.
The ShortConversion
conversion will be used perform the transformation.getShort
in interface Record
column
- the columnformat
- the numeric mask to apply over the parsed contentformatOptions
- a sequence of key-value pairs with options to configure the underlying formatter.
Each element must be specified as property_name=property_value
,
e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}Short
stored in the given column, null
or the
default value specified in RecordMetaData.defaultValueOf(String)
public java.lang.Short getShort(int columnIndex, java.lang.String format, java.lang.String... formatOptions)
Record
String
value in the given column to a Short
and returns the result.
The ShortConversion
conversion will be used perform the transformation.getShort
in interface Record
columnIndex
- the index of columnformat
- the numeric mask to apply over the parsed contentformatOptions
- a sequence of key-value pairs with options to configure the underlying formatter.
Each element must be specified as property_name=property_value
,
e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}Short
stored in the given column, null
or the
default value specified in RecordMetaData.defaultValueOf(String)
public java.lang.Integer getInt(java.lang.String headerName, java.lang.String format, java.lang.String... formatOptions)
Record
String
value in the given column to a Integer
and returns the result.
The IntegerConversion
conversion will be used perform the transformation.getInt
in interface Record
headerName
- the name of the columnformat
- the numeric mask to apply over the parsed contentformatOptions
- a sequence of key-value pairs with options to configure the underlying formatter.
Each element must be specified as property_name=property_value
,
e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}Integer
stored in the given column, null
or the
default value specified in RecordMetaData.defaultValueOf(String)
public java.lang.Integer getInt(java.lang.Enum<?> column, java.lang.String format, java.lang.String... formatOptions)
Record
String
value in the given column to a Integer
and returns the result.
The IntegerConversion
conversion will be used perform the transformation.getInt
in interface Record
column
- the columnformat
- the numeric mask to apply over the parsed contentformatOptions
- a sequence of key-value pairs with options to configure the underlying formatter.
Each element must be specified as property_name=property_value
,
e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}Integer
stored in the given column, null
or the
default value specified in RecordMetaData.defaultValueOf(String)
public java.lang.Integer getInt(int columnIndex, java.lang.String format, java.lang.String... formatOptions)
Record
String
value in the given column to a Integer
and returns the result.
The IntegerConversion
conversion will be used perform the transformation.getInt
in interface Record
columnIndex
- the index of columnformat
- the numeric mask to apply over the parsed contentformatOptions
- a sequence of key-value pairs with options to configure the underlying formatter.
Each element must be specified as property_name=property_value
,
e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}Integer
stored in the given column, null
or the
default value specified in RecordMetaData.defaultValueOf(String)
public java.lang.Long getLong(java.lang.String headerName, java.lang.String format, java.lang.String... formatOptions)
Record
String
value in the given column to a Long
and returns the result.
The LongConversion
conversion will be used perform the transformation.getLong
in interface Record
headerName
- the name of the columnformat
- the numeric mask to apply over the parsed contentformatOptions
- a sequence of key-value pairs with options to configure the underlying formatter.
Each element must be specified as property_name=property_value
,
e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}Long
stored in the given column, null
or the
default value specified in RecordMetaData.defaultValueOf(String)
public java.lang.Long getLong(java.lang.Enum<?> column, java.lang.String format, java.lang.String... formatOptions)
Record
String
value in the given column to a Long
and returns the result.
The LongConversion
conversion will be used perform the transformation.getLong
in interface Record
column
- the columnformat
- the numeric mask to apply over the parsed contentformatOptions
- a sequence of key-value pairs with options to configure the underlying formatter.
Each element must be specified as property_name=property_value
,
e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}Long
stored in the given column, null
or the
default value specified in RecordMetaData.defaultValueOf(String)
public java.lang.Long getLong(int columnIndex, java.lang.String format, java.lang.String... formatOptions)
Record
String
value in the given column to a Long
and returns the result.
The LongConversion
conversion will be used perform the transformation.getLong
in interface Record
columnIndex
- the index of columnformat
- the numeric mask to apply over the parsed contentformatOptions
- a sequence of key-value pairs with options to configure the underlying formatter.
Each element must be specified as property_name=property_value
,
e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}Long
stored in the given column, null
or the
default value specified in RecordMetaData.defaultValueOf(String)
public java.lang.Float getFloat(java.lang.String headerName, java.lang.String format, java.lang.String... formatOptions)
Record
String
value in the given column to a Long
and returns the result.
The FloatConversion
conversion will be used perform the transformation.getFloat
in interface Record
headerName
- the name of the columnformat
- the numeric mask to apply over the parsed contentformatOptions
- a sequence of key-value pairs with options to configure the underlying formatter.
Each element must be specified as property_name=property_value
,
e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}Long
stored in the given column, null
or the
default value specified in RecordMetaData.defaultValueOf(String)
public java.lang.Float getFloat(java.lang.Enum<?> column, java.lang.String format, java.lang.String... formatOptions)
Record
String
value in the given column to a Float
and returns the result.
The FloatConversion
conversion will be used perform the transformation.getFloat
in interface Record
column
- the columnformat
- the numeric mask to apply over the parsed contentformatOptions
- a sequence of key-value pairs with options to configure the underlying formatter.
Each element must be specified as property_name=property_value
,
e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}Float
stored in the given column, null
or the
default value specified in RecordMetaData.defaultValueOf(String)
public java.lang.Float getFloat(int columnIndex, java.lang.String format, java.lang.String... formatOptions)
Record
String
value in the given column to a Float
and returns the result.
The FloatConversion
conversion will be used perform the transformation.getFloat
in interface Record
columnIndex
- the index of columnformat
- the numeric mask to apply over the parsed contentformatOptions
- a sequence of key-value pairs with options to configure the underlying formatter.
Each element must be specified as property_name=property_value
,
e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}Float
stored in the given column, null
or the
default value specified in RecordMetaData.defaultValueOf(String)
public java.lang.Double getDouble(java.lang.String headerName, java.lang.String format, java.lang.String... formatOptions)
Record
String
value in the given column to a Double
and returns the result.
The DoubleConversion
conversion will be used perform the transformation.getDouble
in interface Record
headerName
- the name of the columnformat
- the numeric mask to apply over the parsed contentformatOptions
- a sequence of key-value pairs with options to configure the underlying formatter.
Each element must be specified as property_name=property_value
,
e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}Double
stored in the given column, null
or the
default value specified in RecordMetaData.defaultValueOf(String)
public java.lang.Double getDouble(java.lang.Enum<?> column, java.lang.String format, java.lang.String... formatOptions)
Record
String
value in the given column to a Double
and returns the result.
The DoubleConversion
conversion will be used perform the transformation.getDouble
in interface Record
column
- the columnformat
- the numeric mask to apply over the parsed contentformatOptions
- a sequence of key-value pairs with options to configure the underlying formatter.
Each element must be specified as property_name=property_value
,
e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}Double
stored in the given column, null
or the
default value specified in RecordMetaData.defaultValueOf(String)
public java.lang.Double getDouble(int columnIndex, java.lang.String format, java.lang.String... formatOptions)
Record
String
value in the given column to a Double
and returns the result.
The DoubleConversion
conversion will be used perform the transformation.getDouble
in interface Record
columnIndex
- the index of columnformat
- the numeric mask to apply over the parsed contentformatOptions
- a sequence of key-value pairs with options to configure the underlying formatter.
Each element must be specified as property_name=property_value
,
e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}Double
stored in the given column, null
or the
default value specified in RecordMetaData.defaultValueOf(String)
public java.lang.Character getChar(java.lang.String headerName)
Record
String
value in the given column to a Character
and returns the result.
The CharacterConversion
conversion will be used perform the transformation.getChar
in interface Record
headerName
- the column nameCharacter
stored in the given column, null
or the
default value specified in RecordMetaData.defaultValueOf(String)
public java.lang.Character getChar(java.lang.Enum<?> column)
Record
String
value in the given column to a Character
and returns the result.
The CharacterConversion
conversion will be used perform the transformation.getChar
in interface Record
column
- the columnCharacter
stored in the given column, null
or the
default value specified in RecordMetaData.defaultValueOf(String)
public java.lang.Character getChar(int columnIndex)
Record
String
value in the given column to a Character
and returns the result.
The CharacterConversion
conversion will be used perform the transformation.getChar
in interface Record
columnIndex
- the column indexCharacter
stored in the given column, null
or the
default value specified in RecordMetaData.defaultValueOf(String)
public java.lang.Boolean getBoolean(java.lang.String headerName)
Record
String
value in the given column to a Boolean
and returns the result.
The BooleanConversion
conversion will be used perform the transformation.getBoolean
in interface Record
headerName
- the column nameBoolean
stored in the given column, null
or the
default value specified in RecordMetaData.defaultValueOf(String)
public java.lang.Boolean getBoolean(java.lang.Enum<?> column)
Record
String
value in the given column to a Boolean
and returns the result.
The BooleanConversion
conversion will be used perform the transformation.getBoolean
in interface Record
column
- the columnBoolean
stored in the given column, null
or the
default value specified in RecordMetaData.defaultValueOf(String)
public java.lang.Boolean getBoolean(int columnIndex)
Record
String
value in the given column to a Boolean
and returns the result.
The BooleanConversion
conversion will be used perform the transformation.getBoolean
in interface Record
columnIndex
- the column indexBoolean
stored in the given column, null
or the
default value specified in RecordMetaData.defaultValueOf(String)
public java.lang.Boolean getBoolean(java.lang.String headerName, java.lang.String trueString, java.lang.String falseString)
Record
String
value in the given column to a Boolean
and returns the result.
The BooleanConversion
conversion will be used perform the transformation.getBoolean
in interface Record
headerName
- the column nametrueString
- a String
that represents the Boolean
value true
falseString
- a String
that represents the Boolean
value false
Boolean
stored in the given column if its original String
value matches
either the trueString or falseString, otherwise null
or the default specified in RecordMetaData.defaultValueOf(String)
public java.lang.Boolean getBoolean(java.lang.Enum<?> column, java.lang.String trueString, java.lang.String falseString)
Record
String
value in the given column to a Boolean
and returns the result.
The BooleanConversion
conversion will be used perform the transformation.getBoolean
in interface Record
column
- the columntrueString
- a String
that represents the Boolean
value true
falseString
- a String
that represents the Boolean
value false
Boolean
stored in the given column if its original String
value matches
either the trueString or falseString, otherwise null
or the default specified in RecordMetaData.defaultValueOf(String)
public java.lang.Boolean getBoolean(int columnIndex, java.lang.String trueString, java.lang.String falseString)
Record
String
value in the given column to a Boolean
and returns the result.
The BooleanConversion
conversion will be used perform the transformation.getBoolean
in interface Record
columnIndex
- the column indextrueString
- a String
that represents the Boolean
value true
falseString
- a String
that represents the Boolean
value false
Boolean
stored in the given column if its original String
value matches
either the trueString or falseString, otherwise null
or the default specified in RecordMetaData.defaultValueOf(String)
public java.math.BigInteger getBigInteger(java.lang.String headerName, java.lang.String format, java.lang.String... formatOptions)
Record
String
value in the given column to a BigInteger
and returns the result.
The BigIntegerConversion
conversion will be used perform the transformation.getBigInteger
in interface Record
headerName
- the column nameformat
- the numeric mask to apply over the parsed contentformatOptions
- a sequence of key-value pairs with options to configure the underlying formatter.
Each element must be specified as property_name=property_value
,
e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}BigInteger
stored in the given column, null
or the
default value specified in RecordMetaData.defaultValueOf(String)
public java.math.BigInteger getBigInteger(java.lang.Enum<?> column, java.lang.String format, java.lang.String... formatOptions)
Record
String
value in the given column to a BigInteger
and returns the result.
The BigIntegerConversion
conversion will be used perform the transformation.getBigInteger
in interface Record
column
- the columnformat
- the numeric mask to apply over the parsed contentformatOptions
- a sequence of key-value pairs with options to configure the underlying formatter.
Each element must be specified as property_name=property_value
,
e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}BigInteger
stored in the given column, null
or the
default value specified in RecordMetaData.defaultValueOf(String)
public java.math.BigInteger getBigInteger(int columnIndex, java.lang.String format, java.lang.String... formatOptions)
Record
String
value in the given column to a BigInteger
and returns the result.
The BigIntegerConversion
conversion will be used perform the transformation.getBigInteger
in interface Record
columnIndex
- the index of columnformat
- the numeric mask to apply over the parsed contentformatOptions
- a sequence of key-value pairs with options to configure the underlying formatter.
Each element must be specified as property_name=property_value
,
e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}BigInteger
stored in the given column, null
or the
default value specified in RecordMetaData.defaultValueOf(String)
public java.math.BigDecimal getBigDecimal(java.lang.String headerName, java.lang.String format, java.lang.String... formatOptions)
Record
String
value in the given column to a BigDecimal
and returns the result.
The BigDecimalConversion
conversion will be used perform the transformation.getBigDecimal
in interface Record
headerName
- the column nameformat
- the numeric mask to apply over the parsed contentformatOptions
- a sequence of key-value pairs with options to configure the underlying formatter.
Each element must be specified as property_name=property_value
,
e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}BigDecimal
stored in the given column, null
or the
default value specified in RecordMetaData.defaultValueOf(String)
public java.math.BigDecimal getBigDecimal(java.lang.Enum<?> column, java.lang.String format, java.lang.String... formatOptions)
Record
String
value in the given column to a BigDecimal
and returns the result.
The BigDecimalConversion
conversion will be used perform the transformation.getBigDecimal
in interface Record
column
- the columnformat
- the numeric mask to apply over the parsed contentformatOptions
- a sequence of key-value pairs with options to configure the underlying formatter.
Each element must be specified as property_name=property_value
,
e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}BigDecimal
stored in the given column, null
or the
default value specified in RecordMetaData.defaultValueOf(String)
public java.math.BigDecimal getBigDecimal(int columnIndex, java.lang.String format, java.lang.String... formatOptions)
Record
String
value in the given column to a BigDecimal
and returns the result.
The BigDecimalConversion
conversion will be used perform the transformation.getBigDecimal
in interface Record
columnIndex
- the index of columnformat
- the numeric mask to apply over the parsed contentformatOptions
- a sequence of key-value pairs with options to configure the underlying formatter.
Each element must be specified as property_name=property_value
,
e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}BigDecimal
stored in the given column, null
or the
default value specified in RecordMetaData.defaultValueOf(String)
public java.util.Date getDate(java.lang.String headerName, java.lang.String format, java.lang.String... formatOptions)
Record
String
value in the given column to a Date
and returns the result.
The DateConversion
conversion will be used perform the transformation.getDate
in interface Record
headerName
- the column nameformat
- the numeric mask to apply over the parsed contentformatOptions
- a sequence of key-value pairs with options to configure the underlying formatter.
Each element must be specified as property_name=property_value
,
e.g. options={"lenient=true"}Date
stored in the given column, null
or the
default value specified in RecordMetaData.defaultValueOf(String)
public java.util.Date getDate(java.lang.Enum<?> column, java.lang.String format, java.lang.String... formatOptions)
Record
String
value in the given column to a Date
and returns the result.
The DateConversion
conversion will be used perform the transformation.getDate
in interface Record
column
- the columnformat
- the date mask to apply over the parsed contentformatOptions
- a sequence of key-value pairs with options to configure the underlying formatter.
Each element must be specified as property_name=property_value
,
e.g. options={"lenient=true"}Date
stored in the given column, null
or the
default value specified in RecordMetaData.defaultValueOf(String)
public java.util.Date getDate(int columnIndex, java.lang.String format, java.lang.String... formatOptions)
Record
String
value in the given column to a Date
and returns the result.
The DateConversion
conversion will be used perform the transformation.getDate
in interface Record
columnIndex
- the index of columnformat
- the date mask to apply over the parsed contentformatOptions
- a sequence of key-value pairs with options to configure the underlying formatter.
Each element must be specified as property_name=property_value
,
e.g. options={"lenient=true"}Date
stored in the given column, null
or the
default value specified in RecordMetaData.defaultValueOf(String)
public java.util.Calendar getCalendar(java.lang.String headerName, java.lang.String format, java.lang.String... formatOptions)
Record
String
value in the given column to a Calendar
and returns the result.
The CalendarConversion
conversion will be used perform the transformation.getCalendar
in interface Record
headerName
- the column nameformat
- the date mask to apply over the parsed contentformatOptions
- a sequence of key-value pairs with options to configure the underlying formatter.
Each element must be specified as property_name=property_value
,
e.g. options={"lenient=true"}Calendar
stored in the given column, null
or the
default value specified in RecordMetaData.defaultValueOf(String)
public java.util.Calendar getCalendar(java.lang.Enum<?> column, java.lang.String format, java.lang.String... formatOptions)
Record
String
value in the given column to a Calendar
and returns the result.
The CalendarConversion
conversion will be used perform the transformation.getCalendar
in interface Record
column
- the columnformat
- the date mask to apply over the parsed contentformatOptions
- a sequence of key-value pairs with options to configure the underlying formatter.
Each element must be specified as property_name=property_value
,
e.g. options={"lenient=true"}Calendar
stored in the given column, null
or the
default value specified in RecordMetaData.defaultValueOf(String)
public java.util.Calendar getCalendar(int columnIndex, java.lang.String format, java.lang.String... formatOptions)
Record
String
value in the given column to a Calendar
and returns the result.
The CalendarConversion
conversion will be used perform the transformation.getCalendar
in interface Record
columnIndex
- the index of columnformat
- the date mask to apply over the parsed contentformatOptions
- a sequence of key-value pairs with options to configure the underlying formatter.
Each element must be specified as property_name=property_value
,
e.g. options={"lenient=true"}Calendar
stored in the given column, null
or the
default value specified in RecordMetaData.defaultValueOf(String)
private java.lang.String[] buildSelection(java.lang.String[] selectedFields)
private int[] buildSelection(int[] selectedIndexes)
public <T extends java.lang.Enum<T>> T[] buildSelection(java.lang.Class<T> enumType, T... selectedColumns)
public java.util.Map<java.lang.Integer,java.lang.String> toIndexMap(int... selectedIndexes)
Record
String
values.toIndexMap
in interface Record
selectedIndexes
- the column indexes to use as keys of the map. If no selection then all indexes will be used.public java.util.Map<java.lang.String,java.lang.String> toFieldMap(java.lang.String... selectedFields)
Record
String
values.toFieldMap
in interface Record
selectedFields
- the header names to use as keys of the map. If no selection then all headers will be used.public <T extends java.lang.Enum<T>> java.util.Map<T,java.lang.String> toEnumMap(java.lang.Class<T> enumType, T... selectedColumns)
Record
String
values.toEnumMap
in interface Record
T
- the enumeration typeenumType
- the enumeration type.selectedColumns
- the columns to use as keys of the map. If no selection then all values of the enumeration type will be used.public java.util.Map<java.lang.String,java.lang.String> fillFieldMap(java.util.Map<java.lang.String,java.lang.String> map, java.lang.String... selectedFields)
Record
String
values of this record.fillFieldMap
in interface Record
map
- the map that will receive the valuesselectedFields
- the header names to use as keys of the mappublic java.util.Map<java.lang.Integer,java.lang.String> fillIndexMap(java.util.Map<java.lang.Integer,java.lang.String> map, int... selectedIndexes)
Record
String
values of this record.fillIndexMap
in interface Record
map
- the map that will receive the valuesselectedIndexes
- the column indexes to use as keys of the mappublic <T extends java.lang.Enum<T>> java.util.Map<T,java.lang.String> fillEnumMap(java.util.Map<T,java.lang.String> map, T... selectedColumns)
Record
String
values of this record.fillEnumMap
in interface Record
T
- the enumeration typemap
- the map that will receive the valuesselectedColumns
- the column to use as keys of the mappublic java.util.Map<java.lang.String,java.lang.Object> toFieldObjectMap(java.lang.String... selectedFields)
Record
Object
values. Conversions must be registered using
RecordMetaData.convertFields(Conversion[])
or RecordMetaData.convertIndexes(Conversion[])
(Conversion[])}.
Columns without a known conversion will have their values put into the map as plain String
s.toFieldObjectMap
in interface Record
selectedFields
- the column names to use as keys of the mappublic java.util.Map<java.lang.Integer,java.lang.Object> toIndexObjectMap(int... selectedIndex)
Record
Object
values. Conversions must be registered using
RecordMetaData.convertFields(Conversion[])
or RecordMetaData.convertIndexes(Conversion[])
(Conversion[])}.
Columns without a known conversion will have their values put into the map as plain String
s.toIndexObjectMap
in interface Record
selectedIndex
- the column indexes to use as keys of the mappublic <T extends java.lang.Enum<T>> java.util.Map<T,java.lang.Object> toEnumObjectMap(java.lang.Class<T> enumType, T... selectedColumns)
Record
Object
values. Conversions must be registered using
RecordMetaData.convertFields(Conversion[])
or RecordMetaData.convertIndexes(Conversion[])
(Conversion[])}.
Columns without a known conversion will have their values put into the map as plain String
s.toEnumObjectMap
in interface Record
T
- the enumeration typeenumType
- the enumeration type.selectedColumns
- the column to use as keys of the mappublic java.util.Map<java.lang.String,java.lang.Object> fillFieldObjectMap(java.util.Map<java.lang.String,java.lang.Object> map, java.lang.String... selectedFields)
Record
Object
values of this record. Conversions must be registered using
RecordMetaData.convertFields(Conversion[])
or RecordMetaData.convertIndexes(Conversion[])
(Conversion[])}.
Columns without a known conversion will have their values put into the map as plain String
s.fillFieldObjectMap
in interface Record
map
- the map that will receive the valuesselectedFields
- the column names to use as keys of the mappublic java.util.Map<java.lang.Integer,java.lang.Object> fillIndexObjectMap(java.util.Map<java.lang.Integer,java.lang.Object> map, int... selectedIndexes)
Record
Object
values of this record. Conversions must be registered using
RecordMetaData.convertFields(Conversion[])
or RecordMetaData.convertIndexes(Conversion[])
(Conversion[])}.
Columns without a known conversion will have their values put into the map as plain String
s.fillIndexObjectMap
in interface Record
map
- the map that will receive the valuesselectedIndexes
- the column indexes to use as keys of the mappublic <T extends java.lang.Enum<T>> java.util.Map<T,java.lang.Object> fillEnumObjectMap(java.util.Map<T,java.lang.Object> map, T... selectedColumns)
Record
Object
values of this record. Conversions must be registered using
RecordMetaData.convertFields(Conversion[])
or RecordMetaData.convertIndexes(Conversion[])
(Conversion[])}.
Columns without a known conversion will have their values put into the map as plain String
s.fillEnumObjectMap
in interface Record
T
- the enumeration typemap
- the map that will receive the valuesselectedColumns
- the column to use as keys of the mappublic java.math.BigInteger getBigInteger(java.lang.String headerName)
Record
String
value in the given column to a BigInteger
and returns the result.
The BigIntegerConversion
conversion will be used perform the transformation.getBigInteger
in interface Record
headerName
- the column nameBigInteger
stored in the given column, null
or the
default value specified in RecordMetaData.defaultValueOf(String)
public java.math.BigInteger getBigInteger(java.lang.Enum<?> column)
Record
String
value in the given column to a BigInteger
and returns the result.
The BigIntegerConversion
conversion will be used perform the transformation.getBigInteger
in interface Record
column
- the columnBigInteger
stored in the given column, null
or the
default value specified in RecordMetaData.defaultValueOf(String)
public java.math.BigInteger getBigInteger(int columnIndex)
Record
String
value in the given column to a BigInteger
and returns the result.
The BigIntegerConversion
conversion will be used perform the transformation.getBigInteger
in interface Record
columnIndex
- the columnIndexBigInteger
stored in the given column, null
or the
default value specified in RecordMetaData.defaultValueOf(String)
public java.math.BigDecimal getBigDecimal(java.lang.String headerName)
Record
String
value in the given column to a BigDecimal
and returns the result.
The BigDecimalConversion
conversion will be used perform the transformation.getBigDecimal
in interface Record
headerName
- the column nameBigDecimal
stored in the given column, null
or the
default value specified in RecordMetaData.defaultValueOf(String)
public java.math.BigDecimal getBigDecimal(java.lang.Enum<?> column)
Record
String
value in the given column to a BigDecimal
and returns the result.
The BigDecimalConversion
conversion will be used perform the transformation.getBigDecimal
in interface Record
column
- the columnBigDecimal
stored in the given column, null
or the
default value specified in RecordMetaData.defaultValueOf(String)
public java.math.BigDecimal getBigDecimal(int columnIndex)
Record
String
value in the given column to a BigDecimal
and returns the result.
The BigDecimalConversion
conversion will be used perform the transformation.getBigDecimal
in interface Record
columnIndex
- the columnIndexBigDecimal
stored in the given column, null
or the
default value specified in RecordMetaData.defaultValueOf(String)
public java.lang.Byte getByte(java.lang.String headerName)
Record
String
value in the given column to a Byte
and returns the result.
The ByteConversion
conversion will be used perform the transformation.getByte
in interface Record
headerName
- the column nameByte
stored in the given column, null
or the
default value specified in RecordMetaData.defaultValueOf(String)
public java.lang.Byte getByte(java.lang.Enum<?> column)
Record
String
value in the given column to a Byte
and returns the result.
The ByteConversion
conversion will be used perform the transformation.getByte
in interface Record
column
- the columnByte
stored in the given column, null
or the
default value specified in RecordMetaData.defaultValueOf(String)
public java.lang.Byte getByte(int columnIndex)
Record
String
value in the given column to a Byte
and returns the result.
The ByteConversion
conversion will be used perform the transformation.getByte
in interface Record
columnIndex
- the columnIndexByte
stored in the given column, null
or the
default value specified in RecordMetaData.defaultValueOf(String)
public java.lang.Short getShort(java.lang.String headerName)
Record
String
value in the given column to a Short
and returns the result.
The ShortConversion
conversion will be used perform the transformation.getShort
in interface Record
headerName
- the column nameShort
stored in the given column, null
or the
default value specified in RecordMetaData.defaultValueOf(String)
public java.lang.Short getShort(java.lang.Enum<?> column)
Record
String
value in the given column to a Short
and returns the result.
The ShortConversion
conversion will be used perform the transformation.getShort
in interface Record
column
- the columnShort
stored in the given column, null
or the
default value specified in RecordMetaData.defaultValueOf(String)
public java.lang.Short getShort(int columnIndex)
Record
String
value in the given column to a Short
and returns the result.
The ShortConversion
conversion will be used perform the transformation.getShort
in interface Record
columnIndex
- the columnIndexShort
stored in the given column, null
or the
default value specified in RecordMetaData.defaultValueOf(String)
public java.lang.Integer getInt(java.lang.String headerName)
Record
String
value in the given column to a Integer
and returns the result.
The IntegerConversion
conversion will be used perform the transformation.getInt
in interface Record
headerName
- the column nameInteger
stored in the given column, null
or the
default value specified in RecordMetaData.defaultValueOf(String)
public java.lang.Integer getInt(java.lang.Enum<?> column)
Record
String
value in the given column to a Integer
and returns the result.
The IntegerConversion
conversion will be used perform the transformation.getInt
in interface Record
column
- the columnInteger
stored in the given column, null
or the
default value specified in RecordMetaData.defaultValueOf(String)
public java.lang.Integer getInt(int columnIndex)
Record
String
value in the given column to a Integer
and returns the result.
The IntegerConversion
conversion will be used perform the transformation.getInt
in interface Record
columnIndex
- the columnIndexInteger
stored in the given column, null
or the
default value specified in RecordMetaData.defaultValueOf(String)
public java.lang.Long getLong(java.lang.String headerName)
Record
String
value in the given column to a Long
and returns the result.
The LongConversion
conversion will be used perform the transformation.getLong
in interface Record
headerName
- the column nameLong
stored in the given column, null
or the
default value specified in RecordMetaData.defaultValueOf(String)
public java.lang.Long getLong(java.lang.Enum<?> column)
Record
String
value in the given column to a Long
and returns the result.
The LongConversion
conversion will be used perform the transformation.getLong
in interface Record
column
- the columnLong
stored in the given column, null
or the
default value specified in RecordMetaData.defaultValueOf(String)
public java.lang.Long getLong(int columnIndex)
Record
String
value in the given column to a Long
and returns the result.
The LongConversion
conversion will be used perform the transformation.getLong
in interface Record
columnIndex
- the columnIndexLong
stored in the given column, null
or the
default value specified in RecordMetaData.defaultValueOf(String)
public java.lang.Float getFloat(java.lang.String headerName)
Record
String
value in the given column to a Float
and returns the result.
The FloatConversion
conversion will be used perform the transformation.getFloat
in interface Record
headerName
- the column nameFloat
stored in the given column, null
or the
default value specified in RecordMetaData.defaultValueOf(String)
public java.lang.Float getFloat(java.lang.Enum<?> column)
Record
String
value in the given column to a Float
and returns the result.
The FloatConversion
conversion will be used perform the transformation.getFloat
in interface Record
column
- the columnFloat
stored in the given column, null
or the
default value specified in RecordMetaData.defaultValueOf(String)
public java.lang.Float getFloat(int columnIndex)
Record
String
value in the given column to a Float
and returns the result.
The FloatConversion
conversion will be used perform the transformation.getFloat
in interface Record
columnIndex
- the columnIndexFloat
stored in the given column, null
or the
default value specified in RecordMetaData.defaultValueOf(String)
public java.lang.Double getDouble(java.lang.String headerName)
Record
String
value in the given column to a Double
and returns the result.
The DoubleConversion
conversion will be used perform the transformation.getDouble
in interface Record
headerName
- the column nameDouble
stored in the given column, null
or the
default value specified in RecordMetaData.defaultValueOf(String)
public java.lang.Double getDouble(java.lang.Enum<?> column)
Record
String
value in the given column to a Double
and returns the result.
The DoubleConversion
conversion will be used perform the transformation.getDouble
in interface Record
column
- the columnDouble
stored in the given column, null
or the
default value specified in RecordMetaData.defaultValueOf(String)
public java.lang.Double getDouble(int columnIndex)
Record
String
value in the given column to a Double
and returns the result.
The DoubleConversion
conversion will be used perform the transformation.getDouble
in interface Record
columnIndex
- the columnIndexDouble
stored in the given column, null
or the
default value specified in RecordMetaData.defaultValueOf(String)
public java.util.Date getDate(java.lang.String headerName)
Record
String
value in the given column to a Date
and returns the result.
The DateConversion
conversion sequence registered using
RecordMetaData.convertFields(Conversion[])
will be used perform the transformation.getDate
in interface Record
headerName
- the column nameDate
stored in the given column, null
or the
default value specified in RecordMetaData.defaultValueOf(String)
public java.util.Date getDate(java.lang.Enum<?> column)
Record
String
value in the given column to a Date
and returns the result.
The DateConversion
conversion sequence registered using
RecordMetaData.convertFields(Conversion[])
will be used perform the transformation.getDate
in interface Record
column
- the columnDate
stored in the given column, null
or the
default value specified in RecordMetaData.defaultValueOf(String)
public java.util.Date getDate(int columnIndex)
Record
String
value in the given column to a Date
and returns the result.
The DateConversion
conversion sequence registered using
RecordMetaData.convertFields(Conversion[])
will be used perform the transformation.getDate
in interface Record
columnIndex
- the column indexDate
stored in the given column, null
or the
default value specified in RecordMetaData.defaultValueOf(String)
public java.util.Calendar getCalendar(java.lang.String headerName)
Record
String
value in the given column to a Calendar
and returns the result.
The CalendarConversion
conversion sequence registered using
RecordMetaData.convertFields(Conversion[])
will be used perform the transformation.getCalendar
in interface Record
headerName
- the column nameCalendar
stored in the given column, null
or the
default value specified in RecordMetaData.defaultValueOf(String)
public java.util.Calendar getCalendar(java.lang.Enum<?> column)
Record
String
value in the given column to a Calendar
and returns the result.
The CalendarConversion
conversion sequence registered using
RecordMetaData.convertFields(Conversion[])
will be used perform the transformation.getCalendar
in interface Record
column
- the columnCalendar
stored in the given column, null
or the
default value specified in RecordMetaData.defaultValueOf(String)
public java.util.Calendar getCalendar(int columnIndex)
Record
String
value in the given column to a Calendar
and returns the result.
The CalendarConversion
conversion sequence registered using
RecordMetaData.convertFields(Conversion[])
will be used perform the transformation.getCalendar
in interface Record
columnIndex
- the column indexCalendar
stored in the given column, null
or the
default value specified in RecordMetaData.defaultValueOf(String)
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String[] getValues(java.lang.String... fieldNames)
Record
public java.lang.String[] getValues(int... fieldIndexes)
Record
public java.lang.String[] getValues(java.lang.Enum<?>... fields)
Record