← Back to Stormify Documentation

Statement

A prepared SQL statement that supports parameter binding, execution, and batching.

Inheritors

Functions

Link copied to clipboard
abstract fun addBatch()

Adds the current set of parameters as a batch entry for later execution via executeBatch.

Link copied to clipboard
abstract fun executeBatch(): IntArray

Executes all batched statements and returns an array of update counts, one per batch entry.

Link copied to clipboard
abstract fun executeQuery(): ResultSet

Executes a SELECT statement and returns the result set.

Link copied to clipboard
abstract fun executeUpdate(): Int

Executes an INSERT, UPDATE, or DELETE statement and returns the number of affected rows.

Link copied to clipboard
abstract fun getGeneratedKeys(): ResultSet

Returns a result set containing any auto-generated keys produced by the last execution.

Link copied to clipboard
abstract fun setObject(parameterIndex: Int, value: Any?)

Binds a parameter value at the given 1-based parameterIndex.