Packages

c

little.sql.Implicits

PreparedStatementType

implicit final class PreparedStatementType extends AnyVal

Provides extension methods to java.sql.PreparedStatement.

See also

StatementType

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

Instance Constructors

  1. new PreparedStatementType(statement: PreparedStatement)

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. def addBatch(params: Seq[InParam]): Unit

    Adds parameters to batch of commands.

    Adds parameters to batch of commands.

    params

    parameters

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def execute[T](params: Seq[InParam])(f: (Execution) ⇒ T): T

    Executes statement with parameters and passes Execution to supplied function.

    Executes statement with parameters and passes Execution to supplied function.

    params

    parameters

    f

    function

  7. def first[T](params: Seq[InParam])(f: (ResultSet) ⇒ T): Option[T]

    Executes query with parameters and maps first row of ResultSet using supplied function.

    Executes query with parameters and maps first row of ResultSet using supplied function.

    If the result set is not empty, and if the supplied function's return value is not null, then Some value is returned; otherwise, None is returned.

    params

    parameters

    f

    map function

  8. def flatMap[T](params: Seq[InParam])(f: (ResultSet) ⇒ GenTraversableOnce[T]): Seq[T]

    Executes query and builds a collection using the elements mapped from each row of ResultSet.

    Executes query and builds a collection using the elements mapped from each row of ResultSet.

    params

    parameters

    f

    map function

  9. def foreach(params: Seq[InParam])(f: (ResultSet) ⇒ Unit): Unit

    Executes query with parameters and invokes supplied function for each row of ResultSet.

    Executes query with parameters and invokes supplied function for each row of ResultSet.

    params

    parameters

    f

    function

  10. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. def map[T](params: Seq[InParam])(f: (ResultSet) ⇒ T): Seq[T]

    Executes query with parameters and maps each row of ResultSet using supplied function.

    Executes query with parameters and maps each row of ResultSet using supplied function.

    params

    parameters

    f

    map function

  13. def query[T](params: Seq[InParam])(f: (ResultSet) ⇒ T): T

    Executes query with parameters and passes ResultSet to supplied function.

    Executes query with parameters and passes ResultSet to supplied function.

    params

    parameters

    f

    function

  14. def set(params: Seq[InParam]): Unit

    Sets parameters.

  15. def set(index: Int, value: InParam): Unit

    Sets parameter at index to given value.

    Sets parameter at index to given value.

    index

    parameter index

    value

    parameter value

  16. def setLocalDate(index: Int, value: LocalDate): Unit

    Sets parameter to given LocalDate.

    Sets parameter to given LocalDate.

    index

    parameter index

    value

    parameter value

  17. def setLocalDateTime(index: Int, value: LocalDateTime): Unit

    Sets parameter to given LocalDateTime.

    Sets parameter to given LocalDateTime.

    index

    parameter index

    value

    parameter value

  18. def setLocalTime(index: Int, value: LocalTime): Unit

    Sets parameter to given LocalTime.

    Sets parameter to given LocalTime.

    index

    parameter index

    value

    parameter value

  19. val statement: PreparedStatement
  20. def toString(): String
    Definition Classes
    Any
  21. def update(params: Seq[InParam]): Int

    Executes update with parameters and returns update count.

    Executes update with parameters and returns update count.

    params

    parameters

Inherited from AnyVal

Inherited from Any

Ungrouped