Back to Exposed

JdbcPreparedStatementImpl

docs/api/exposed-jdbc/org.jetbrains.exposed.v1.jdbc.statements.jdbc/-jdbc-prepared-statement-impl/index.html

1.2.06.7 KB
Original Source

JdbcPreparedStatementImpl

class JdbcPreparedStatementImpl(val statement: PreparedStatement, val wasGeneratedKeysRequested: Boolean) : JdbcPreparedStatementApi

Class representing a precompiled SQL statement from the JDBC SPI.

The result set generated by executing this statement contains auto-generated keys based on the value of wasGeneratedKeysRequested.

Members

Constructors

JdbcPreparedStatementImpl

Link copied to clipboard

constructor(statement: PreparedStatement, wasGeneratedKeysRequested: Boolean)

Properties

fetchSize

Link copied to clipboard

open override var fetchSize: Int?

The number of result set rows that should be fetched when generated by an executed statement.

resultSet

Link copied to clipboard

open override val resultSet: JdbcResult?

The JdbcResult generated by the executed statement, or null if none was retrieved.

statement

Link copied to clipboard

val statement: PreparedStatement

timeout

Link copied to clipboard

open override var timeout: Int?

The number of seconds the JDBC driver will wait for a statement to execute.

wasGeneratedKeysRequested

Link copied to clipboard

val wasGeneratedKeysRequested: Boolean

Functions

addBatch

Link copied to clipboard

open override fun addBatch()

Adds parameters to the statement's batch of SQL commands.

cancel

Link copied to clipboard

open override fun cancel()

Cancels the statement, if supported by the database.

closeIfPossible

Link copied to clipboard

open override fun closeIfPossible()

Closes the statement, if still open, and releases any of its database and/or driver resources.

executeBatch

Link copied to clipboard

open override fun executeBatch(): List<Int>

Executes batched SQL statements stored as a java.sql.PreparedStatement.

executeMultiple

Link copied to clipboard

open override fun executeMultiple(): List<StatementResult>

Executes multiple SQL statements stored in a single java.sql.PreparedStatement.

executeQuery

Link copied to clipboard

open override fun executeQuery(): JdbcResult

Executes an SQL query stored in a java.sql.PreparedStatement.

executeUpdate

Link copied to clipboard

open override fun executeUpdate(): Int

Executes an SQL statement stored in a java.sql.PreparedStatement.

fillParameters

Link copied to clipboard

open fun fillParameters(args: Iterable<Pair<IColumnType<*>, Any?>>): Int

set

Link copied to clipboard

open override fun set(index: Int, value: Any, columnType: IColumnType<*>)

setArray

Link copied to clipboard

open override fun setArray(index: Int, type: ArrayColumnType<*, *>, array: Array<*>)

setInputStream

Link copied to clipboard

open override fun setInputStream(index: Int, inputStream: InputStream, setAsBlobObject: Boolean)

setNull

Link copied to clipboard

open override fun setNull(index: Int, columnType: IColumnType<*>)

Generated by Dokka © 2026 Copyright