implicit final class ResultSetType extends AnyVal
Provides extension methods to java.sql.ResultSet
.
- Alphabetic
- By Inheritance
- ResultSetType
- AnyVal
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new ResultSetType(resultSet: ResultSet)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
flatMap[T](f: (ResultSet) ⇒ GenTraversableOnce[T]): Seq[T]
Maps remaining rows of ResultSet building a collection using elements returned from map function.
Maps remaining rows of ResultSet building a collection using elements returned from map function.
- f
map function
-
def
fold[T](init: T)(op: (T, ResultSet) ⇒ T): T
Folds remaining rows of ResultSet to single value using given initial value and binary operator.
Folds remaining rows of ResultSet to single value using given initial value and binary operator.
- init
initial value
- op
binary operator
-
def
foreach(f: (ResultSet) ⇒ Unit): Unit
Invokes supplied function for each remaining row of ResultSet.
Invokes supplied function for each remaining row of ResultSet.
- f
function
-
def
get[T](label: String)(implicit getValue: GetValueByLabel[T]): T
Gets column value in current row.
Gets column value in current row.
- T
type of value to return
- label
column label
-
def
get[T](index: Int)(implicit getValue: GetValueByIndex[T]): T
Gets column value in current row.
Gets column value in current row.
- T
type of value to return
- index
column index
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
def
getColumnCount(): Int
Gets column count.
-
def
getColumnLabels(): Seq[String]
Gets column labels.
-
def
getLocalDate(label: String): LocalDate
Gets column value as LocalDate.
-
def
getLocalDate(index: Int): LocalDate
Gets column value as LocalDate.
-
def
getLocalDateTime(label: String): LocalDateTime
Gets column value as LocalDateTime.
-
def
getLocalDateTime(index: Int): LocalDateTime
Gets column value as LocalDateTime.
-
def
getLocalTime(label: String): LocalTime
Gets column value as LocalTime.
-
def
getLocalTime(index: Int): LocalTime
Gets column value as LocalTime.
-
def
getOption[T](label: String)(implicit getValue: GetValueByLabel[T]): Option[T]
Gets column value in current row if value is not null.
Gets column value in current row if value is not null.
- T
type of value to return
- label
column label
-
def
getOption[T](index: Int)(implicit getValue: GetValueByIndex[T]): Option[T]
Gets column value in current row if value is not null.
Gets column value in current row if value is not null.
- T
type of value to return
- index
column index
-
def
getOrElse[T](label: String, default: ⇒ T)(implicit getValue: GetValueByLabel[T]): T
Gets column value in current row, or returns default if value is null.
Gets column value in current row, or returns default if value is null.
- T
type of value to return
- label
column label
- default
default value
-
def
getOrElse[T](index: Int, default: ⇒ T)(implicit getValue: GetValueByIndex[T]): T
Gets column value in current row, or returns default if value is null.
Gets column value in current row, or returns default if value is null.
- T
type of value to return
- index
column index
- default
default value
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
map[T](f: (ResultSet) ⇒ T): Seq[T]
Maps remaining rows of ResultSet using supplied function.
Maps remaining rows of ResultSet using supplied function.
- f
map function
-
def
next[T](f: (ResultSet) ⇒ T): Option[T]
Maps next row of ResultSet using supplied function.
Maps next row of ResultSet using supplied function.
If the result set has another row, and if the supplied function's return value is not null, then
Some
value is returned; otherwise,None
is returned.- f
map function
- val resultSet: ResultSet
-
def
toString(): String
- Definition Classes
- Any