public interface Row
This class defines a set of methods that can be used to get values from the
row either by a column name or by a column index. Each method has a version
returning an Optional
to allow null-safe handling of SQL
NULL
values.
Modifier and Type | Method and Description |
---|---|
java.math.BigDecimal |
getBigDecimal(int idx)
Returns a
BigDecimal from column with a given index. |
java.math.BigDecimal |
getBigDecimal(java.lang.String name)
Returns a
BigDecimal from column with a given name. |
java.util.Optional<java.math.BigDecimal> |
getBigDecimalOpt(int idx)
Returns a
BigDecimal from column with a given index. |
java.util.Optional<java.math.BigDecimal> |
getBigDecimalOpt(java.lang.String name)
Returns a
BigDecimal from column with a given name. |
java.lang.Boolean |
getBool(int idx)
Returns a boolean value from column with a given index.
|
java.lang.Boolean |
getBool(java.lang.String name)
Returns a boolean value from column with a given name.
|
java.util.Optional<java.lang.Boolean> |
getBoolOpt(int idx)
Returns a boolean value from column with a given index.
|
java.util.Optional<java.lang.Boolean> |
getBoolOpt(java.lang.String name)
Returns a boolean value from column with a given name.
|
byte[] |
getBytes(int idx)
Returns a byte array from column with a given index.
|
byte[] |
getBytes(java.lang.String name)
Returns a byte array from column with a given name.
|
java.util.Optional<byte[]> |
getBytesOpt(int idx)
Returns a byte array from column with a given index.
|
java.util.Optional<byte[]> |
getBytesOpt(java.lang.String name)
Returns a byte array from column with a given name.
|
java.lang.Character |
getChar(int idx)
Returns a character from column with a given index.
|
java.lang.Character |
getChar(java.lang.String name)
Returns a character from column with a given name.
|
java.util.Optional<java.lang.Character> |
getCharOpt(int idx)
Returns a character from column with a given index.
|
java.util.Optional<java.lang.Character> |
getCharOpt(java.lang.String name)
Returns a character from column with a given name.
|
<T> T |
getCol(int idx,
java.lang.Class<T> cls)
Returns an object of type
T from column with a given index. |
<T> T |
getCol(java.lang.String name,
java.lang.Class<T> cls)
Returns an object of type
T from column with a given name. |
<T> java.util.Optional<T> |
getColOpt(int idx,
java.lang.Class<T> cls)
Returns an object of type
T from column with a given index. |
<T> java.util.Optional<T> |
getColOpt(java.lang.String name,
java.lang.Class<T> cls)
Returns an object of type
T from column with a given name. |
java.lang.Double |
getDouble(int idx)
Returns a
Double from column with a given index. |
java.lang.Double |
getDouble(java.lang.String name)
Returns a
Double from column with a given name. |
java.util.Optional<java.lang.Double> |
getDoubleOpt(int idx)
Returns a
Double from column with a given index. |
java.util.Optional<java.lang.Double> |
getDoubleOpt(java.lang.String name)
Returns a
Double from column with a given name. |
java.lang.Float |
getFloat(int idx)
Returns a
Float from column with a given index. |
java.lang.Float |
getFloat(java.lang.String name)
Returns a
Float from column with a given name. |
java.util.Optional<java.lang.Float> |
getFloatOpt(int idx)
Returns a
Float from column with a given index. |
java.util.Optional<java.lang.Float> |
getFloatOpt(java.lang.String name)
Returns a
Float from column with a given name. |
java.time.Instant |
getInstant(int idx)
Returns an
Instant from column with a given index. |
java.time.Instant |
getInstant(java.lang.String name)
Returns an
Instant from column with a given name. |
java.util.Optional<java.time.Instant> |
getInstantOpt(int idx)
Returns an
Instant from column with a given index. |
java.util.Optional<java.time.Instant> |
getInstantOpt(java.lang.String name)
Returns an
Instant from column with a given name. |
java.lang.Integer |
getInt(int idx)
Returns an
int from column with a given index. |
java.lang.Integer |
getInt(java.lang.String name)
Returns an
int from column with a given name. |
java.util.Optional<java.lang.Integer> |
getIntOpt(int idx)
Returns an
int from column with a given index. |
java.util.Optional<java.lang.Integer> |
getIntOpt(java.lang.String name)
Returns an
int from column with a given name. |
java.time.LocalDate |
getLocalDate(int idx)
Returns a
LocalDate from column with a given index. |
java.time.LocalDate |
getLocalDate(java.lang.String name)
Returns a
LocalDate from column with a given name. |
java.util.Optional<java.time.LocalDate> |
getLocalDateOpt(int idx)
Returns a
LocalDate from column with a given index. |
java.util.Optional<java.time.LocalDate> |
getLocalDateOpt(java.lang.String name)
Returns a
LocalDate from column with a given name. |
java.time.LocalDateTime |
getLocalDateTime(int idx)
Returns a
LocalDateTime from column with a given index. |
java.time.LocalDateTime |
getLocalDateTime(java.lang.String name)
Returns a
LocalDateTime from column with a given name. |
java.util.Optional<java.time.LocalDateTime> |
getLocalDateTimeOpt(int idx)
Returns a
LocalDateTime from column with a given index. |
java.util.Optional<java.time.LocalDateTime> |
getLocalDateTimeOpt(java.lang.String name)
Returns a
LocalDateTime from column with a given name. |
java.time.LocalTime |
getLocalTime(int idx)
Returns a
LocalDate from column with a given index. |
java.time.LocalTime |
getLocalTime(java.lang.String name)
Returns a
LocalDate from column with a given name. |
java.util.Optional<java.time.LocalTime> |
getLocalTimeOpt(int idx)
Returns a
LocalDate from column with a given index. |
java.util.Optional<java.time.LocalTime> |
getLocalTimeOpt(java.lang.String name)
Returns a
LocalDate from column with a given name. |
java.lang.Long |
getLong(int idx)
Returns a
Long from column with a given index. |
java.lang.Long |
getLong(java.lang.String name)
Returns a
Long from column with a given name. |
java.util.Optional<java.lang.Long> |
getLongOpt(int idx)
Returns a
Long from column with a given index. |
java.util.Optional<java.lang.Long> |
getLongOpt(java.lang.String name)
Returns a
Long from column with a given name. |
SqlNumeric |
getNumeric(int idx)
Returns a
SqlNumeric from column with a given index. |
SqlNumeric |
getNumeric(java.lang.String name)
Returns a
SqlNumeric from column with a given name. |
java.util.Optional<SqlNumeric> |
getNumericOpt(int idx)
Returns a
SqlNumeric from column with a given index. |
java.util.Optional<SqlNumeric> |
getNumericOpt(java.lang.String name)
Returns a
SqlNumeric from column with a given name. |
java.lang.Short |
getShort(int idx)
Returns a
Short from column with a given index. |
java.lang.Short |
getShort(java.lang.String name)
Returns a
Short from column with a given name. |
java.util.Optional<java.lang.Short> |
getShortOpt(int idx)
Returns a
Short from column with a given index. |
java.util.Optional<java.lang.Short> |
getShortOpt(java.lang.String name)
Returns a
Short from column with a given name. |
java.lang.String |
getStr(int idx)
Returns a
String from column with a given index. |
java.lang.String |
getStr(java.lang.String name)
Returns a
String from column with a given name. |
java.util.Optional<java.lang.String> |
getStrOpt(int idx)
Returns a
String from column with a given index. |
java.util.Optional<java.lang.String> |
getStrOpt(java.lang.String name)
Returns a
String from column with a given name. |
java.util.UUID |
getUuid(int idx)
Returns an
UUID from column with a given index. |
java.util.UUID |
getUuid(java.lang.String name)
Returns an
UUID from column with a given name. |
java.util.Optional<java.util.UUID> |
getUuidOpt(int idx)
Returns an
UUID from column with a given index. |
java.util.Optional<java.util.UUID> |
getUuidOpt(java.lang.String name)
Returns an
UUID from column with a given name. |
<T> T getCol(int idx, java.lang.Class<T> cls) throws ConversionException
T
from column with a given index.
For SQL NULL
values, ConversionException
is thrown. For null-safety consider using
corresponding *Opt
method.
ConversionException
<T> java.util.Optional<T> getColOpt(int idx, java.lang.Class<T> cls) throws ConversionException
T
from column with a given index.
For SQL NULL
values an empty Optional
is returned.
ConversionException
<T> T getCol(java.lang.String name, java.lang.Class<T> cls) throws ConversionException
T
from column with a given name.
For SQL NULL
values, ConversionException
is thrown. For null-safety consider using
corresponding *Opt
method.
ConversionException
<T> java.util.Optional<T> getColOpt(java.lang.String name, java.lang.Class<T> cls) throws ConversionException
T
from column with a given name.
For SQL NULL
values an empty Optional
is returned.
ConversionException
java.lang.String getStr(java.lang.String name) throws ConversionException
String
from column with a given name.
For SQL NULL
values, ConversionException
is thrown. For null-safety consider using
corresponding *Opt
method.
ConversionException
java.util.Optional<java.lang.String> getStrOpt(java.lang.String name) throws ConversionException
String
from column with a given name.
For SQL NULL
values an empty Optional
is returned.
ConversionException
java.lang.String getStr(int idx) throws ConversionException
String
from column with a given index.
For SQL NULL
values, ConversionException
is thrown. For null-safety consider using
corresponding *Opt
method.
ConversionException
java.util.Optional<java.lang.String> getStrOpt(int idx) throws ConversionException
String
from column with a given index.
For SQL NULL
values an empty Optional
is returned.
ConversionException
java.lang.Boolean getBool(java.lang.String name) throws ConversionException
'T'
, 'Y'
or '1'
character values or 1
numeric value are
considered true
.'F'
, 'N'
or '0'
character values or 0
numeric value are
considered false
.
For SQL NULL
values, ConversionException
is thrown. For null-safety consider using
corresponding *Opt
method.
ConversionException
java.util.Optional<java.lang.Boolean> getBoolOpt(java.lang.String name) throws ConversionException
'T'
, 'Y'
or '1'
character values or 1
numeric value are
considered true
.'F'
, 'N'
or '0'
character values or 0
numeric value are
considered false
.
For SQL NULL
values an empty Optional
is returned.
ConversionException
java.lang.Boolean getBool(int idx) throws ConversionException
'T'
, 'Y'
or '1'
character values or 1
numeric value are
considered true
.'F'
, 'N'
or '0'
character values or 0
numeric value are
considered false
.
For SQL NULL
values, ConversionException
is thrown. For null-safety consider using
corresponding *Opt
method.
ConversionException
java.util.Optional<java.lang.Boolean> getBoolOpt(int idx) throws ConversionException
'T'
, 'Y'
or '1'
character values or 1
numeric value are
considered true
.'F'
, 'N'
or '0'
character values or 0
numeric value are
considered false
.
For SQL NULL
values an empty Optional
is returned.
ConversionException
java.lang.Character getChar(java.lang.String name) throws ConversionException
Varchar types with a single character are convertible to a Char
.
For SQL NULL
values, ConversionException
is thrown. For null-safety consider using
corresponding *Opt
method.
ConversionException
java.util.Optional<java.lang.Character> getCharOpt(java.lang.String name) throws ConversionException
Varchar types with a single character are convertible to a Char
.
For SQL NULL
values an empty Optional
is returned.
ConversionException
java.lang.Character getChar(int idx) throws ConversionException
Varchar types with a single character are convertible to a Char
.
For SQL NULL
values, ConversionException
is thrown. For null-safety consider using
corresponding *Opt
method.
ConversionException
java.util.Optional<java.lang.Character> getCharOpt(int idx) throws ConversionException
Varchar types with a single character are convertible to a Char
.
For SQL NULL
values an empty Optional
is returned.
ConversionException
java.lang.Short getShort(java.lang.String name) throws ConversionException
Short
from column with a given name.
All numeric types can be converted to Short
, but some conversions may
involve rounding or truncation.
For SQL NULL
values, ConversionException
is thrown. For null-safety consider using
corresponding *Opt
method.
ConversionException
java.util.Optional<java.lang.Short> getShortOpt(java.lang.String name) throws ConversionException
Short
from column with a given name.
All numeric types can be converted to Short
, but some conversions may
involve rounding or truncation.
For SQL NULL
values an empty Optional
is returned.
ConversionException
java.lang.Short getShort(int idx) throws ConversionException
Short
from column with a given index.
All numeric types can be converted to Short
, but some conversions may
involve rounding or truncation.
For SQL NULL
values, ConversionException
is thrown. For null-safety consider using
corresponding *Opt
method.
ConversionException
java.util.Optional<java.lang.Short> getShortOpt(int idx) throws ConversionException
Short
from column with a given index.
All numeric types can be converted to Short
, but some conversions may
involve rounding or truncation.
For SQL NULL
values an empty Optional
is returned.
ConversionException
java.lang.Integer getInt(java.lang.String name) throws ConversionException
int
from column with a given name.
All numeric types can be converted to int
, but some conversions may
involve rounding or truncation.
For SQL NULL
values, ConversionException
is thrown. For null-safety consider using
corresponding *Opt
method.
ConversionException
java.util.Optional<java.lang.Integer> getIntOpt(java.lang.String name) throws ConversionException
int
from column with a given name.
All numeric types can be converted to int
, but some conversions may
involve rounding or truncation.
For SQL NULL
values an empty Optional
is returned.
ConversionException
java.lang.Integer getInt(int idx) throws ConversionException
int
from column with a given index.
All numeric types can be converted to int
, but some conversions may
involve rounding or truncation.
For SQL NULL
values an empty Optional
is returned.
ConversionException
java.util.Optional<java.lang.Integer> getIntOpt(int idx) throws ConversionException
int
from column with a given index.
All numeric types can be converted to int
, but some conversions may
involve rounding or truncation.
For SQL NULL
values an empty Optional
is returned.
ConversionException
java.lang.Long getLong(java.lang.String name) throws ConversionException
Long
from column with a given name.
All numeric types can be converted to Long
, but some conversions may
involve rounding or truncation.
For SQL NULL
values, ConversionException
is thrown. For null-safety consider using
corresponding *Opt
method.
ConversionException
java.util.Optional<java.lang.Long> getLongOpt(java.lang.String name) throws ConversionException
Long
from column with a given name.
All numeric types can be converted to Long
, but some conversions may
involve rounding or truncation.
For SQL NULL
values an empty Optional
is returned.
ConversionException
java.lang.Long getLong(int idx) throws ConversionException
Long
from column with a given index.
All numeric types can be converted to Long
, but some conversions may
involve rounding or truncation.
For SQL NULL
values, ConversionException
is thrown. For null-safety consider using
corresponding *Opt
method.
ConversionException
java.util.Optional<java.lang.Long> getLongOpt(int idx) throws ConversionException
Long
from column with a given index.
All numeric types can be converted to Long
, but some conversions may
involve rounding or truncation.
For SQL NULL
values an empty Optional
is returned.
ConversionException
java.math.BigDecimal getBigDecimal(java.lang.String name) throws ConversionException
BigDecimal
from column with a given name.
All numeric types can be converted to BigDecimal
, note however that
NaN value is not representable by a BigDecimal
. If you expect values
to be NaN use numeric
method instead.
For SQL NULL
values, ConversionException
is thrown. For null-safety consider using
corresponding *Opt
method.
ConversionException
java.util.Optional<java.math.BigDecimal> getBigDecimalOpt(java.lang.String name) throws ConversionException
BigDecimal
from column with a given name.
All numeric types can be converted to BigDecimal
, note however that
NaN value is not representable by a BigDecimal
. If you expect values
to be NaN use numeric
method instead.
For SQL NULL
values an empty Optional
is returned.
ConversionException
java.math.BigDecimal getBigDecimal(int idx) throws ConversionException
BigDecimal
from column with a given index.
All numeric types can be converted to BigDecimal
, note however that
NaN value is not representable by a BigDecimal
. If you expect values
to be NaN use numeric
method instead.
For SQL NULL
values, ConversionException
is thrown. For null-safety consider using
corresponding *Opt
method.
ConversionException
java.util.Optional<java.math.BigDecimal> getBigDecimalOpt(int idx) throws ConversionException
BigDecimal
from column with a given index.
All numeric types can be converted to BigDecimal
, note however that
NaN value is not representable by a BigDecimal
. If you expect values
to be NaN use numeric
method instead.
For SQL NULL
values an empty Optional
is returned.
ConversionException
SqlNumeric getNumeric(java.lang.String name) throws ConversionException
SqlNumeric
from column with a given name.
All numeric types can be converted to SqlNumeric
.
For SQL NULL
values, ConversionException
is thrown. For null-safety consider using
corresponding *Opt
method.
ConversionException
java.util.Optional<SqlNumeric> getNumericOpt(java.lang.String name) throws ConversionException
SqlNumeric
from column with a given name.
All numeric types can be converted to SqlNumeric
.
For SQL NULL
values an empty Optional
is returned.
ConversionException
SqlNumeric getNumeric(int idx) throws ConversionException
SqlNumeric
from column with a given index.
All numeric types can be converted to SqlNumeric
.
For SQL NULL
values, ConversionException
is thrown. For null-safety consider using
corresponding *Opt
method.
ConversionException
java.util.Optional<SqlNumeric> getNumericOpt(int idx) throws ConversionException
SqlNumeric
from column with a given index.
All numeric types can be converted to SqlNumeric
.
For SQL NULL
values an empty Optional
is returned.
ConversionException
java.lang.Double getDouble(java.lang.String name) throws ConversionException
Double
from column with a given name.
All numeric types can be converted to Double
, but some conversions
may involve rounding or truncation.
For SQL NULL
values, ConversionException
is thrown. For null-safety consider using
corresponding *Opt
method.
ConversionException
java.util.Optional<java.lang.Double> getDoubleOpt(java.lang.String name) throws ConversionException
Double
from column with a given name.
All numeric types can be converted to Double
, but some conversions may
involve rounding or truncation.
For SQL NULL
values an empty Optional
is returned.
ConversionException
java.lang.Double getDouble(int idx) throws ConversionException
Double
from column with a given index.
All numeric types can be converted to Double
, but some conversions
may involve rounding or truncation.
For SQL NULL
values, ConversionException
is thrown. For null-safety consider using
corresponding *Opt
method.
ConversionException
java.util.Optional<java.lang.Double> getDoubleOpt(int idx) throws ConversionException
Double
from column with a given index.
All numeric types can be converted to Double
, but some conversions may
involve rounding or truncation.
For SQL NULL
values an empty Optional
is returned.
ConversionException
java.lang.Float getFloat(java.lang.String name) throws ConversionException
Float
from column with a given name.
All numeric types can be converted to Float
, but some conversions may
involve rounding or truncation.
For SQL NULL
values, ConversionException
is thrown. For null-safety consider using
corresponding *Opt
method.
ConversionException
java.util.Optional<java.lang.Float> getFloatOpt(java.lang.String name) throws ConversionException
Float
from column with a given name.
All numeric types can be converted to Float
, but some conversions may
involve rounding or truncation.
For SQL NULL
values an empty Optional
is returned.
ConversionException
java.lang.Float getFloat(int idx) throws ConversionException
Float
from column with a given index.
All numeric types can be converted to Float
, but some conversions may
involve rounding or truncation.
For SQL NULL
values, ConversionException
is thrown. For null-safety consider using
corresponding *Opt
method.
ConversionException
java.util.Optional<java.lang.Float> getFloatOpt(int idx) throws ConversionException
Float
from column with a given index.
All numeric types can be converted to Float
, but some conversions may
involve rounding or truncation.
For SQL NULL
values an empty Optional
is returned.
ConversionException
java.time.Instant getInstant(java.lang.String name) throws ConversionException
Instant
from column with a given name.
Note that regular timestamp values are not convertible to an Instant
because timestamp values do not hold a time zone information.
For SQL NULL
values, ConversionException
is thrown. For null-safety consider using
corresponding *Opt
method.
ConversionException
java.util.Optional<java.time.Instant> getInstantOpt(java.lang.String name) throws ConversionException
Instant
from column with a given name.
Note that regular timestamp values are not convertible to an Instant
because timestamp values do not hold a time zone information.
For SQL NULL
values an empty Optional
is returned.
ConversionException
java.time.Instant getInstant(int idx) throws ConversionException
Instant
from column with a given index.
Note that regular timestamp values are not convertible to an Instant
because timestamp values do not hold a time zone information.
For SQL NULL
values, ConversionException
is thrown. For null-safety consider using
corresponding *Opt
method.
ConversionException
java.util.Optional<java.time.Instant> getInstantOpt(int idx) throws ConversionException
Instant
from column with a given index.
Note that regular timestamp values are not convertible to an Instant
because timestamp values do not hold a time zone information.
For SQL NULL
values an empty Optional
is returned.
ConversionException
java.time.LocalDateTime getLocalDateTime(java.lang.String name) throws ConversionException
LocalDateTime
from column with a given name.
For SQL date type that does not hold a time, LocalDateTime
at start
of day is returned.
For SQL NULL
values, ConversionException
is thrown. For null-safety consider using
corresponding *Opt
method.
ConversionException
java.util.Optional<java.time.LocalDateTime> getLocalDateTimeOpt(java.lang.String name) throws ConversionException
LocalDateTime
from column with a given name.
For SQL date type that does not hold a time, LocalDateTime
at start
of day is returned.
For SQL NULL
values an empty Optional
is returned.
ConversionException
java.time.LocalDateTime getLocalDateTime(int idx) throws ConversionException
LocalDateTime
from column with a given index.
For SQL date type that does not hold a time, LocalDateTime
at start
of day is returned.
For SQL NULL
values, ConversionException
is thrown. For null-safety consider using
corresponding *Opt
method.
ConversionException
java.util.Optional<java.time.LocalDateTime> getLocalDateTimeOpt(int idx) throws ConversionException
LocalDateTime
from column with a given index.
For SQL date type that does not hold a time, LocalDateTime
at start
of day is returned.
For SQL NULL
values an empty Optional
is returned.
ConversionException
java.time.LocalDate getLocalDate(java.lang.String name) throws ConversionException
LocalDate
from column with a given name.
SQL types that represent a date with a time are convertible to
LocalDate
- a time part is truncated.
For SQL NULL
values, ConversionException
is thrown. For null-safety consider using
corresponding *Opt
method.
ConversionException
java.util.Optional<java.time.LocalDate> getLocalDateOpt(java.lang.String name) throws ConversionException
LocalDate
from column with a given name.
SQL types that represent a date with a time are convertible to
LocalDate
- a time part is truncated.
For SQL NULL
values an empty Optional
is returned.
ConversionException
java.time.LocalDate getLocalDate(int idx) throws ConversionException
LocalDate
from column with a given index.
SQL types that represent a date with a time are convertible to
LocalDate
- a time part is truncated.
For SQL NULL
values, ConversionException
is thrown. For null-safety consider using
corresponding *Opt
method.
ConversionException
java.util.Optional<java.time.LocalDate> getLocalDateOpt(int idx) throws ConversionException
LocalDate
from column with a given index.
SQL types that represent a date with a time are convertible to
LocalDate
- a time part is truncated.
For SQL NULL
values an empty Optional
is returned.
ConversionException
java.time.LocalTime getLocalTime(java.lang.String name) throws ConversionException
LocalDate
from column with a given name.
SQL types that represent a date with a time are convertible to
LocalTime
- a date part is truncated.
For SQL NULL
values, ConversionException
is thrown. For null-safety consider using
corresponding *Opt
method.
ConversionException
java.util.Optional<java.time.LocalTime> getLocalTimeOpt(java.lang.String name) throws ConversionException
LocalDate
from column with a given name.
SQL types that represent a date with a time are convertible to
LocalTime
- a date part is truncated.
For SQL NULL
values an empty Optional
is returned.
ConversionException
java.time.LocalTime getLocalTime(int idx) throws ConversionException
LocalDate
from column with a given index.
SQL types that represent a date with a time are convertible to
LocalTime
- a date part is truncated.
For SQL NULL
values, ConversionException
is thrown. For null-safety consider using
corresponding *Opt
method.
ConversionException
java.util.Optional<java.time.LocalTime> getLocalTimeOpt(int idx) throws ConversionException
LocalDate
from column with a given index.
SQL types that represent a date with a time are convertible to
LocalTime
- a date part is truncated.
For SQL NULL
values an empty Optional
is returned.
ConversionException
byte[] getBytes(java.lang.String name) throws ConversionException
Note that this method cannot be used to fetch raw value of any type from the database, it should be used only to fetch binary data.
For SQL NULL
values, ConversionException
is thrown. For null-safety consider using
corresponding *Opt
method.
ConversionException
java.util.Optional<byte[]> getBytesOpt(java.lang.String name) throws ConversionException
Note that this method cannot be used to fetch raw value of any type from the database, it should be used only to fetch binary data.
For SQL NULL
values an empty Optional
is returned.
ConversionException
byte[] getBytes(int idx) throws ConversionException
Note that this method cannot be used to fetch raw value of any type from the database, it should be used only to fetch binary data.
For SQL NULL
values, ConversionException
is thrown. For null-safety consider using
corresponding *Opt
method.
ConversionException
java.util.Optional<byte[]> getBytesOpt(int idx) throws ConversionException
Note that this method cannot be used to fetch raw value of any type from the database, it should be used only to fetch binary data.
For SQL NULL
values an empty Optional
is returned.
ConversionException
java.util.UUID getUuid(java.lang.String name) throws ConversionException
UUID
from column with a given name.
A string type with a standard UUID representation as defined by
UUID.fromString
is convertible to UUID.
For SQL NULL
values, ConversionException
is thrown. For null-safety consider using
corresponding *Opt
method.
ConversionException
java.util.Optional<java.util.UUID> getUuidOpt(java.lang.String name) throws ConversionException
UUID
from column with a given name.
A string type with a standard UUID representation as defined by
UUID.fromString
is convertible to UUID.
For SQL NULL
values an empty Optional
is returned.
ConversionException
java.util.UUID getUuid(int idx) throws ConversionException
UUID
from column with a given index.
A string type with a standard UUID representation as defined by
UUID.fromString
is convertible to UUID.
For SQL NULL
values, ConversionException
is thrown. For null-safety consider using
corresponding *Opt
method.
ConversionException
java.util.Optional<java.util.UUID> getUuidOpt(int idx) throws ConversionException
UUID
from column with a given index.
A string type with a standard UUID representation as defined by
UUID.fromString
is convertible to UUID.
For SQL NULL
values an empty Optional
is returned.
ConversionException