Retrieves the value of the designated column in the current row
of this ResultSet object and will convert from the
SQL type of the column 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.
columnIndex | the first column is 1, the second is 2, ... | |
type | Class representing the Java data type to convert the designated column to. |
type holding the column 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: ResultSet