Registers the parameter in ordinal position
parameterIndex
to be of JDBC type
sqlType
. All OUT parameters must be registered
before a stored procedure is executed.
The JDBC type specified by sqlType
for an OUT
parameter determines the Java type that must be used
in the get
method to read the value of that parameter.
This version of registerOutParameter
should be
used when the parameter is of JDBC type JDBCType.NUMERIC
or JDBCType.DECIMAL
.
The default implementation will throw SQLFeatureNotSupportedException
parameterIndex | the first parameter is 1, the second is 2, and so on | |
sqlType | the JDBC type code defined by SQLType to use to
register the OUT Parameter. | |
scale | the desired number of digits to the right of the decimal point. It must be greater than or equal to zero. |
SQLException | if the parameterIndex is not valid;
if a database access error occurs or
this method is called on a closed CallableStatement | |
SQLFeatureNotSupportedException | if the JDBC driver does not support the specified sqlType |
Diagram: Statement