db9010 / com.jovial.db9010 / ParameterSetter

ParameterSetter

interface ParameterSetter

Type for statements that can set parameters: DeleteStatement, UpdateStatement, SelectQuery and GenericStatement. This class maintains a map of the parameters that have been set to code blocks that set the parameters on a PreparedStatement, given the value index.

Functions

set

Set the given parameter p to value.

open operator fun <T> set(p: Parameter<in T>, value: T): Unit

setFromLambda

Set the given parameter p, using a code block that operates on a JDBC PreparedStatement using the provided value index.

abstract fun <T> setFromLambda(p: Parameter<in T>, setter: (Int, PreparedStatement) -> Unit): Unit

Inheritors

DeleteStatement

An SQL delete statement. See Database.deleteFrom.

class DeleteStatement : ParameterSetter

GenericStatement

A generic SQL statement. The entire statement body is set by user code. See Database.statement.

class GenericStatement : ParameterSetter

SelectQuery

An SQL select query. See Database.select.

class SelectQuery : ResultsHolder, ParameterSetter

UpdateStatement

An SQL update statement. See Database.update.

class UpdateStatement : ColumnSetter, ParameterSetter