trait Row extends AnyRef
Represents a row of a result returned by a database engine.
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 Option to allow null-safe handling of SQL
null
values.
- Grouped
- Alphabetic
- By Inheritance
- Row
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
bigDecimal(idx: Int): BigDecimal
Returns a BigDecimal from column with a given index.
Returns a 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.Throws:
- ConversionException
when database value could not be converted to the desired type
- ColumnIndexOutOfBoundsException when requested column index is out of range
- ConversionException
when database value could not be converted to the desired type
-
abstract
def
bigDecimal(name: String): BigDecimal
Returns a BigDecimal from column with a given name.
Returns a 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.Throws:
- ConversionException
when database value could not be converted to the desired type
- MissingColumnException when requested column is not present in the row
- ConversionException
when database value could not be converted to the desired type
-
abstract
def
bigDecimalOpt(idx: Int): Option[BigDecimal]
Returns a BigDecimal from column with a given index.
Returns a 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 None is returned.Throws:
- ConversionException
when database value could not be converted to the desired type
- ColumnIndexOutOfBoundsException when requested column index is out of range
- ConversionException
when database value could not be converted to the desired type
-
abstract
def
bigDecimalOpt(name: String): Option[BigDecimal]
Returns a BigDecimal from column with a given name.
Returns a 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 None is returned.Throws:
- ConversionException
when database value could not be converted to the desired type
- MissingColumnException when requested column is not present in the row
- ConversionException
when database value could not be converted to the desired type
-
abstract
def
bool(idx: Int): Boolean
Returns a boolean value from column with a given index.
Returns a boolean value from column with a given index.
- A single 'T', 'Y' or '1' character values or
1
numeric value are consideredtrue
. - A single 'F', 'N' or '0' character values or
0
numeric value are consideredfalse
.
For SQL
null
values, ConversionException is thrown. For null-safety consider using corresponding*Opt
method.Throws:
- ConversionException
when database value could not be converted to the desired type
- ColumnIndexOutOfBoundsException when requested column index is out of range
- A single 'T', 'Y' or '1' character values or
-
abstract
def
bool(name: String): Boolean
Returns a boolean value from column with a given name.
Returns a boolean value from column with a given name.
- A single 'T', 'Y' or '1' character values or
1
numeric value are consideredtrue
. - A single 'F', 'N' or '0' character values or
0
numeric value are consideredfalse
.
For SQL
null
values, ConversionException is thrown. For null-safety consider using corresponding*Opt
method.Throws:
- ConversionException
when database value could not be converted to the desired type
- MissingColumnException when requested column is not present in the row
- A single 'T', 'Y' or '1' character values or
-
abstract
def
boolOpt(idx: Int): Option[Boolean]
Returns a boolean value from column with a given index.
Returns a boolean value from column with a given index.
- A single 'T', 'Y' or '1' character values or
1
numeric value are consideredtrue
. - A single 'F', 'N' or '0' character values or
0
numeric value are consideredfalse
.
For SQL
null
values None is returned.Throws:
- ConversionException
when database value could not be converted to the desired type
- ColumnIndexOutOfBoundsException when requested column index is out of range
- A single 'T', 'Y' or '1' character values or
-
abstract
def
boolOpt(name: String): Option[Boolean]
Returns a boolean value from column with a given name.
Returns a boolean value from column with a given name.
- A single 'T', 'Y' or '1' character values or
1
numeric value are consideredtrue
. - A single 'F', 'N' or '0' character values or
0
numeric value are consideredfalse
.
For SQL
null
values None is returned.Throws:
- ConversionException
when database value could not be converted to the desired type
- MissingColumnException when requested column is not present in the row
- A single 'T', 'Y' or '1' character values or
-
abstract
def
bytes(idx: Int): Array[Byte]
Returns a byte array from column with a given index.
Returns a byte array from column with a given index.
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.Throws:
- ConversionException
when database value could not be converted to the desired type
- ColumnIndexOutOfBoundsException when requested column index is out of range
- ConversionException
when database value could not be converted to the desired type
-
abstract
def
bytes(name: String): Array[Byte]
Returns a byte array from column with a given name.
Returns a byte array from column with a given name.
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.Throws:
- ConversionException
when database value could not be converted to the desired type
- MissingColumnException when requested column is not present in the row
- ConversionException
when database value could not be converted to the desired type
-
abstract
def
bytesOpt(idx: Int): Option[Array[Byte]]
Returns a byte array from column with a given index.
Returns a byte array from column with a given index.
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 None is returned.Throws:
- ConversionException
when database value could not be converted to the desired type
- ColumnIndexOutOfBoundsException when requested column index is out of range
- ConversionException
when database value could not be converted to the desired type
-
abstract
def
bytesOpt(name: String): Option[Array[Byte]]
Returns a byte array from column with a given name.
Returns a byte array from column with a given name.
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 None is returned.Throws:
- ConversionException
when database value could not be converted to the desired type
- MissingColumnException when requested column is not present in the row
- ConversionException
when database value could not be converted to the desired type
-
abstract
def
char(idx: Int): Char
Returns a character from column with a given index.
Returns a character from column with a given index.
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.Throws:
- ConversionException
when database value could not be converted to the desired type
- ColumnIndexOutOfBoundsException when requested column index is out of range
- ConversionException
when database value could not be converted to the desired type
-
abstract
def
char(name: String): Char
Returns a character from column with a given name.
Returns a character from column with a given name.
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.Throws:
- ConversionException
when database value could not be converted to the desired type
- MissingColumnException when requested column is not present in the row
- ConversionException
when database value could not be converted to the desired type
-
abstract
def
charOpt(idx: Int): Option[Char]
Returns a character from column with a given index.
Returns a character from column with a given index.
Varchar types with a single character are convertible to a
Char
.For SQL
null
values None is returned.Throws:
- ConversionException
when database value could not be converted to the desired type
- ColumnIndexOutOfBoundsException when requested column index is out of range
- ConversionException
when database value could not be converted to the desired type
-
abstract
def
charOpt(name: String): Option[Char]
Returns a character from column with a given name.
Returns a character from column with a given name.
Varchar types with a single character are convertible to a
Char
.For SQL
null
values None is returned.Throws:
- ConversionException
when database value could not be converted to the desired type
- MissingColumnException when requested column is not present in the row
- ConversionException
when database value could not be converted to the desired type
-
abstract
def
double(idx: Int): Double
Returns a
Double
from column with a given index.Returns a
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.Throws:
- ConversionException
when database value could not be converted to the desired type
- ColumnIndexOutOfBoundsException when requested column index is out of range
- ConversionException
when database value could not be converted to the desired type
-
abstract
def
double(name: String): Double
Returns a
Double
from column with a given name.Returns a
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.Throws:
- ConversionException
when database value could not be converted to the desired type
- MissingColumnException when requested column is not present in the row
- ConversionException
when database value could not be converted to the desired type
-
abstract
def
doubleOpt(idx: Int): Option[Double]
Returns a
Double
from column with a given index.Returns a
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 None is returned.Throws:
- ConversionException
when database value could not be converted to the desired type
- ColumnIndexOutOfBoundsException when requested column index is out of range
- ConversionException
when database value could not be converted to the desired type
-
abstract
def
doubleOpt(name: String): Option[Double]
Returns a
Double
from column with a given name.Returns a
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 None is returned.Throws:
- ConversionException
when database value could not be converted to the desired type
- MissingColumnException when requested column is not present in the row
- ConversionException
when database value could not be converted to the desired type
-
abstract
def
float(idx: Int): Float
Returns a
Float
from column with a given index.Returns a
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.Throws:
- ConversionException
when database value could not be converted to the desired type
- ColumnIndexOutOfBoundsException when requested column index is out of range
- ConversionException
when database value could not be converted to the desired type
-
abstract
def
float(name: String): Float
Returns a
Float
from column with a given name.Returns a
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.Throws:
- ConversionException
when database value could not be converted to the desired type
- MissingColumnException when requested column is not present in the row
- ConversionException
when database value could not be converted to the desired type
-
abstract
def
floatOpt(idx: Int): Option[Float]
Returns a
Float
from column with a given index.Returns a
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 None is returned.Throws:
- ConversionException
when database value could not be converted to the desired type
- ColumnIndexOutOfBoundsException when requested column index is out of range
- ConversionException
when database value could not be converted to the desired type
-
abstract
def
floatOpt(name: String): Option[Float]
Returns a
Float
from column with a given name.Returns a
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 None is returned.Throws:
- ConversionException
when database value could not be converted to the desired type
- MissingColumnException when requested column is not present in the row
- ConversionException
when database value could not be converted to the desired type
-
abstract
def
instant(idx: Int): Instant
Returns an
Instant
from column with a given index.Returns an
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.Throws:
- ConversionException
when database value could not be converted to the desired type
- ColumnIndexOutOfBoundsException when requested column index is out of range
- ConversionException
when database value could not be converted to the desired type
-
abstract
def
instant(name: String): Instant
Returns an
Instant
from column with a given name.Returns an
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.Throws:
- ConversionException
when database value could not be converted to the desired type
- MissingColumnException when requested column is not present in the row
- ConversionException
when database value could not be converted to the desired type
-
abstract
def
instantOpt(idx: Int): Option[Instant]
Returns an
Instant
from column with a given index.Returns an
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 None is returned.Throws:
- ConversionException
when database value could not be converted to the desired type
- ColumnIndexOutOfBoundsException when requested column index is out of range
- ConversionException
when database value could not be converted to the desired type
-
abstract
def
instantOpt(name: String): Option[Instant]
Returns an
Instant
from column with a given name.Returns an
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 None is returned.Throws:
- ConversionException
when database value could not be converted to the desired type
- MissingColumnException when requested column is not present in the row
- ConversionException
when database value could not be converted to the desired type
-
abstract
def
int(idx: Int): Int
Returns an
Int
from column with a given index.Returns an
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 None is returned.Throws:
- ConversionException
when database value could not be converted to the desired type
- ColumnIndexOutOfBoundsException when requested column index is out of range
- ConversionException
when database value could not be converted to the desired type
-
abstract
def
int(name: String): Int
Returns an
Int
from column with a given name.Returns an
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.Throws:
- ConversionException
when database value could not be converted to the desired type
- MissingColumnException when requested column is not present in the row
- ConversionException
when database value could not be converted to the desired type
-
abstract
def
intOpt(idx: Int): Option[Int]
Returns an
Int
from column with a given index.Returns an
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 None is returned.Throws:
- ConversionException
when database value could not be converted to the desired type
- ColumnIndexOutOfBoundsException when requested column index is out of range
- ConversionException
when database value could not be converted to the desired type
-
abstract
def
intOpt(name: String): Option[Int]
Returns an
Int
from column with a given name.Returns an
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 None is returned.Throws:
- ConversionException
when database value could not be converted to the desired type
- MissingColumnException when requested column is not present in the row
- ConversionException
when database value could not be converted to the desired type
-
abstract
def
localDate(idx: Int): LocalDate
Returns a
LocalDate
from column with a given index.Returns a
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.Throws:
- ConversionException
when database value could not be converted to the desired type
- ColumnIndexOutOfBoundsException when requested column index is out of range
- ConversionException
when database value could not be converted to the desired type
-
abstract
def
localDate(name: String): LocalDate
Returns a
LocalDate
from column with a given name.Returns a
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.Throws:
- ConversionException
when database value could not be converted to the desired type
- MissingColumnException when requested column is not present in the row
- ConversionException
when database value could not be converted to the desired type
-
abstract
def
localDateOpt(idx: Int): Option[LocalDate]
Returns a
LocalDate
from column with a given index.Returns a
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 None is returned.Throws:
- ConversionException
when database value could not be converted to the desired type
- ColumnIndexOutOfBoundsException when requested column index is out of range
- ConversionException
when database value could not be converted to the desired type
-
abstract
def
localDateOpt(name: String): Option[LocalDate]
Returns a
LocalDate
from column with a given name.Returns a
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 None is returned.Throws:
- ConversionException
when database value could not be converted to the desired type
- MissingColumnException when requested column is not present in the row
- ConversionException
when database value could not be converted to the desired type
-
abstract
def
localDateTime(idx: Int): LocalDateTime
Returns a
LocalDateTime
from column with a given index.Returns a
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.Throws:
- ConversionException
when database value could not be converted to the desired type
- ColumnIndexOutOfBoundsException when requested column index is out of range
- ConversionException
when database value could not be converted to the desired type
-
abstract
def
localDateTime(name: String): LocalDateTime
Returns a
LocalDateTime
from column with a given name.Returns a
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.Throws:
- ConversionException
when database value could not be converted to the desired type
- MissingColumnException when requested column is not present in the row
- ConversionException
when database value could not be converted to the desired type
-
abstract
def
localDateTimeOpt(idx: Int): Option[LocalDateTime]
Returns a
LocalDateTime
from column with a given index.Returns a
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 None is returned.Throws:
- ConversionException
when database value could not be converted to the desired type
- ColumnIndexOutOfBoundsException when requested column index is out of range
- ConversionException
when database value could not be converted to the desired type
-
abstract
def
localDateTimeOpt(name: String): Option[LocalDateTime]
Returns a
LocalDateTime
from column with a given name.Returns a
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 None is returned.Throws:
- ConversionException
when database value could not be converted to the desired type
- MissingColumnException when requested column is not present in the row
- ConversionException
when database value could not be converted to the desired type
-
abstract
def
localTime(idx: Int): LocalTime
Returns a
LocalDate
from column with a given index.Returns a
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.Throws:
- ConversionException
when database value could not be converted to the desired type
- ColumnIndexOutOfBoundsException when requested column index is out of range
- ConversionException
when database value could not be converted to the desired type
-
abstract
def
localTime(name: String): LocalTime
Returns a
LocalDate
from column with a given name.Returns a
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.Throws:
- ConversionException
when database value could not be converted to the desired type
- MissingColumnException when requested column is not present in the row
- ConversionException
when database value could not be converted to the desired type
-
abstract
def
localTimeOpt(idx: Int): Option[LocalTime]
Returns a
LocalDate
from column with a given index.Returns a
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 None is returned.Throws:
- ConversionException
when database value could not be converted to the desired type
- ColumnIndexOutOfBoundsException when requested column index is out of range
- ConversionException
when database value could not be converted to the desired type
-
abstract
def
localTimeOpt(name: String): Option[LocalTime]
Returns a
LocalDate
from column with a given name.Returns a
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 None is returned.Throws:
- ConversionException
when database value could not be converted to the desired type
- MissingColumnException when requested column is not present in the row
- ConversionException
when database value could not be converted to the desired type
-
abstract
def
long(idx: Int): Long
Returns a
Long
from column with a given index.Returns a
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.Throws:
- ConversionException
when database value could not be converted to the desired type
- ColumnIndexOutOfBoundsException when requested column index is out of range
- ConversionException
when database value could not be converted to the desired type
-
abstract
def
long(name: String): Long
Returns a
Long
from column with a given name.Returns a
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.Throws:
- ConversionException
when database value could not be converted to the desired type
- MissingColumnException when requested column is not present in the row
- ConversionException
when database value could not be converted to the desired type
-
abstract
def
longOpt(idx: Int): Option[Long]
Returns a
Long
from column with a given index.Returns a
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 None is returned.Throws:
- ConversionException
when database value could not be converted to the desired type
- ColumnIndexOutOfBoundsException when requested column index is out of range
- ConversionException
when database value could not be converted to the desired type
-
abstract
def
longOpt(name: String): Option[Long]
Returns a
Long
from column with a given name.Returns a
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 None is returned.Throws:
- ConversionException
when database value could not be converted to the desired type
- MissingColumnException when requested column is not present in the row
- ConversionException
when database value could not be converted to the desired type
-
abstract
def
numeric(idx: Int): SqlNumeric
Returns a SqlNumeric from column with a given index.
Returns a 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.Throws:
- ConversionException
when database value could not be converted to the desired type
- ColumnIndexOutOfBoundsException when requested column index is out of range
- ConversionException
when database value could not be converted to the desired type
-
abstract
def
numeric(name: String): SqlNumeric
Returns a SqlNumeric from column with a given name.
Returns a 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.Throws:
- ConversionException
when database value could not be converted to the desired type
- MissingColumnException when requested column is not present in the row
- ConversionException
when database value could not be converted to the desired type
-
abstract
def
numericOpt(idx: Int): Option[SqlNumeric]
Returns a SqlNumeric from column with a given index.
Returns a SqlNumeric from column with a given index.
All numeric types can be converted to SqlNumeric.
For SQL
null
values None is returned.Throws:
- ConversionException
when database value could not be converted to the desired type
- ColumnIndexOutOfBoundsException when requested column index is out of range
- ConversionException
when database value could not be converted to the desired type
-
abstract
def
numericOpt(name: String): Option[SqlNumeric]
Returns a SqlNumeric from column with a given name.
Returns a SqlNumeric from column with a given name.
All numeric types can be converted to SqlNumeric.
For SQL
null
values None is returned.Throws:
- ConversionException
when database value could not be converted to the desired type
- MissingColumnException when requested column is not present in the row
- ConversionException
when database value could not be converted to the desired type
-
abstract
def
short(idx: Int): Short
Returns a
Short
from column with a given index.Returns a
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.Throws:
- ConversionException
when database value could not be converted to the desired type
- ColumnIndexOutOfBoundsException when requested column index is out of range
- ConversionException
when database value could not be converted to the desired type
-
abstract
def
short(name: String): Short
Returns a
Short
from column with a given name.Returns a
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.Throws:
- ConversionException
when database value could not be converted to the desired type
- MissingColumnException when requested column is not present in the row
- ConversionException
when database value could not be converted to the desired type
-
abstract
def
shortOpt(idx: Int): Option[Short]
Returns a
Short
from column with a given index.Returns a
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 None is returned.Throws:
- ConversionException
when database value could not be converted to the desired type
- ColumnIndexOutOfBoundsException when requested column index is out of range
- ConversionException
when database value could not be converted to the desired type
-
abstract
def
shortOpt(name: String): Option[Short]
Returns a
Short
from column with a given name.Returns a
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 None is returned.Throws:
- ConversionException
when database value could not be converted to the desired type
- MissingColumnException when requested column is not present in the row
- ConversionException
when database value could not be converted to the desired type
-
abstract
def
str(idx: Int): String
Returns a
String
from column with a given index.Returns a
String
from column with a given index.For SQL
null
values, ConversionException is thrown. For null-safety consider using corresponding*Opt
method.Throws:
- ConversionException
when database value could not be converted to the desired type
- ColumnIndexOutOfBoundsException when requested column index is out of range
- ConversionException
when database value could not be converted to the desired type
-
abstract
def
str(name: String): String
Returns a
String
from column with a given name.Returns a
String
from column with a given name.For SQL
null
values, ConversionException is thrown. For null-safety consider using corresponding*Opt
method.Throws:
- ConversionException
when database value could not be converted to the desired type
- MissingColumnException when requested column is not present in the row
- ConversionException
when database value could not be converted to the desired type
-
abstract
def
strOpt(idx: Int): Option[String]
Returns a
String
from column with a given index.Returns a
String
from column with a given index.For SQL
null
values None is returned.Throws:
- ConversionException
when database value could not be converted to the desired type
- ColumnIndexOutOfBoundsException when requested column index is out of range
- ConversionException
when database value could not be converted to the desired type
-
abstract
def
strOpt(name: String): Option[String]
Returns a
String
from column with a given name.Returns a
String
from column with a given name.For SQL
null
values None is returned.Throws:
- ConversionException
when database value could not be converted to the desired type
- MissingColumnException when requested column is not present in the row
- ConversionException
when database value could not be converted to the desired type
-
abstract
def
uuid(idx: Int): UUID
Returns an
UUID
from column with a given index.Returns an
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.Throws:
- ConversionException
when database value could not be converted to the desired type
- ColumnIndexOutOfBoundsException when requested column index is out of range
- ConversionException
when database value could not be converted to the desired type
-
abstract
def
uuid(name: String): UUID
Returns an
UUID
from column with a given name.Returns an
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.Throws:
- ConversionException
when database value could not be converted to the desired type
- MissingColumnException when requested column is not present in the row
- ConversionException
when database value could not be converted to the desired type
-
abstract
def
uuidOpt(idx: Int): Option[UUID]
Returns an
UUID
from column with a given index.Returns an
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 None is returned.Throws:
- ConversionException
when database value could not be converted to the desired type
- ColumnIndexOutOfBoundsException when requested column index is out of range
- ConversionException
when database value could not be converted to the desired type
-
abstract
def
uuidOpt(name: String): Option[UUID]
Returns an
UUID
from column with a given name.Returns an
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 None is returned.Throws:
- ConversionException
when database value could not be converted to the desired type
- MissingColumnException when requested column is not present in the row
- ConversionException
when database value could not be converted to the desired type
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- def ->[B](y: B): (Row, B)
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate() @throws( ... )
-
abstract
def
col[A](name: String): A
[use case] Returns an object of type
A
from column with a given name.[use case]Returns an object of type
A
from column with a given name.For SQL
null
values, ConversionException is thrown. For null-safety consider using corresponding*Opt
method.Throws:
- ConversionException
when database value could not be converted to the desired type
- MissingColumnException when requested column is not present in the row
Full Signatureabstract def col[A](name: String)(implicit arg0: ClassTag[A]): A
- ConversionException
when database value could not be converted to the desired type
-
abstract
def
col[A](idx: Int): A
[use case] Returns an object of type
A
from column with a given index.[use case]Returns an object of type
A
from column with a given index.For SQL
null
values, ConversionException is thrown. For null-safety consider using corresponding*Opt
method.Throws:
- ConversionException
when database value could not be converted to the desired type
- ColumnIndexOutOfBoundsException when requested column index is out of range
- ConversionException
when database value could not be converted to the desired type
-
abstract
def
colOpt[A](name: String): Option[A]
[use case] Returns an object of type
A
from column with a given name.[use case]Returns an object of type
A
from column with a given name.For SQL
null
values None is returned.Throws:
- ConversionException
when database value could not be converted to the desired type
- MissingColumnException when requested column is not present in the row
- ConversionException
when database value could not be converted to the desired type
-
abstract
def
colOpt[A](idx: Int): Option[A]
[use case] Returns an object of type
A
from column with a given index.[use case]Returns an object of type
A
from column with a given index.For SQL
null
values None is returned.Throws:
- ConversionException
when database value could not be converted to the desired type
- ColumnIndexOutOfBoundsException when requested column index is out of range
- ConversionException
when database value could not be converted to the desired type
- def ensuring(cond: (Row) ⇒ Boolean, msg: ⇒ Any): Row
- def ensuring(cond: (Row) ⇒ Boolean): Row
- def ensuring(cond: Boolean, msg: ⇒ Any): Row
- def ensuring(cond: Boolean): Row
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def formatted(fmtstr: String): String
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- def →[B](y: B): (Row, B)
Inherited from AnyRef
Inherited from Any
Generic getters
Methods in this group can be used for fetching values of types not supported by rdbc API out of the box.
TODO