The setBindColType() methods
The methods are as follows:
public void setBindColType(int colIndex, int sqltype) throws SQLException; public void setBindColType(int colIndex, int sqltype, int scale) throws SQLException; public void setBindColType(int colIndex, int sqltype, String name) throws SQLException;
The first overloaded method
allows applications to specify the output type to be java.sql.DECIMAL
or java.sql.NUMERIC
;
the scale parameter specifies the number of digits to the right
of the decimal point. The second overloaded method allows applications
to specify the output type to be java.sql.STRUCT
, java.sql.ARRAY
, java.sql.DISTINCT
,
or java.sql.JAVA_OBJECT
by assigning one of these
values to the name parameter.