public interface CallableStatement extends PreparedStatement:
Stored-procedure statement contract.
Output parameters are declared with out(...) and then read with typed getXxx(...) methods.
import klyn.databases.sql
call = connection.callable("{ call refresh_score(?, ?) }")
call.setInt(1, 42).out(2, Types.INTEGER)| Modifier and Type | Member | Description |
|---|---|---|
| public readonly property | outParameters | Declared output parameters (`index -> sqlType`). |
| public readonly property | outValues | Output values produced by the driver. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | getBooleangetBoolean(index as Int) as Boolean throws SQLException |
Reads one output parameter as `Boolean`. |
| public | getDoublegetDouble(index as Int) as Double throws SQLException |
Reads one output parameter as `Double`. |
| public | getIntgetInt(index as Int) as Int throws SQLException |
Reads one output parameter as `Int`. |
| public | getLonggetLong(index as Int) as Long throws SQLException |
Reads one output parameter as `Long`. |
| public | getObjectgetObject(index as Int) as Object throws SQLException |
Reads one output parameter as an object. |
| public | getStringgetString(index as Int) as String throws SQLException |
Reads one output parameter as text. |
| public | outout(index as Int, sqlType as Int, scale as Int = 0) as CallableStatement throws SQLException |
Declares one output parameter. |
| public | registerOutParameterregisterOutParameter(index as Int, sqlType as Int, scale as Int = 0) as CallableStatement throws SQLException |
Compatibility alias of `out(. |
| public | wasNullwasNull() as Boolean throws SQLException |
True when the last `getXxx(. |