Returns an object representing the value of OUT parameter
parameterIndex
and will convert from the
SQL type of the parameter to the requested Java data type, if the
conversion is supported. If the conversion is not
supported or null is specified for the type, a
SQLException
is thrown.
At a minimum, an implementation must support the conversions defined in
Appendix B, Table B-3 and conversion of appropriate user defined SQL
types to a Java type which implements SQLData
, or Struct
.
Additional conversions may be supported and are vendor defined.
parameterIndex | the first parameter is 1, the second is 2, and so on | |
type | Class representing the Java data type to convert the designated parameter to. | |
<T> | the type of the class modeled by this Class object |
type
holding the OUT parameter value
SQLException | if conversion is not supported, type is null or another error occurs. The getCause() method of the exception may provide a more detailed exception, for example, if a conversion error occurs | |
SQLFeatureNotSupportedException | if the JDBC driver does not support this method |
Diagram: Statement