public class OdbcParameterMetaData implements ParameterMetaData:
Parameter metadata for ODBC prepared statements.
ODBC drivers do not all expose parameter descriptors consistently, so this implementation reports the parameter count known from the SQL text and uses the values bound through the Klyn API to infer type information.
import klyn.databases.sql
# prepared = connection.prepared("select * from users where id = ?")
# print(prepared.parameterInfo.parameterCount)| Modifier and Type | Member | Description |
|---|---|---|
| public readonly property | parameterCountparameterCount as Int: |
Number of parameters declared in the SQL text. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | getParameterCountgetParameterCount() as Int: |
Returns the number of parameters declared in the SQL text. |
| public | getParameterModegetParameterMode(index as Int) as ParameterMode throws SQLException: |
Returns the parameter mode. |
| public | getParameterTypegetParameterType(index as Int) as Int throws SQLException: |
Returns the SQL type code inferred for a parameter. |
| public | getParameterTypeNamegetParameterTypeName(index as Int) as String throws SQLException: |
Returns the SQL type name inferred for a parameter. |
| public | getPrecisiongetPrecision(index as Int) as Int throws SQLException: |
Returns the textual precision inferred for a parameter. |
| public | getScalegetScale(index as Int) as Int throws SQLException: |
Returns numeric scale for a parameter. |
| public | isNullableisNullable(index as Int) as Nullability throws SQLException: |
Returns the nullability contract for a parameter. |
| public | isSignedisSigned(index as Int) as Boolean throws SQLException: |
Returns true for signed numeric parameters. |
| public | nullabilitynullability(index as Int) as Nullability throws SQLException: |
Returns the nullability contract for a parameter. |
| public | parameterModeparameterMode(index as Int) as ParameterMode throws SQLException: |
Returns the parameter mode. |
| public | parameterTypeparameterType(index as Int) as Int throws SQLException: |
Returns the SQL type code inferred for a parameter. |
| public | parameterTypeNameparameterTypeName(index as Int) as String throws SQLException: |
Returns the SQL type name inferred for a parameter. |
| public | precisionprecision(index as Int) as Int throws SQLException: |
Returns the textual precision inferred for a parameter. |
| public | scalescale(index as Int) as Int throws SQLException: |
Returns numeric scale for a parameter. |
| public | signedsigned(index as Int) as Boolean throws SQLException: |
Returns true for signed numeric parameters. |