Packages

c

little.sql.Implicits

ResultSetType

implicit final class ResultSetType extends AnyVal

Provides extension methods to java.sql.ResultSet.

Linear Supertypes
AnyVal, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ResultSetType
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ResultSetType(resultSet: ResultSet)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##(): Int
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. 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

  6. 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

  7. 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

  8. 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

  9. 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

  10. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  11. def getColumnCount(): Int

    Gets column count.

  12. def getColumnLabels(): Seq[String]

    Gets column labels.

  13. def getLocalDate(label: String): LocalDate

    Gets column value as LocalDate.

  14. def getLocalDate(index: Int): LocalDate

    Gets column value as LocalDate.

  15. def getLocalDateTime(label: String): LocalDateTime

    Gets column value as LocalDateTime.

  16. def getLocalDateTime(index: Int): LocalDateTime

    Gets column value as LocalDateTime.

  17. def getLocalTime(label: String): LocalTime

    Gets column value as LocalTime.

  18. def getLocalTime(index: Int): LocalTime

    Gets column value as LocalTime.

  19. 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

  20. 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

  21. 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

  22. 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

  23. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  24. 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

  25. 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

  26. val resultSet: ResultSet
  27. def toString(): String
    Definition Classes
    Any

Inherited from AnyVal

Inherited from Any

Ungrouped