Class ResultSetWrapper40
- java.lang.Object
-
- com.sun.gjc.spi.base.ResultSetWrapper
-
- com.sun.gjc.spi.jdbc40.ResultSetWrapper40
-
- All Implemented Interfaces:
AutoCloseable,ResultSet,Wrapper
public class ResultSetWrapper40 extends ResultSetWrapper
Wrapper for ResultSet
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringManagerlocalStrings-
Fields inherited from class com.sun.gjc.spi.base.ResultSetWrapper
_logger, resultSet, statement
-
Fields inherited from interface java.sql.ResultSet
CLOSE_CURSORS_AT_COMMIT, CONCUR_READ_ONLY, CONCUR_UPDATABLE, FETCH_FORWARD, FETCH_REVERSE, FETCH_UNKNOWN, HOLD_CURSORS_OVER_COMMIT, TYPE_FORWARD_ONLY, TYPE_SCROLL_INSENSITIVE, TYPE_SCROLL_SENSITIVE
-
-
Constructor Summary
Constructors Constructor Description ResultSetWrapper40(Statement stmt, ResultSet rs)Creates a new instance of ResultSetWrapper for JDBC 4.0
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetHoldability()Retrieves the holdability of thisResultSetobjectReadergetNCharacterStream(int columnIndex)Retrieves the value of the designated column in the current row of thisResultSetobject as ajava.io.Readerobject.ReadergetNCharacterStream(String columnLabel)Retrieves the value of the designated column in the current row of thisResultSetobject as ajava.io.Readerobject.NClobgetNClob(int columnIndex)Retrieves the value of the designated column in the current row of thisResultSetobject as aNClobobject in the Java programming language.NClobgetNClob(String columnLabel)Retrieves the value of the designated column in the current row of thisResultSetobject as aNClobobject in the Java programming language.StringgetNString(int columnIndex)Retrieves the value of the designated column in the current row of thisResultSetobject as aStringin the Java programming language.StringgetNString(String columnLabel)Retrieves the value of the designated column in the current row of thisResultSetobject as aStringin the Java programming language.<T> TgetObject(int columnIndex, Class<T> type)<T> TgetObject(String columnLabel, Class<T> type)RowIdgetRowId(int columnIndex)Retrieves the value of the designated column in the current row of thisResultSetobject as ajava.sql.RowIdobject in the Java programming language.RowIdgetRowId(String columnLabel)Retrieves the value of the designated column in the current row of thisResultSetobject as ajava.sql.RowIdobject in the Java programming language.SQLXMLgetSQLXML(int columnIndex)Retrieves the value of the designated column in the current row of thisResultSetas ajava.sql.SQLXMLobject in the Java programming language.SQLXMLgetSQLXML(String columnLabel)Retrieves the value of the designated column in the current row of thisResultSetas ajava.sql.SQLXMLobject in the Java programming language.booleanisClosed()Retrieves whether thisResultSetobject has been closed.booleanisWrapperFor(Class<?> iface)Returns true if this either implements the interface argument or is directly or indirectly a wrapper for an object that does.<T> Tunwrap(Class<T> iface)Returns an object that implements the given interface to allow access to non-standard methods, or standard methods not exposed by the proxy.voidupdateAsciiStream(int columnIndex, InputStream x)Updates the designated column with an ascii stream value.voidupdateAsciiStream(int columnIndex, InputStream x, long length)Updates the designated column with an ascii stream value, which will have the specified number of bytes.voidupdateAsciiStream(String columnLabel, InputStream x)Updates the designated column with an ascii stream value.voidupdateAsciiStream(String columnLabel, InputStream x, long length)Updates the designated column with an ascii stream value, which will have the specified number of bytes.voidupdateBinaryStream(int columnIndex, InputStream x)Updates the designated column with a binary stream value.voidupdateBinaryStream(int columnIndex, InputStream x, long length)Updates the designated column with a binary stream value, which will have the specified number of bytes.voidupdateBinaryStream(String columnLabel, InputStream x)Updates the designated column with a binary stream value.voidupdateBinaryStream(String columnLabel, InputStream x, long length)Updates the designated column with a binary stream value, which will have the specified number of bytes.voidupdateBlob(int columnIndex, InputStream inputStream)Updates the designated column using the given input stream.voidupdateBlob(int columnIndex, InputStream inputStream, long length)Updates the designated column using the given input stream, which will have the specified number of bytes.voidupdateBlob(String columnLabel, InputStream inputStream)Updates the designated column using the given input stream.voidupdateBlob(String columnLabel, InputStream inputStream, long length)Updates the designated column using the given input stream, which will have the specified number of bytes.voidupdateCharacterStream(int columnIndex, Reader x)Updates the designated column with a character stream value.voidupdateCharacterStream(int columnIndex, Reader x, long length)Updates the designated column with a character stream value, which will have the specified number of bytes.voidupdateCharacterStream(String columnLabel, Reader reader)Updates the designated column with a character stream value.voidupdateCharacterStream(String columnLabel, Reader reader, long length)Updates the designated column with a character stream value, which will have the specified number of bytes.voidupdateClob(int columnIndex, Reader reader)Updates the designated column using the givenReaderobject.voidupdateClob(int columnIndex, Reader reader, long length)Updates the designated column using the givenReaderobject, which is the given number of characters long.voidupdateClob(String columnLabel, Reader reader)Updates the designated column using the givenReaderobject.voidupdateClob(String columnLabel, Reader reader, long length)Updates the designated column using the givenReaderobject, which is the given number of characters long.voidupdateNCharacterStream(int columnIndex, Reader x)Updates the designated column with a character stream value.voidupdateNCharacterStream(int columnIndex, Reader x, long length)Updates the designated column with a character stream value, which will have the specified number of bytes.voidupdateNCharacterStream(String columnLabel, Reader reader)Updates the designated column with a character stream value.voidupdateNCharacterStream(String columnLabel, Reader reader, long length)Updates the designated column with a character stream value, which will have the specified number of bytes.voidupdateNClob(int columnIndex, Reader reader)Updates the designated column using the givenReadervoidupdateNClob(int columnIndex, Reader reader, long length)Updates the designated column using the givenReaderobject, which is the given number of characters long.voidupdateNClob(int columnIndex, NClob nClob)Updates the designated column with ajava.sql.NClobvalue.voidupdateNClob(String columnLabel, Reader reader)Updates the designated column using the givenReaderobject.voidupdateNClob(String columnLabel, Reader reader, long length)Updates the designated column using the givenReaderobject, which is the given number of characters long.voidupdateNClob(String columnLabel, NClob nClob)Updates the designated column with ajava.sql.NClobvalue.voidupdateNString(int columnIndex, String nString)Updates the designated column with aStringvalue.voidupdateNString(String columnLabel, String nString)Updates the designated column with aStringvalue.voidupdateObject(int columnIndex, Object columnValue, SQLType targetSqlType)Updates the designated column with anObjectvalue.voidupdateObject(int columnIndex, Object columnValue, SQLType targetSqlType, int scaleOrLength)Updates the designated column with anObjectvalue.voidupdateObject(String columnLabel, Object columnValue, SQLType targetSqlType)Updates the designated column with anObjectvalue.voidupdateObject(String columnLabel, Object columnValue, SQLType targetSqlType, int scaleOrLength)Updates the designated column with anObjectvalue.voidupdateRowId(int columnIndex, RowId x)Updates the designated column with aRowIdvalue.voidupdateRowId(String columnLabel, RowId x)Updates the designated column with aRowIdvalue.voidupdateSQLXML(int columnIndex, SQLXML xmlObject)Updates the designated column with ajava.sql.SQLXMLvalue.voidupdateSQLXML(String columnLabel, SQLXML xmlObject)Updates the designated column with ajava.sql.SQLXMLvalue.-
Methods inherited from class com.sun.gjc.spi.base.ResultSetWrapper
absolute, afterLast, beforeFirst, cancelRowUpdates, clearWarnings, close, deleteRow, findColumn, first, getActualStatement, getArray, getArray, getAsciiStream, getAsciiStream, getBigDecimal, getBigDecimal, getBigDecimal, getBigDecimal, getBinaryStream, getBinaryStream, getBlob, getBlob, getBoolean, getBoolean, getByte, getByte, getBytes, getBytes, getCharacterStream, getCharacterStream, getClob, getClob, getConcurrency, getCursorName, getDate, getDate, getDate, getDate, getDouble, getDouble, getFetchDirection, getFetchSize, getFloat, getFloat, getInt, getInt, getLong, getLong, getMetaData, getMethodExecutor, getObject, getObject, getObject, getObject, getRef, getRef, getRow, getShort, getShort, getStatement, getString, getString, getTime, getTime, getTime, getTime, getTimestamp, getTimestamp, getTimestamp, getTimestamp, getType, getUnicodeStream, getUnicodeStream, getURL, getURL, getWarnings, insertRow, isAfterLast, isBeforeFirst, isFirst, isLast, last, moveToCurrentRow, moveToInsertRow, next, previous, refreshRow, relative, rowDeleted, rowInserted, rowUpdated, setFetchDirection, setFetchSize, updateArray, updateArray, updateAsciiStream, updateAsciiStream, updateBigDecimal, updateBigDecimal, updateBinaryStream, updateBinaryStream, updateBlob, updateBlob, updateBoolean, updateBoolean, updateByte, updateByte, updateBytes, updateBytes, updateCharacterStream, updateCharacterStream, updateClob, updateClob, updateDate, updateDate, updateDouble, updateDouble, updateFloat, updateFloat, updateInt, updateInt, updateLong, updateLong, updateNull, updateNull, updateObject, updateObject, updateObject, updateObject, updateRef, updateRef, updateRow, updateShort, updateShort, updateString, updateString, updateTime, updateTime, updateTimestamp, updateTimestamp, wasNull
-
-
-
-
Field Detail
-
localStrings
protected static final StringManager localStrings
-
-
Method Detail
-
getRowId
public RowId getRowId(int columnIndex) throws SQLException
Retrieves the value of the designated column in the current row of thisResultSetobject as ajava.sql.RowIdobject in the Java programming language.- Parameters:
columnIndex- the first column is 1, the second 2, ...- Returns:
- the column value; if the value is a SQL
NULLthe value returned isnull - Throws:
SQLException- if the columnIndex is not valid; if a database access error occurs or this method is called on a closed result setSQLFeatureNotSupportedException- if the JDBC driver does not support this method- Since:
- 1.6
-
getRowId
public RowId getRowId(String columnLabel) throws SQLException
Retrieves the value of the designated column in the current row of thisResultSetobject as ajava.sql.RowIdobject in the Java programming language.- Parameters:
columnLabel- the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the column- Returns:
- the column value ; if the value is a SQL
NULLthe value returned isnull - Throws:
SQLException- if the columnLabel is not valid; if a database access error occurs or this method is called on a closed result setSQLFeatureNotSupportedException- if the JDBC driver does not support this method- Since:
- 1.6
-
getObject
public <T> T getObject(int columnIndex, Class<T> type) throws SQLException- Throws:
SQLException
-
getObject
public <T> T getObject(String columnLabel, Class<T> type) throws SQLException
- Throws:
SQLException
-
updateRowId
public void updateRowId(int columnIndex, RowId x) throws SQLExceptionUpdates the designated column with aRowIdvalue. 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 theupdateRoworinsertRowmethods are called to update the database.- Parameters:
columnIndex- the first column is 1, the second 2, ...x- the column value- Throws:
SQLException- if the columnIndex is not valid; if a database access error occurs; the result set concurrency isCONCUR_READ_ONLYor this method is called on a closed result setSQLFeatureNotSupportedException- if the JDBC driver does not support this method- Since:
- 1.6
-
updateRowId
public void updateRowId(String columnLabel, RowId x) throws SQLException
Updates the designated column with aRowIdvalue. 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 theupdateRoworinsertRowmethods are called to update the database.- Parameters:
columnLabel- the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the columnx- the column value- Throws:
SQLException- if the columnLabel is not valid; if a database access error occurs; the result set concurrency isCONCUR_READ_ONLYor this method is called on a closed result setSQLFeatureNotSupportedException- if the JDBC driver does not support this method- Since:
- 1.6
-
getHoldability
public int getHoldability() throws SQLExceptionRetrieves the holdability of thisResultSetobject- Returns:
- either
ResultSet.HOLD_CURSORS_OVER_COMMITorResultSet.CLOSE_CURSORS_AT_COMMIT - Throws:
SQLException- if a database access error occurs or this method is called on a closed result set- Since:
- 1.6
-
isClosed
public boolean isClosed() throws SQLExceptionRetrieves whether thisResultSetobject has been closed. AResultSetis closed if the method close has been called on it, or if it is automatically closed.- Returns:
- true if this
ResultSetobject is closed; false if it is still open - Throws:
SQLException- if a database access error occurs- Since:
- 1.6
-
updateNString
public void updateNString(int columnIndex, String nString) throws SQLExceptionUpdates the designated column with aStringvalue. It is intended for use when updatingNCHAR,NVARCHARandLONGNVARCHARcolumns. 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 theupdateRoworinsertRowmethods are called to update the database.- Parameters:
columnIndex- the first column is 1, the second 2, ...nString- the value for the column to be updated- Throws:
SQLException- if the columnIndex is not valid; if the driver does not support national character sets; if the driver can detect that a data conversion error could occur; this method is called on a closed result set; the result set concurrency isCONCUR_READ_ONLYor if a database access error occursSQLFeatureNotSupportedException- if the JDBC driver does not support this method- Since:
- 1.6
-
updateNString
public void updateNString(String columnLabel, String nString) throws SQLException
Updates the designated column with aStringvalue. It is intended for use when updatingNCHAR,NVARCHARandLONGNVARCHARcolumns. 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 theupdateRoworinsertRowmethods are called to update the database.- Parameters:
columnLabel- the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the columnnString- the value for the column to be updated- Throws:
SQLException- if the columnLabel is not valid; if the driver does not support national character sets; if the driver can detect that a data conversion error could occur; this method is called on a closed result set; the result set concurrency isCONCUR_READ_ONLYor if a database access error occursSQLFeatureNotSupportedException- if the JDBC driver does not support this method- Since:
- 1.6
-
updateNClob
public void updateNClob(int columnIndex, NClob nClob) throws SQLExceptionUpdates the designated column with ajava.sql.NClobvalue. 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 theupdateRoworinsertRowmethods are called to update the database.- Parameters:
columnIndex- the first column is 1, the second 2, ...nClob- the value for the column to be updated- Throws:
SQLException- if the columnIndex is not valid; if the driver does not support national character sets; if the driver can detect that a data conversion error could occur; this method is called on a closed result set; if a database access error occurs or the result set concurrency isCONCUR_READ_ONLYSQLFeatureNotSupportedException- if the JDBC driver does not support this method- Since:
- 1.6
-
updateNClob
public void updateNClob(String columnLabel, NClob nClob) throws SQLException
Updates the designated column with ajava.sql.NClobvalue. 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 theupdateRoworinsertRowmethods are called to update the database.- Parameters:
columnLabel- the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the columnnClob- the value for the column to be updated- Throws:
SQLException- if the columnLabel is not valid; if the driver does not support national character sets; if the driver can detect that a data conversion error could occur; this method is called on a closed result set; if a database access error occurs or the result set concurrency isCONCUR_READ_ONLYSQLFeatureNotSupportedException- if the JDBC driver does not support this method- Since:
- 1.6
-
getNClob
public NClob getNClob(int columnIndex) throws SQLException
Retrieves the value of the designated column in the current row of thisResultSetobject as aNClobobject in the Java programming language.- Parameters:
columnIndex- the first column is 1, the second is 2, ...- Returns:
- a
NClobobject representing the SQLNCLOBvalue in the specified column - Throws:
SQLException- if the columnIndex is not valid; if the driver does not support national character sets; if the driver can detect that a data conversion error could occur; this method is called on a closed result set or if a database access error occursSQLFeatureNotSupportedException- if the JDBC driver does not support this method- Since:
- 1.6
-
getNClob
public NClob getNClob(String columnLabel) throws SQLException
Retrieves the value of the designated column in the current row of thisResultSetobject as aNClobobject in the Java programming language.- Parameters:
columnLabel- the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the column- Returns:
- a
NClobobject representing the SQLNCLOBvalue in the specified column - Throws:
SQLException- if the columnLabel is not valid; if the driver does not support national character sets; if the driver can detect that a data conversion error could occur; this method is called on a closed result set or if a database access error occursSQLFeatureNotSupportedException- if the JDBC driver does not support this method- Since:
- 1.6
-
getSQLXML
public SQLXML getSQLXML(int columnIndex) throws SQLException
Retrieves the value of the designated column in the current row of thisResultSetas ajava.sql.SQLXMLobject in the Java programming language.- Parameters:
columnIndex- the first column is 1, the second is 2, ...- Returns:
- a
SQLXMLobject that maps anSQL XMLvalue - Throws:
SQLException- if the columnIndex is not valid; if a database access error occurs or this method is called on a closed result setSQLFeatureNotSupportedException- if the JDBC driver does not support this method- Since:
- 1.6
-
getSQLXML
public SQLXML getSQLXML(String columnLabel) throws SQLException
Retrieves the value of the designated column in the current row of thisResultSetas ajava.sql.SQLXMLobject in the Java programming language.- Parameters:
columnLabel- the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the column- Returns:
- a
SQLXMLobject that maps anSQL XMLvalue - Throws:
SQLException- if the columnLabel is not valid; if a database access error occurs or this method is called on a closed result setSQLFeatureNotSupportedException- if the JDBC driver does not support this method- Since:
- 1.6
-
updateSQLXML
public void updateSQLXML(int columnIndex, SQLXML xmlObject) throws SQLExceptionUpdates the designated column with ajava.sql.SQLXMLvalue. 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 theupdateRoworinsertRowmethods are called to update the database.- Parameters:
columnIndex- the first column is 1, the second 2, ...xmlObject- the value for the column to be updated- Throws:
SQLException- if the columnIndex is not valid; if a database access error occurs; this method is called on a closed result set; thejava.xml.transform.Result,WriterorOutputStreamhas not been closed for theSQLXMLobject; if there is an error processing the XML value or the result set concurrency isCONCUR_READ_ONLY. ThegetCausemethod of the exception may provide a more detailed exception, for example, if the stream does not contain valid XML.SQLFeatureNotSupportedException- if the JDBC driver does not support this method- Since:
- 1.6
-
updateSQLXML
public void updateSQLXML(String columnLabel, SQLXML xmlObject) throws SQLException
Updates the designated column with ajava.sql.SQLXMLvalue. 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 theupdateRoworinsertRowmethods are called to update the database.- Parameters:
columnLabel- the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the columnxmlObject- the column value- Throws:
SQLException- if the columnLabel is not valid; if a database access error occurs; this method is called on a closed result set; thejava.xml.transform.Result,WriterorOutputStreamhas not been closed for theSQLXMLobject; if there is an error processing the XML value or the result set concurrency isCONCUR_READ_ONLY. ThegetCausemethod of the exception may provide a more detailed exception, for example, if the stream does not contain valid XML.SQLFeatureNotSupportedException- if the JDBC driver does not support this method- Since:
- 1.6
-
getNString
public String getNString(int columnIndex) throws SQLException
Retrieves the value of the designated column in the current row of thisResultSetobject as aStringin the Java programming language. It is intended for use when accessingNCHAR,NVARCHARandLONGNVARCHARcolumns.- Parameters:
columnIndex- the first column is 1, the second is 2, ...- Returns:
- the column value; if the value is SQL
NULL, the value returned isnull - Throws:
SQLException- if the columnIndex is not valid; if a database access error occurs or this method is called on a closed result setSQLFeatureNotSupportedException- if the JDBC driver does not support this method- Since:
- 1.6
-
getNString
public String getNString(String columnLabel) throws SQLException
Retrieves the value of the designated column in the current row of thisResultSetobject as aStringin the Java programming language. It is intended for use when accessingNCHAR,NVARCHARandLONGNVARCHARcolumns.- Parameters:
columnLabel- the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the column- Returns:
- the column value; if the value is SQL
NULL, the value returned isnull - Throws:
SQLException- if the columnLabel is not valid; if a database access error occurs or this method is called on a closed result setSQLFeatureNotSupportedException- if the JDBC driver does not support this method- Since:
- 1.6
-
getNCharacterStream
public Reader getNCharacterStream(int columnIndex) throws SQLException
Retrieves the value of the designated column in the current row of thisResultSetobject as ajava.io.Readerobject. It is intended for use when accessingNCHAR,NVARCHARandLONGNVARCHARcolumns.- Parameters:
columnIndex- the first column is 1, the second is 2, ...- Returns:
- a
java.io.Readerobject that contains the column value; if the value is SQLNULL, the value returned isnullin the Java programming language. - Throws:
SQLException- if the columnIndex is not valid; if a database access error occurs or this method is called on a closed result setSQLFeatureNotSupportedException- if the JDBC driver does not support this method- Since:
- 1.6
-
getNCharacterStream
public Reader getNCharacterStream(String columnLabel) throws SQLException
Retrieves the value of the designated column in the current row of thisResultSetobject as ajava.io.Readerobject. It is intended for use when accessingNCHAR,NVARCHARandLONGNVARCHARcolumns.- Parameters:
columnLabel- the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the column- Returns:
- a
java.io.Readerobject that contains the column value; if the value is SQLNULL, the value returned isnullin the Java programming language - Throws:
SQLException- if the columnLabel is not valid; if a database access error occurs or this method is called on a closed result setSQLFeatureNotSupportedException- if the JDBC driver does not support this method- Since:
- 1.6
-
updateNCharacterStream
public void updateNCharacterStream(int columnIndex, Reader x, long length) throws SQLExceptionUpdates the designated column with a character stream value, which will have the specified number of bytes. The driver does the necessary conversion from Java character format to the national character set in the database. It is intended for use when updatingNCHAR,NVARCHARandLONGNVARCHARcolumns.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
updateRoworinsertRowmethods are called to update the database.- Parameters:
columnIndex- the first column is 1, the second is 2, ...x- the new column valuelength- the length of the stream- Throws:
SQLException- if the columnIndex is not valid; if a database access error occurs; the result set concurrency isCONCUR_READ_ONLYor this method is called on a closed result setSQLFeatureNotSupportedException- if the JDBC driver does not support this method- Since:
- 1.6
-
updateNCharacterStream
public void updateNCharacterStream(String columnLabel, Reader reader, long length) throws SQLException
Updates the designated column with a character stream value, which will have the specified number of bytes. The driver does the necessary conversion from Java character format to the national character set in the database. It is intended for use when updatingNCHAR,NVARCHARandLONGNVARCHARcolumns.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
updateRoworinsertRowmethods are called to update the database.- Parameters:
columnLabel- the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the columnreader- thejava.io.Readerobject containing the new column valuelength- the length of the stream- Throws:
SQLException- if the columnLabel is not valid; if a database access error occurs; the result set concurrency isCONCUR_READ_ONLYor this method is called on a closed result setSQLFeatureNotSupportedException- if the JDBC driver does not support this method- Since:
- 1.6
-
updateAsciiStream
public void updateAsciiStream(int columnIndex, InputStream x, long length) throws SQLExceptionUpdates the designated column with an ascii stream value, which will have the specified number of bytes.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
updateRoworinsertRowmethods are called to update the database.- Parameters:
columnIndex- the first column is 1, the second is 2, ...x- the new column valuelength- the length of the stream- Throws:
SQLException- if the columnIndex is not valid; if a database access error occurs; the result set concurrency isCONCUR_READ_ONLYor this method is called on a closed result setSQLFeatureNotSupportedException- if the JDBC driver does not support this method- Since:
- 1.6
-
updateBinaryStream
public void updateBinaryStream(int columnIndex, InputStream x, long length) throws SQLExceptionUpdates the designated column with a binary stream value, which will have the specified number of bytes.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
updateRoworinsertRowmethods are called to update the database.- Parameters:
columnIndex- the first column is 1, the second is 2, ...x- the new column valuelength- the length of the stream- Throws:
SQLException- if the columnIndex is not valid; if a database access error occurs; the result set concurrency isCONCUR_READ_ONLYor this method is called on a closed result setSQLFeatureNotSupportedException- if the JDBC driver does not support this method- Since:
- 1.6
-
updateCharacterStream
public void updateCharacterStream(int columnIndex, Reader x, long length) throws SQLExceptionUpdates the designated column with a character stream value, which will have the specified number of bytes.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
updateRoworinsertRowmethods are called to update the database.- Parameters:
columnIndex- the first column is 1, the second is 2, ...x- the new column valuelength- the length of the stream- Throws:
SQLException- if the columnIndex is not valid; if a database access error occurs; the result set concurrency isCONCUR_READ_ONLYor this method is called on a closed result setSQLFeatureNotSupportedException- if the JDBC driver does not support this method- Since:
- 1.6
-
updateAsciiStream
public void updateAsciiStream(String columnLabel, InputStream x, long length) throws SQLException
Updates the designated column with an ascii stream value, which will have the specified number of bytes.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
updateRoworinsertRowmethods are called to update the database.- Parameters:
columnLabel- the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the columnx- the new column valuelength- the length of the stream- Throws:
SQLException- if the columnLabel is not valid; if a database access error occurs; the result set concurrency isCONCUR_READ_ONLYor this method is called on a closed result setSQLFeatureNotSupportedException- if the JDBC driver does not support this method- Since:
- 1.6
-
updateBinaryStream
public void updateBinaryStream(String columnLabel, InputStream x, long length) throws SQLException
Updates the designated column with a binary stream value, which will have the specified number of bytes.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
updateRoworinsertRowmethods are called to update the database.- Parameters:
columnLabel- the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the columnx- the new column valuelength- the length of the stream- Throws:
SQLException- if the columnLabel is not valid; if a database access error occurs; the result set concurrency isCONCUR_READ_ONLYor this method is called on a closed result setSQLFeatureNotSupportedException- if the JDBC driver does not support this method- Since:
- 1.6
-
updateCharacterStream
public void updateCharacterStream(String columnLabel, Reader reader, long length) throws SQLException
Updates the designated column with a character stream value, which will have the specified number of bytes.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
updateRoworinsertRowmethods are called to update the database.- Parameters:
columnLabel- the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the columnreader- thejava.io.Readerobject containing the new column valuelength- the length of the stream- Throws:
SQLException- if the columnLabel is not valid; if a database access error occurs; the result set concurrency isCONCUR_READ_ONLYor this method is called on a closed result setSQLFeatureNotSupportedException- if the JDBC driver does not support this method- Since:
- 1.6
-
updateBlob
public void updateBlob(int columnIndex, InputStream inputStream, long length) throws SQLExceptionUpdates the designated column using the given input stream, which will have the specified number of bytes.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
updateRoworinsertRowmethods are called to update the database.- Parameters:
columnIndex- the first column is 1, the second is 2, ...inputStream- An object that contains the data to set the parameter value to.length- the number of bytes in the parameter data.- Throws:
SQLException- if the columnIndex is not valid; if a database access error occurs; the result set concurrency isCONCUR_READ_ONLYor this method is called on a closed result setSQLFeatureNotSupportedException- if the JDBC driver does not support this method- Since:
- 1.6
-
updateBlob
public void updateBlob(String columnLabel, InputStream inputStream, long length) throws SQLException
Updates the designated column using the given input stream, which will have the specified number of bytes.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
updateRoworinsertRowmethods are called to update the database.- Parameters:
columnLabel- the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the columninputStream- An object that contains the data to set the parameter value to.length- the number of bytes in the parameter data.- Throws:
SQLException- if the columnLabel is not valid; if a database access error occurs; the result set concurrency isCONCUR_READ_ONLYor this method is called on a closed result setSQLFeatureNotSupportedException- if the JDBC driver does not support this method- Since:
- 1.6
-
updateClob
public void updateClob(int columnIndex, Reader reader, long length) throws SQLExceptionUpdates the designated column using the givenReaderobject, which is the given number of characters long. When a very large UNICODE value is input to aLONGVARCHARparameter, it may be more practical to send it via ajava.io.Readerobject. The JDBC driver will do any necessary conversion from UNICODE to the database char format.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
updateRoworinsertRowmethods are called to update the database.- Parameters:
columnIndex- the first column is 1, the second is 2, ...reader- An object that contains the data to set the parameter value to.length- the number of characters in the parameter data.- Throws:
SQLException- if the columnIndex is not valid; if a database access error occurs; the result set concurrency isCONCUR_READ_ONLYor this method is called on a closed result setSQLFeatureNotSupportedException- if the JDBC driver does not support this method- Since:
- 1.6
-
updateClob
public void updateClob(String columnLabel, Reader reader, long length) throws SQLException
Updates the designated column using the givenReaderobject, which is the given number of characters long. When a very large UNICODE value is input to aLONGVARCHARparameter, it may be more practical to send it via ajava.io.Readerobject. The JDBC driver will do any necessary conversion from UNICODE to the database char format.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
updateRoworinsertRowmethods are called to update the database.- Parameters:
columnLabel- the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the columnreader- An object that contains the data to set the parameter value to.length- the number of characters in the parameter data.- Throws:
SQLException- if the columnLabel is not valid; if a database access error occurs; the result set concurrency isCONCUR_READ_ONLYor this method is called on a closed result setSQLFeatureNotSupportedException- if the JDBC driver does not support this method- Since:
- 1.6
-
updateNClob
public void updateNClob(int columnIndex, Reader reader, long length) throws SQLExceptionUpdates the designated column using the givenReaderobject, which is the given number of characters long. When a very large UNICODE value is input to aLONGVARCHARparameter, it may be more practical to send it via ajava.io.Readerobject. The JDBC driver will do any necessary conversion from UNICODE to the database char format.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
updateRoworinsertRowmethods are called to update the database.- Parameters:
columnIndex- the first column is 1, the second 2, ...reader- An object that contains the data to set the parameter value to.length- the number of characters in the parameter data.- Throws:
SQLException- if the columnIndex is not valid; if the driver does not support national character sets; if the driver can detect that a data conversion error could occur; this method is called on a closed result set, if a database access error occurs or the result set concurrency isCONCUR_READ_ONLYSQLFeatureNotSupportedException- if the JDBC driver does not support this method- Since:
- 1.6
-
updateNClob
public void updateNClob(String columnLabel, Reader reader, long length) throws SQLException
Updates the designated column using the givenReaderobject, which is the given number of characters long. When a very large UNICODE value is input to aLONGVARCHARparameter, it may be more practical to send it via ajava.io.Readerobject. The JDBC driver will do any necessary conversion from UNICODE to the database char format.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
updateRoworinsertRowmethods are called to update the database.- Parameters:
columnLabel- the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the columnreader- An object that contains the data to set the parameter value to.length- the number of characters in the parameter data.- Throws:
SQLException- if the columnLabel is not valid; if the driver does not support national character sets; if the driver can detect that a data conversion error could occur; this method is called on a closed result set; if a database access error occurs or the result set concurrency isCONCUR_READ_ONLYSQLFeatureNotSupportedException- if the JDBC driver does not support this method- Since:
- 1.6
-
updateNCharacterStream
public void updateNCharacterStream(int columnIndex, Reader x) throws SQLExceptionUpdates the designated column with a character stream value. The data will be read from the stream as needed until end-of-stream is reached. The driver does the necessary conversion from Java character format to the national character set in the database. It is intended for use when updatingNCHAR,NVARCHARandLONGNVARCHARcolumns.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
Note: Consult your JDBC driver documentation to determine if it might be more efficient to use a version ofupdateRoworinsertRowmethods are called to update the database.updateNCharacterStreamwhich takes a length parameter.- Parameters:
columnIndex- the first column is 1, the second is 2, ...x- the new column value- Throws:
SQLException- if the columnIndex is not valid; if a database access error occurs; the result set concurrency isCONCUR_READ_ONLYor this method is called on a closed result setSQLFeatureNotSupportedException- if the JDBC driver does not support this method- Since:
- 1.6
-
updateNCharacterStream
public void updateNCharacterStream(String columnLabel, Reader reader) throws SQLException
Updates the designated column with a character stream value. The data will be read from the stream as needed until end-of-stream is reached. The driver does the necessary conversion from Java character format to the national character set in the database. It is intended for use when updatingNCHAR,NVARCHARandLONGNVARCHARcolumns.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
Note: Consult your JDBC driver documentation to determine if it might be more efficient to use a version ofupdateRoworinsertRowmethods are called to update the database.updateNCharacterStreamwhich takes a length parameter.- Parameters:
columnLabel- the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the columnreader- thejava.io.Readerobject containing the new column value- Throws:
SQLException- if the columnLabel is not valid; if a database access error occurs; the result set concurrency isCONCUR_READ_ONLYor this method is called on a closed result setSQLFeatureNotSupportedException- if the JDBC driver does not support this method- Since:
- 1.6
-
updateAsciiStream
public void updateAsciiStream(int columnIndex, InputStream x) throws SQLExceptionUpdates the designated column with an ascii stream value. The data will be read from the stream as needed until end-of-stream is reached.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
Note: Consult your JDBC driver documentation to determine if it might be more efficient to use a version ofupdateRoworinsertRowmethods are called to update the database.updateAsciiStreamwhich takes a length parameter.- Parameters:
columnIndex- the first column is 1, the second is 2, ...x- the new column value- Throws:
SQLException- if the columnIndex is not valid; if a database access error occurs; the result set concurrency isCONCUR_READ_ONLYor this method is called on a closed result setSQLFeatureNotSupportedException- if the JDBC driver does not support this method- Since:
- 1.6
-
updateBinaryStream
public void updateBinaryStream(int columnIndex, InputStream x) throws SQLExceptionUpdates the designated column with a binary stream value. The data will be read from the stream as needed until end-of-stream is reached.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
Note: Consult your JDBC driver documentation to determine if it might be more efficient to use a version ofupdateRoworinsertRowmethods are called to update the database.updateBinaryStreamwhich takes a length parameter.- Parameters:
columnIndex- the first column is 1, the second is 2, ...x- the new column value- Throws:
SQLException- if the columnIndex is not valid; if a database access error occurs; the result set concurrency isCONCUR_READ_ONLYor this method is called on a closed result setSQLFeatureNotSupportedException- if the JDBC driver does not support this method- Since:
- 1.6
-
updateCharacterStream
public void updateCharacterStream(int columnIndex, Reader x) throws SQLExceptionUpdates the designated column with a character stream value. The data will be read from the stream as needed until end-of-stream is reached.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
Note: Consult your JDBC driver documentation to determine if it might be more efficient to use a version ofupdateRoworinsertRowmethods are called to update the database.updateCharacterStreamwhich takes a length parameter.- Parameters:
columnIndex- the first column is 1, the second is 2, ...x- the new column value- Throws:
SQLException- if the columnIndex is not valid; if a database access error occurs; the result set concurrency isCONCUR_READ_ONLYor this method is called on a closed result setSQLFeatureNotSupportedException- if the JDBC driver does not support this method- Since:
- 1.6
-
updateAsciiStream
public void updateAsciiStream(String columnLabel, InputStream x) throws SQLException
Updates the designated column with an ascii stream value. The data will be read from the stream as needed until end-of-stream is reached.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
Note: Consult your JDBC driver documentation to determine if it might be more efficient to use a version ofupdateRoworinsertRowmethods are called to update the database.updateAsciiStreamwhich takes a length parameter.- Parameters:
columnLabel- the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the columnx- the new column value- Throws:
SQLException- if the columnLabel is not valid; if a database access error occurs; the result set concurrency isCONCUR_READ_ONLYor this method is called on a closed result setSQLFeatureNotSupportedException- if the JDBC driver does not support this method- Since:
- 1.6
-
updateBinaryStream
public void updateBinaryStream(String columnLabel, InputStream x) throws SQLException
Updates the designated column with a binary stream value. The data will be read from the stream as needed until end-of-stream is reached.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
Note: Consult your JDBC driver documentation to determine if it might be more efficient to use a version ofupdateRoworinsertRowmethods are called to update the database.updateBinaryStreamwhich takes a length parameter.- Parameters:
columnLabel- the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the columnx- the new column value- Throws:
SQLException- if the columnLabel is not valid; if a database access error occurs; the result set concurrency isCONCUR_READ_ONLYor this method is called on a closed result setSQLFeatureNotSupportedException- if the JDBC driver does not support this method- Since:
- 1.6
-
updateCharacterStream
public void updateCharacterStream(String columnLabel, Reader reader) throws SQLException
Updates the designated column with a character stream value. The data will be read from the stream as needed until end-of-stream is reached.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
Note: Consult your JDBC driver documentation to determine if it might be more efficient to use a version ofupdateRoworinsertRowmethods are called to update the database.updateCharacterStreamwhich takes a length parameter.- Parameters:
columnLabel- the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the columnreader- thejava.io.Readerobject containing the new column value- Throws:
SQLException- if the columnLabel is not valid; if a database access error occurs; the result set concurrency isCONCUR_READ_ONLYor this method is called on a closed result setSQLFeatureNotSupportedException- if the JDBC driver does not support this method- Since:
- 1.6
-
updateBlob
public void updateBlob(int columnIndex, InputStream inputStream) throws SQLExceptionUpdates the designated column using the given input stream. The data will be read from the stream as needed until end-of-stream is reached.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
Note: Consult your JDBC driver documentation to determine if it might be more efficient to use a version ofupdateRoworinsertRowmethods are called to update the database.updateBlobwhich takes a length parameter.- Parameters:
columnIndex- the first column is 1, the second is 2, ...inputStream- An object that contains the data to set the parameter value to.- Throws:
SQLException- if the columnIndex is not valid; if a database access error occurs; the result set concurrency isCONCUR_READ_ONLYor this method is called on a closed result setSQLFeatureNotSupportedException- if the JDBC driver does not support this method- Since:
- 1.6
-
updateBlob
public void updateBlob(String columnLabel, InputStream inputStream) throws SQLException
Updates the designated column using the given input stream. The data will be read from the stream as needed until end-of-stream is reached.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
Note: Consult your JDBC driver documentation to determine if it might be more efficient to use a version ofupdateRoworinsertRowmethods are called to update the database.updateBlobwhich takes a length parameter.- Parameters:
columnLabel- the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the columninputStream- An object that contains the data to set the parameter value to.- Throws:
SQLException- if the columnLabel is not valid; if a database access error occurs; the result set concurrency isCONCUR_READ_ONLYor this method is called on a closed result setSQLFeatureNotSupportedException- if the JDBC driver does not support this method- Since:
- 1.6
-
updateClob
public void updateClob(int columnIndex, Reader reader) throws SQLExceptionUpdates the designated column using the givenReaderobject. The data will be read from the stream as needed until end-of-stream is reached. The JDBC driver will do any necessary conversion from UNICODE to the database char format.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
Note: Consult your JDBC driver documentation to determine if it might be more efficient to use a version ofupdateRoworinsertRowmethods are called to update the database.updateClobwhich takes a length parameter.- Parameters:
columnIndex- the first column is 1, the second is 2, ...reader- An object that contains the data to set the parameter value to.- Throws:
SQLException- if the columnIndex is not valid; if a database access error occurs; the result set concurrency isCONCUR_READ_ONLYor this method is called on a closed result setSQLFeatureNotSupportedException- if the JDBC driver does not support this method- Since:
- 1.6
-
updateClob
public void updateClob(String columnLabel, Reader reader) throws SQLException
Updates the designated column using the givenReaderobject. The data will be read from the stream as needed until end-of-stream is reached. The JDBC driver will do any necessary conversion from UNICODE to the database char format.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
Note: Consult your JDBC driver documentation to determine if it might be more efficient to use a version ofupdateRoworinsertRowmethods are called to update the database.updateClobwhich takes a length parameter.- Parameters:
columnLabel- the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the columnreader- An object that contains the data to set the parameter value to.- Throws:
SQLException- if the columnLabel is not valid; if a database access error occurs; the result set concurrency isCONCUR_READ_ONLYor this method is called on a closed result setSQLFeatureNotSupportedException- if the JDBC driver does not support this method- Since:
- 1.6
-
updateNClob
public void updateNClob(int columnIndex, Reader reader) throws SQLExceptionUpdates the designated column using the givenReaderThe data will be read from the stream as needed until end-of-stream is reached. The JDBC driver will do any necessary conversion from UNICODE to the database char format.
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 theupdateRoworinsertRowmethods are called to update the database.Note: Consult your JDBC driver documentation to determine if it might be more efficient to use a version of
updateNClobwhich takes a length parameter.- Parameters:
columnIndex- the first column is 1, the second 2, ...reader- An object that contains the data to set the parameter value to.- Throws:
SQLException- if the columnIndex is not valid; if the driver does not support national character sets; if the driver can detect that a data conversion error could occur; this method is called on a closed result set, if a database access error occurs or the result set concurrency isCONCUR_READ_ONLYSQLFeatureNotSupportedException- if the JDBC driver does not support this method- Since:
- 1.6
-
updateNClob
public void updateNClob(String columnLabel, Reader reader) throws SQLException
Updates the designated column using the givenReaderobject. The data will be read from the stream as needed until end-of-stream is reached. The JDBC driver will do any necessary conversion from UNICODE to the database char format.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
Note: Consult your JDBC driver documentation to determine if it might be more efficient to use a version ofupdateRoworinsertRowmethods are called to update the database.updateNClobwhich takes a length parameter.- Parameters:
columnLabel- the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the columnreader- An object that contains the data to set the parameter value to.- Throws:
SQLException- if the columnLabel is not valid; if the driver does not support national character sets; if the driver can detect that a data conversion error could occur; this method is called on a closed result set; if a database access error occurs or the result set concurrency isCONCUR_READ_ONLYSQLFeatureNotSupportedException- if the JDBC driver does not support this method- Since:
- 1.6
-
unwrap
public <T> T unwrap(Class<T> iface) throws SQLException
Returns an object that implements the given interface to allow access to non-standard methods, or standard methods not exposed by the proxy.If the receiver implements the interface then the result is the receiver or a proxy for the receiver. If the receiver is a wrapper and the wrapped object implements the interface then the result is the wrapped object or a proxy for the wrapped object. Otherwise return the the result of calling
unwraprecursively on the wrapped object or a proxy for that result. If the receiver is not a wrapper and does not implement the interface, then anSQLExceptionis thrown.- Parameters:
iface- A Class defining an interface that the result must implement.- Returns:
- an object that implements the interface. May be a proxy for the actual implementing object.
- Throws:
SQLException- If no object found that implements the interface- Since:
- 1.6
-
isWrapperFor
public boolean isWrapperFor(Class<?> iface) throws SQLException
Returns true if this either implements the interface argument or is directly or indirectly a wrapper for an object that does. Returns false otherwise. If this implements the interface then return true, else if this is a wrapper then return the result of recursively callingisWrapperForon the wrapped object. If this does not implement the interface and is not a wrapper, return false. This method should be implemented as a low-cost operation compared tounwrapso that callers can use this method to avoid expensiveunwrapcalls that may fail. If this method returns true then callingunwrapwith the same argument should succeed.- Parameters:
iface- a Class defining an interface.- Returns:
- true if this implements the interface or directly or indirectly wraps an object that does.
- Throws:
SQLException- if an error occurs while determining whether this is a wrapper for an object with the given interface.- Since:
- 1.6
-
updateObject
public void updateObject(int columnIndex, Object columnValue, SQLType targetSqlType, int scaleOrLength) throws SQLExceptionUpdates the designated column with anObjectvalue.- Parameters:
columnIndex- the first column is 1, the second is 2, ...columnValue- the new column valuetargetSqlType- the SQL type to be sent to the databasescaleOrLength- for an object ofjava.math.BigDecimal, this is the number of digits after the decimal point. For Java Object typesInputStreamandReader, this is the length of the data in the stream or reader. For all other types, this value will be ignored.- Throws:
SQLException- if the columnIndex is not valid; if a database access error occurs; the result set concurrency isCONCUR_READ_ONLYor this method is called on a closed result setSQLFeatureNotSupportedException- if the JDBC driver does not support this method; if the JDBC driver does not support the specified targetSqlType
-
updateObject
public void updateObject(String columnLabel, Object columnValue, SQLType targetSqlType, int scaleOrLength) throws SQLException
Updates the designated column with anObjectvalue.- Parameters:
columnLabel- the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the columncolumnValue- the new column valuetargetSqlType- the SQL type to be sent to the databasescaleOrLength- for an object ofjava.math.BigDecimal, this is the number of digits after the decimal point. For Java Object typesInputStreamandReader, this is the length of the data in the stream or reader. For all other types, this value will be ignored.- Throws:
SQLException- if the columnLabel is not valid; if a database access error occurs; the result set concurrency isCONCUR_READ_ONLYor this method is called on a closed result setSQLFeatureNotSupportedException- if the JDBC driver does not support this method; if the JDBC driver does not support the specified targetSqlType
-
updateObject
public void updateObject(int columnIndex, Object columnValue, SQLType targetSqlType) throws SQLExceptionUpdates the designated column with anObjectvalue.- Parameters:
columnIndex- the first column is 1, the second is 2, ...columnValue- the new column valuetargetSqlType- the SQL type to be sent to the database- Throws:
SQLException- if the columnIndex is not valid; if a database access error occurs; the result set concurrency isCONCUR_READ_ONLYor this method is called on a closed result setSQLFeatureNotSupportedException- if the JDBC driver does not support this method; if the JDBC driver does not support the specified targetSqlType
-
updateObject
public void updateObject(String columnLabel, Object columnValue, SQLType targetSqlType) throws SQLException
Updates the designated column with anObjectvalue.- Parameters:
columnLabel- the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the columncolumnValue- the new column valuetargetSqlType- the SQL type to be sent to the database- Throws:
SQLException- if the columnLabel is not valid; if a database access error occurs; the result set concurrency isCONCUR_READ_ONLYor this method is called on a closed result setSQLFeatureNotSupportedException- if the JDBC driver does not support this method; if the JDBC driver does not support the specified targetSqlType
-
-