CallableStatement
interfacein packageklyn.databases.sql
public interface CallableStatement extends PreparedStatement:
└ CallableStatement
Stored-procedure statement contract inspired by `java.sql.CallableStatement`.
Output parameters are declared with `out(...)` and then read with
JDBC-style `getXxx(...)` methods.
import klyn.databases.sql
call = connection.callable("{ call refresh_score(?, ?) }")
call.bindInt(1, 42).out(2, Types.INTEGER)
Properties
| Modifier and Type |
Member |
Description |
| public readonly property |
outParameters |
Declared output parameters (`index -> sqlType`). |
| public readonly property |
outValues |
Output values produced by the driver. |
Properties inherited from Statement: batchSize,
closeOnCompletion,
closed,
concurrency,
connection,
cursorName,
escapeProcessing,
fetchDirection,
fetchSize,
generatedKeys,
holdability,
largeMaxRows,
maxFieldSize,
maxRows,
poolable,
queryTimeoutSeconds,
resultSetType,
warning
Methods
| Modifier and Type |
Member |
Description |
| public |
getBoolean |
Reads one output parameter as `Boolean`. |
| public |
getDouble |
Reads one output parameter as `Double`. |
| public |
getInt |
Reads one output parameter as `Int`. |
| public |
getLong |
Reads one output parameter as `Long`. |
| public |
getObject |
Reads one output parameter as an object. |
| public |
getString |
Reads one output parameter as text. |
| public |
out |
Declares one output parameter. |
| public |
registerOutParameter |
Java-compatible alias of `out(. |
| public |
wasNull |
True when the last `getXxx(. |
Methods inherited from PreparedStatement: bind,
bindBoolean,
bindDouble,
bindInt,
bindLong,
bindNull,
bindString,
clearParameters,
execute,
query,
update