Interface Row
public interface Row
Optional interface that rows can extend for supporting reflection-style access to columns.
If the row represents a join, dotted name paths can be used to access sub columns.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault StringcolumnMethodName(String name) Returns the method name for the given column name.Class<?> columnType(String name) Returns the column type for the given column name.Returns the value for the given column name.booleanget_boolean(String name) Returns a boolean value for the given column name, performing a conversion if necessary.boolean[]get_boolean_array(String name) Returns a boolean array value for the given column name, performing a conversion if necessary.byteReturns a byte value for the given column name, performing a conversion if necessary.byte[]get_byte_array(String name) Returns a byte array value for the given column name, performing a conversion if necessary.charReturns a char value for the given column name, performing a conversion if necessary.char[]get_char_array(String name) Returns a char array value for the given column name, performing a conversion if necessary.doubleget_double(String name) Returns a double value for the given column name, performing a conversion if necessary.double[]get_double_array(String name) Returns a double array value for the given column name, performing a conversion if necessary.floatReturns a float value for the given column name, performing a conversion if necessary.float[]get_float_array(String name) Returns a float array value for the given column name, performing a conversion if necessary.intReturns an int value for the given column name, performing a conversion if necessary.int[]get_int_array(String name) Returns an int array value for the given column name, performing a conversion if necessary.longReturns a long value for the given column name, performing a conversion if necessary.long[]get_long_array(String name) Returns a long array value for the given column name, performing a conversion if necessary.shortReturns a short value for the given column name, performing a conversion if necessary.short[]get_short_array(String name) Returns a short array value for the given column name, performing a conversion if necessary.getBigDecimal(String name) Returns a BigDecimal value for the given column name, performing a conversion if necessary.getBigInteger(String name) Returns a BigInteger value for the given column name, performing a conversion if necessary.getBoolean(String name) Returns a Boolean value for the given column name, performing a conversion if necessary.Returns a Byte value for the given column name, performing a conversion if necessary.getCharacter(String name) Returns a Character value for the given column name, performing a conversion if necessary.Returns a Double value for the given column name, performing a conversion if necessary.Returns a Float value for the given column name, performing a conversion if necessary.getInteger(String name) Returns an Integer value for the given column name, performing a conversion if necessary.Returns a Long value for the given column name, performing a conversion if necessary.Returns a Short value for the given column name, performing a conversion if necessary.Returns a String value for the given column name, performing a conversion if necessary.voidSets a boolean value for the given column name, performing a conversion if necessary.voidSets a boolean array value for the given column name, performing a conversion if necessary.voidSets a byte value for the given column name, performing a conversion if necessary.voidSets a byte array value for the given column name, performing a conversion if necessary.voidSets a char value for the given column name, performing a conversion if necessary.voidSets a char array value for the given column name, performing a conversion if necessary.voidSets a double value for the given column name, performing a conversion if necessary.voidSets a double array value for the given column name, performing a conversion if necessary.voidSets a float value for the given column name, performing a conversion if necessary.voidSets a float array value for the given column name, performing a conversion if necessary.voidSets an int value for the given column name, performing a conversion if necessary.voidSets an int array value for the given column name, performing a conversion if necessary.voidSets a long value for the given column name, performing a conversion if necessary.voidSets a long array value for the given column name, performing a conversion if necessary.voidSets a short value for the given column name, performing a conversion if necessary.voidSets a short array value for the given column name, performing a conversion if necessary.voidSets a Boolean value for the given column name, performing a conversion if necessary.voidSets a Byte value for the given column name, performing a conversion if necessary.voidSets a Character value for the given column name, performing a conversion if necessary.voidSets a Double value for the given column name, performing a conversion if necessary.voidSets a Float value for the given column name, performing a conversion if necessary.voidSets an Integer value for the given column name, performing a conversion if necessary.voidSets a Long value for the given column name, performing a conversion if necessary.voidSets a value for the given column name, performing a conversion if necessary.voidSets a Short value for the given column name, performing a conversion if necessary.voidSets a String value for the given column name, performing a conversion if necessary.voidset(String name, BigDecimal value) Sets a BigDecimal value for the given column name, performing a conversion if necessary.voidset(String name, BigInteger value) Sets a BigInteger value for the given column name, performing a conversion if necessary.
-
Method Details
-
columnType
Returns the column type for the given column name.- Parameters:
name- column name- Returns:
- column type
- Throws:
IllegalArgumentException- if the given column name is unknown
-
columnMethodName
Returns the method name for the given column name. The method name can differ from the column name if it needed to be renamed to something legal.- Parameters:
name- column name- Returns:
- column method name
- Throws:
IllegalArgumentException- if the given column name is unknown
-
get
Returns the value for the given column name.- Parameters:
name- column name- Returns:
- the column value, possibly boxed
- Throws:
IllegalArgumentException- if the given column name is unknown
-
get_boolean
Returns a boolean value for the given column name, performing a conversion if necessary.- Parameters:
name- column name- Returns:
- the column value as a boolean
- Throws:
IllegalArgumentException- if the given column name is unknownConversionException
-
get_boolean_array
Returns a boolean array value for the given column name, performing a conversion if necessary.- Parameters:
name- column name- Returns:
- the column value as a boolean array
- Throws:
IllegalArgumentException- if the given column name is unknownConversionException
-
get_byte
Returns a byte value for the given column name, performing a conversion if necessary.- Parameters:
name- column name- Returns:
- the column value as a byte
- Throws:
IllegalArgumentException- if the given column name is unknownConversionException
-
get_byte_array
Returns a byte array value for the given column name, performing a conversion if necessary.- Parameters:
name- column name- Returns:
- the column value as a byte array
- Throws:
IllegalArgumentException- if the given column name is unknownConversionException
-
get_short
Returns a short value for the given column name, performing a conversion if necessary.- Parameters:
name- column name- Returns:
- the column value as a short
- Throws:
IllegalArgumentException- if the given column name is unknownConversionException
-
get_short_array
Returns a short array value for the given column name, performing a conversion if necessary.- Parameters:
name- column name- Returns:
- the column value as a short array
- Throws:
IllegalArgumentException- if the given column name is unknownConversionException
-
get_char
Returns a char value for the given column name, performing a conversion if necessary.- Parameters:
name- column name- Returns:
- the column value as a char
- Throws:
IllegalArgumentException- if the given column name is unknownConversionException
-
get_char_array
Returns a char array value for the given column name, performing a conversion if necessary.- Parameters:
name- column name- Returns:
- the column value as a char array
- Throws:
IllegalArgumentException- if the given column name is unknownConversionException
-
get_int
Returns an int value for the given column name, performing a conversion if necessary.- Parameters:
name- column name- Returns:
- the column value as an int
- Throws:
IllegalArgumentException- if the given column name is unknownConversionException
-
get_int_array
Returns an int array value for the given column name, performing a conversion if necessary.- Parameters:
name- column name- Returns:
- the column value as an int array
- Throws:
IllegalArgumentException- if the given column name is unknownConversionException
-
get_long
Returns a long value for the given column name, performing a conversion if necessary.- Parameters:
name- column name- Returns:
- the column value as a long
- Throws:
IllegalArgumentException- if the given column name is unknownConversionException
-
get_long_array
Returns a long array value for the given column name, performing a conversion if necessary.- Parameters:
name- column name- Returns:
- the column value as a long array
- Throws:
IllegalArgumentException- if the given column name is unknownConversionException
-
get_float
Returns a float value for the given column name, performing a conversion if necessary.- Parameters:
name- column name- Returns:
- the column value as a float
- Throws:
IllegalArgumentException- if the given column name is unknownConversionException
-
get_float_array
Returns a float array value for the given column name, performing a conversion if necessary.- Parameters:
name- column name- Returns:
- the column value as a float array
- Throws:
IllegalArgumentException- if the given column name is unknownConversionException
-
get_double
Returns a double value for the given column name, performing a conversion if necessary.- Parameters:
name- column name- Returns:
- the column value as a double
- Throws:
IllegalArgumentException- if the given column name is unknownConversionException
-
get_double_array
Returns a double array value for the given column name, performing a conversion if necessary.- Parameters:
name- column name- Returns:
- the column value as a double array
- Throws:
IllegalArgumentException- if the given column name is unknownConversionException
-
getBoolean
Returns a Boolean value for the given column name, performing a conversion if necessary.- Parameters:
name- column name- Returns:
- the column value as a Boolean
- Throws:
IllegalArgumentException- if the given column name is unknownConversionException
-
getByte
Returns a Byte value for the given column name, performing a conversion if necessary.- Parameters:
name- column name- Returns:
- the column value as a Byte
- Throws:
IllegalArgumentException- if the given column name is unknownConversionException
-
getShort
Returns a Short value for the given column name, performing a conversion if necessary.- Parameters:
name- column name- Returns:
- the column value as a Short
- Throws:
IllegalArgumentException- if the given column name is unknownConversionException
-
getCharacter
Returns a Character value for the given column name, performing a conversion if necessary.- Parameters:
name- column name- Returns:
- the column value as a Character
- Throws:
IllegalArgumentException- if the given column name is unknownConversionException
-
getInteger
Returns an Integer value for the given column name, performing a conversion if necessary.- Parameters:
name- column name- Returns:
- the column value as an Integer
- Throws:
IllegalArgumentException- if the given column name is unknownConversionException
-
getLong
Returns a Long value for the given column name, performing a conversion if necessary.- Parameters:
name- column name- Returns:
- the column value as a Long
- Throws:
IllegalArgumentException- if the given column name is unknownConversionException
-
getFloat
Returns a Float value for the given column name, performing a conversion if necessary.- Parameters:
name- column name- Returns:
- the column value as a Float
- Throws:
IllegalArgumentException- if the given column name is unknownConversionException
-
getDouble
Returns a Double value for the given column name, performing a conversion if necessary.- Parameters:
name- column name- Returns:
- the column value as a Double
- Throws:
IllegalArgumentException- if the given column name is unknownConversionException
-
getString
Returns a String value for the given column name, performing a conversion if necessary.- Parameters:
name- column name- Returns:
- the column value as a String
- Throws:
IllegalArgumentException- if the given column name is unknown
-
getBigInteger
Returns a BigInteger value for the given column name, performing a conversion if necessary.- Parameters:
name- column name- Returns:
- the column value as a BigInteger
- Throws:
IllegalArgumentException- if the given column name is unknownConversionException
-
getBigDecimal
Returns a BigDecimal value for the given column name, performing a conversion if necessary.- Parameters:
name- column name- Returns:
- the column value as a BigDecimal
- Throws:
IllegalArgumentException- if the given column name is unknownConversionException
-
set
Sets a value for the given column name, performing a conversion if necessary.- Parameters:
name- column namevalue- the column value to set- Throws:
IllegalArgumentException- if the given column name is unknownConversionException
-
set
Sets a boolean value for the given column name, performing a conversion if necessary.- Parameters:
name- column namevalue- the column value to set- Throws:
IllegalArgumentException- if the given column name is unknownConversionException
-
set
Sets a boolean array value for the given column name, performing a conversion if necessary.- Parameters:
name- column namevalue- the column value to set- Throws:
IllegalArgumentException- if the given column name is unknownConversionException
-
set
Sets a byte value for the given column name, performing a conversion if necessary.- Parameters:
name- column namevalue- the column value to set- Throws:
IllegalArgumentException- if the given column name is unknownConversionException
-
set
Sets a byte array value for the given column name, performing a conversion if necessary.- Parameters:
name- column namevalue- the column value to set- Throws:
IllegalArgumentException- if the given column name is unknownConversionException
-
set
Sets a short value for the given column name, performing a conversion if necessary.- Parameters:
name- column namevalue- the column value to set- Throws:
IllegalArgumentException- if the given column name is unknownConversionException
-
set
Sets a short array value for the given column name, performing a conversion if necessary.- Parameters:
name- column namevalue- the column value to set- Throws:
IllegalArgumentException- if the given column name is unknownConversionException
-
set
Sets a char value for the given column name, performing a conversion if necessary.- Parameters:
name- column namevalue- the column value to set- Throws:
IllegalArgumentException- if the given column name is unknownConversionException
-
set
Sets a char array value for the given column name, performing a conversion if necessary.- Parameters:
name- column namevalue- the column value to set- Throws:
IllegalArgumentException- if the given column name is unknownConversionException
-
set
Sets an int value for the given column name, performing a conversion if necessary.- Parameters:
name- column namevalue- the column value to set- Throws:
IllegalArgumentException- if the given column name is unknownConversionException
-
set
Sets an int array value for the given column name, performing a conversion if necessary.- Parameters:
name- column namevalue- the column value to set- Throws:
IllegalArgumentException- if the given column name is unknownConversionException
-
set
Sets a long value for the given column name, performing a conversion if necessary.- Parameters:
name- column namevalue- the column value to set- Throws:
IllegalArgumentException- if the given column name is unknownConversionException
-
set
Sets a long array value for the given column name, performing a conversion if necessary.- Parameters:
name- column namevalue- the column value to set- Throws:
IllegalArgumentException- if the given column name is unknownConversionException
-
set
Sets a float value for the given column name, performing a conversion if necessary.- Parameters:
name- column namevalue- the column value to set- Throws:
IllegalArgumentException- if the given column name is unknownConversionException
-
set
Sets a float array value for the given column name, performing a conversion if necessary.- Parameters:
name- column namevalue- the column value to set- Throws:
IllegalArgumentException- if the given column name is unknownConversionException
-
set
Sets a double value for the given column name, performing a conversion if necessary.- Parameters:
name- column namevalue- the column value to set- Throws:
IllegalArgumentException- if the given column name is unknownConversionException
-
set
Sets a double array value for the given column name, performing a conversion if necessary.- Parameters:
name- column namevalue- the column value to set- Throws:
IllegalArgumentException- if the given column name is unknownConversionException
-
set
Sets a Boolean value for the given column name, performing a conversion if necessary.- Parameters:
name- column namevalue- the column value to set- Throws:
IllegalArgumentException- if the given column name is unknownConversionException
-
set
Sets a Byte value for the given column name, performing a conversion if necessary.- Parameters:
name- column namevalue- the column value to set- Throws:
IllegalArgumentException- if the given column name is unknownConversionException
-
set
Sets a Short value for the given column name, performing a conversion if necessary.- Parameters:
name- column namevalue- the column value to set- Throws:
IllegalArgumentException- if the given column name is unknownConversionException
-
set
Sets a Character value for the given column name, performing a conversion if necessary.- Parameters:
name- column namevalue- the column value to set- Throws:
IllegalArgumentException- if the given column name is unknownConversionException
-
set
Sets an Integer value for the given column name, performing a conversion if necessary.- Parameters:
name- column namevalue- the column value to set- Throws:
IllegalArgumentException- if the given column name is unknownConversionException
-
set
Sets a Long value for the given column name, performing a conversion if necessary.- Parameters:
name- column namevalue- the column value to set- Throws:
IllegalArgumentException- if the given column name is unknownConversionException
-
set
Sets a Float value for the given column name, performing a conversion if necessary.- Parameters:
name- column namevalue- the column value to set- Throws:
IllegalArgumentException- if the given column name is unknownConversionException
-
set
Sets a Double value for the given column name, performing a conversion if necessary.- Parameters:
name- column namevalue- the column value to set- Throws:
IllegalArgumentException- if the given column name is unknownConversionException
-
set
Sets a String value for the given column name, performing a conversion if necessary.- Parameters:
name- column namevalue- the column value to set- Throws:
IllegalArgumentException- if the given column name is unknownConversionException
-
set
Sets a BigInteger value for the given column name, performing a conversion if necessary.- Parameters:
name- column namevalue- the column value to set- Throws:
IllegalArgumentException- if the given column name is unknownConversionException
-
set
Sets a BigDecimal value for the given column name, performing a conversion if necessary.- Parameters:
name- column namevalue- the column value to set- Throws:
IllegalArgumentException- if the given column name is unknownConversionException
-