implicit final class PreparedStatementType extends AnyVal
- Alphabetic
- By Inheritance
- PreparedStatementType
- AnyVal
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new PreparedStatementType(statement: PreparedStatement)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
def
addBatch(params: Seq[InParam]): Unit
Adds parameters to batch of commands.
Adds parameters to batch of commands.
- params
parameters
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
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
-
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
-
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
-
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
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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
-
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
-
def
set(params: Seq[InParam]): Unit
Sets parameters.
-
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
-
def
setLocalDate(index: Int, value: LocalDate): Unit
Sets parameter to given
LocalDate
.Sets parameter to given
LocalDate
.- index
parameter index
- value
parameter value
-
def
setLocalDateTime(index: Int, value: LocalDateTime): Unit
Sets parameter to given
LocalDateTime
.Sets parameter to given
LocalDateTime
.- index
parameter index
- value
parameter value
-
def
setLocalTime(index: Int, value: LocalTime): Unit
Sets parameter to given
LocalTime
.Sets parameter to given
LocalTime
.- index
parameter index
- value
parameter value
- val statement: PreparedStatement
-
def
toString(): String
- Definition Classes
- Any
-
def
update(params: Seq[InParam]): Int
Executes update with parameters and returns update count.
Executes update with parameters and returns update count.
- params
parameters