public interface Statement extends AutoClosable:
import klyn.databases.sql statement = connection.statement() statement.fetchSize = 100
| Modifier and Type | Member | Description |
|---|---|---|
| public readonly property | batchSizebatchSize as Int |
Number of statements currently queued in the batch. |
| public property | closeOnCompletioncloseOnCompletion as Boolean |
True when the statement auto-closes after completion. |
| public readonly property | closedclosed as Boolean |
True when the statement has been closed. |
| public readonly property | concurrencyconcurrency as ResultSetConcurrency |
Result-set concurrency mode. |
| public readonly property | connectionconnection as Connection |
Owning connection. |
| public property | cursorNamecursorName as String |
Optional cursor name. |
| public property | escapeProcessingescapeProcessing as Boolean |
True when SQL escape processing is enabled. |
| public property | fetchDirectionfetchDirection as FetchDirection |
Preferred fetch direction. |
| public property | fetchSizefetchSize as Int |
Preferred fetch size. |
| public readonly property | generatedKeysgeneratedKeys as ResultSet |
Generated keys from the last update when supported by the driver. |
| public readonly property | holdabilityholdability as ResultSetHoldability |
Result-set holdability mode. |
| public property | largeMaxRowslargeMaxRows as Long |
Max row count as `Long`, or `0` for unlimited. |
| public property | maxFieldSizemaxFieldSize as Int |
Max field size, or `0` for unlimited. |
| public property | maxRowsmaxRows as Int |
Max rows returned by queries, or `0` for unlimited. |
| public property | poolablepoolable as Boolean |
True when the statement may participate in pooling. |
| public property | queryTimeoutSecondsqueryTimeoutSeconds as Int |
Query timeout in seconds. |
| public readonly property | resultSetTyperesultSetType as ResultSetType |
Cursor scrollability mode. |
| public readonly property | warningwarning as SQLWarning |
Current warning chain. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | addBatchaddBatch(sql as String) as Void throws SQLException |
Adds one SQL statement to the batch. |
| public | clearBatchclearBatch() as Void |
Clears the queued batch. |
| public | clearWarningsclearWarnings() as Void |
Clears the warning chain. |
| public | executeexecute(sql as String) as Boolean throws SQLException |
Executes arbitrary SQL. |
| public | executeBatchexecuteBatch() as ArrayList<Long> throws SQLException |
Executes the queued batch. |
| public | executeQueryexecuteQuery(sql as String) as ResultSet throws SQLException |
Java-compatible alias of `query(. |
| public | executeUpdateexecuteUpdate(sql as String) as Int throws SQLException |
Java-compatible alias of `update(. |
| public | queryquery(sql as String) as ResultSet throws SQLException |
Executes a query and returns a cursor. |
| public | updateupdate(sql as String) as Long throws SQLException |
Executes an update and returns the affected row count. |