db9010 / com.jovial.db9010 / GenericStatement

GenericStatement

class GenericStatement : ParameterSetter

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

Types

Builder

A builder for a generic statement. See Database.statement.

class Builder : TextStatementBuilder<Key>

Key

A key used by Database for caching generic statements.

data class Key

Properties

resultHandler

Handler that is called after executing the PreparedStatement. The first argument is the return value of PreparedStatement.execute(). Client code can set this to a different value in order to obtain the PreparedStatement and the return value of PreparedStatement.execute after it is called by Builder.run.

var resultHandler: ((Boolean, PreparedStatement) -> Unit)?