Statement
A prepared SQL statement that supports parameter binding, execution, and batching.
Inheritors
Functions
Adds the current set of parameters as a batch entry for later execution via executeBatch.
Executes all batched statements and returns an array of update counts, one per batch entry.
Executes a SELECT statement and returns the result set.
Executes an INSERT, UPDATE, or DELETE statement and returns the number of affected rows.
Returns a result set containing any auto-generated keys produced by the last execution.
Clears bound parameters and any pending batch entries so that this statement can be reused without re-preparing the SQL. Used by ORM-level prepared-statement caches that wish to keep the underlying server-side prepare across calls. Must be safe to call on a freshly opened statement (no-op). Default falls back to no-op so legacy implementations remain valid.
Hint to the driver about how many rows to fetch per round-trip while iterating a ResultSet. JDBC pass-through on JVM. On native, positive values activate the driver's streaming path (single-row mode on PG, server-side cursors on MariaDB, prefetch-array sizing on Oracle). 0 leaves the driver default. Default no-op.
Binds a parameter value at the given 1-based parameterIndex.