Updates the designated column with an Object value.
The updater methods are used to update column values in the
current row or the insert row. The updater methods do not
update the underlying database; instead the updateRow or
insertRow methods are called to update the database.
If the second argument is an InputStream then the stream must contain
the number of bytes specified by scaleOrLength. If the second argument is a
Reader then the reader must contain the number of characters specified
by scaleOrLength. If these conditions are not true the driver will generate a
SQLException when the statement is executed.
The default implementation will throw SQLFeatureNotSupportedException
columnIndex | the first column is 1, the second is 2, ... | |
x | the new column value | |
targetSqlType | the SQL type to be sent to the database | |
scaleOrLength | for an object of java.math.BigDecimal ,
this is the number of digits after the decimal point. For
Java Object types InputStream and Reader,
this is the length
of the data in the stream or reader. For all other types,
this value will be ignored. |
SQLException | if the columnIndex is not valid;
if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result set | |
SQLFeatureNotSupportedException | if the JDBC driver does not support this method; if the JDBC driver does not support the specified targetSqlType |
Diagram: ResultSet