* @param x the new column value * @throws SQLException if a database access error occurs * or this rowset does not currently have a valid connection, * prepared statement, and result set * */ public void updateTime(int columnIndex, java.sql.Time x) throws SQLException { checkState(); // To check the type and concurrency of the ResultSet // to verify whether updates are possible or not checkTypeConcurrency(); rs.updateTime(columnIndex, x); } /** * Updates the designated column with a <code>java.sql.Timestamp</code> * value. * The <code>updateXXX</code> methods are used to update column values in the * current row or the insert row. The <code>updateXXX</code> methods do not * update the underlying database; instead the <code>updateRow</code> or * <code>insertRow</code> methods are called to update the database. * * @param columnIndex the first column is 1, the second is 2, and so on * @param x the new column value * @throws SQLException if a database access error occurs * or this rowset does not currently have a valid connection, * prepared statement, and result set * */ public void updateTimestamp(int columnIndex, java.sql.Timestamp x) throws SQLException { checkState(); // To check the type and concurrency of the ResultSet // to verify whether updates are possible or not checkTypeConcurrency(); rs.updateTimestamp(columnIndex, x); } /** * Updates the designated column with an ascii stream value. * The <code>updateXXX</code> methods are used to update column values in the * current row or the insert row. The <code>updateXXX</code> methods do not * update the underlying database; instead the <code>updateRow</code> or * <code>insertRow</code> methods are called to update the database. * * @param columnIndex the first column is 1, the second is 2, and so on * @param x the new column value * @param length the length of the stream * @throws SQLException if (1) a database access error occurs * (2) or this rowset does not currently have a valid connection, * prepared statement, and result set * */ public void updateAsciiStream(int columnIndex, java.io.InputStream x, int length) throws SQLException { checkState(); // To check the type and concurrency of the ResultSet // to verify whether updates are possible or not checkTypeConcurrency(); rs.updateAsciiStream(columnIndex, x, length); } /** * Updates the designated column with a binary stream value. * The <code>updateXXX</code> methods are used to update column values in the * current row or the insert row. The <code>updateXXX</code> methods do not * update the underlying database; instead the <code>updateRow</code> or * <code>insertRow</code> methods are called to update the database. * * @param columnIndex the first column is 1, the second is 2, and so on * @param x the new column value * @param length the length of the stream * @throws SQLException if a database access error occurs * or this rowset does not currently have a valid connection, * prepared statement, and result set * */ public void updateBinaryStream(int columnIndex, java.io.InputStream x, int length) throws SQLException { checkState(); // To check the type and concurrency of the ResultSet // to verify whether updates are possible or not checkTypeConcurrency(); rs.updateBinaryStream(columnIndex, x, length); } /** * Updates the designated column with a character stream value. * The <code>updateXXX</code> methods are used to update column values in the * current row or the insert row. The <code>updateXXX</code> methods do not * update the underlying database; instead the <code>updateRow</code> or * <code>insertRow</code> methods are called to update the database. * * @param columnIndex the first column is 1, the second is 2, and so on * @param x the new column value * @param length the length of the stream * @throws SQLException if a database access error occurs * or this rowset does not currently have a valid connection, * prepared statement, and result set * */ public void updateCharacterStream(int columnIndex, java.io.Reader x, int length) throws SQLException { checkState(); // To check the type and concurrency of the ResultSet // to verify whether updates are possible or not checkTypeConcurrency(); rs.updateCharacterStream(columnIndex, x, length); } /** * Updates the designated column with an <code>Object</code> value. * The <code>updateXXX</code> methods are used to update column values in the * current row or the insert row. The <code>updateXXX</code> methods do not * update the underlying database; instead the <code>updateRow</code> or * <code>insertRow</code> methods are called to update the database. * * @param columnIndex the first column is 1, the second is 2, and so on * @param x the new column value * @param scale for <code>java.sql.Types.DECIMAl</code> * or <code>java.sql.Types.NUMERIC</code> types, * this is the number of digits after the decimal point. For all other * types this value will be ignored. * @throws SQLException if a database access error occurs * or this rowset does not currently have a valid connection, * prepared statement, and result set * */ public void updateObject(int columnIndex, Object x, int scale) throws SQLException { checkState(); // To check the type and concurrency of the ResultSet // to verify whether updates are possible or not checkTypeConcurrency(); rs.updateObject(columnIndex, x, scale); } /** * Updates the designated column with an <code>Object</code> value. * The <code>updateXXX</code> methods are used to update column values in the * current row or the insert row. The <code>updateXXX</code> methods do not * update the underlying database; instead the <code>updateRow</code> or * <code>insertRow</code> methods are called to update the database. * * @param columnIndex the first column is 1, the second is 2, and so on * @param x the new column value * @throws SQLException if a database access error occurs * or this rowset does not currently have a valid connection, * prepared statement, and result set * */ public void updateObject(int columnIndex, Object x) throws SQLException { checkState(); // To check the type and concurrency of the ResultSet // to verify whether updates are possible or not checkTypeConcurrency(); rs.updateObject(columnIndex, x); } /** * Updates the designated column with a <code>null</code> value. * The <code>updateXXX</code> methods are used to update column values in the * current row or the insert row. The <code>updateXXX</code> methods do not * update the underlying database; instead the <code>updateRow</code> or * <code>insertRow</code> methods are called to update the database. * * @param columnName the name of the column * @throws SQLException if a database access error occurs * or this rowset does not currently have a valid connection, * prepared statement, and result set * */ public void updateNull(String columnName) throws SQLException { updateNull(findColumn(columnName)); } /** * Updates the designated column with a <code>boolean</code> value. * The <code>updateXXX</code> methods are used to update column values in the * current row or the insert row. The <code>updateXXX</code> methods do not * update the underlying database; instead the <code>updateRow</code> or * <code>insertRow</code> methods are called to update the database. * * @param columnName the name of the column * @param x the new column value * @throws SQLException if a database access error occurs * */ public void updateBoolean(String columnName, boolean x) throws SQLException { updateBoolean(findColumn(columnName), x); } /** * Updates the designated column with a <code>byte</code> value. * The <code>updateXXX</code> methods are used to update column values in the * current row or the insert row. The <code>updateXXX</code> methods do not * update the underlying database; instead the <code>updateRow</code> or * <code>insertRow</code> methods are called to update the database. * * @param columnName the name of the column * @param x the new column value * @throws SQLException if a database access error occurs * */ public void updateByte(String columnName, byte x) throws SQLException { updateByte(findColumn(columnName), x); } /** * Updates the designated column with a <code>short</code> value. * The <code>updateXXX</code> methods are used to update column values in the * current row or the insert row. The <code>updateXXX</code> methods do not * update the underlying database; instead the <code>updateRow</code> or * <code>insertRow</code> methods are called to update the database. * * @param columnName the name of the column * @param x the new column value * @throws SQLException if a database access error occurs * */ public void updateShort(String columnName, short x) throws SQLException { updateShort(findColumn(columnName), x); } /** * Updates the designated column with an <code>int</code> value. * The <code>updateXXX</code> methods are used to update column values in the * current row or the insert row. The <code>updateXXX</code> methods do not * update the underlying database; instead the <code>updateRow</code> or * <code>insertRow</code> methods are called to update the database. * * @param columnName the name of the column * @param x the new column value * @throws SQLException if a database access error occurs * */ public void updateInt(String columnName, int x) throws SQLException { updateInt(findColumn(columnName), x); } /** * Updates the designated column with a <code>long</code> value. * The <code>updateXXX</code> methods are used to update column values in the * current row or the insert row. The <code>updateXXX</code> methods do not * update the underlying database; instead the <code>updateRow</code> or * <code>insertRow</code> methods are called to update the database. * * @param columnName the name of the column * @param x the new column value * @throws SQLException if a database access error occurs * */ public void updateLong(String columnName, long x) throws SQLException { updateLong(findColumn(columnName), x); } /** * Updates the designated column with a <code>float </code> value. * The <code>updateXXX</code> methods are used to update column values in the * current row or the insert row. The <code>updateXXX</code> methods do not * update the underlying database; instead the <code>updateRow</code> or * <code>insertRow</code> methods are called to update the database. * * @param columnName the name of the column * @param x the new column value * @throws SQLException if a database access error occurs * */ public void updateFloat(String columnName, float x) throws SQLException { updateFloat(findColumn(columnName), x); } /** * Updates the designated column with a <code>double</code> value. * The <code>updateXXX</code> methods are used to update column values in the * current row or the insert row. The <code>updateXXX</code> methods do not * update the underlying database; instead the <code>updateRow</code> or * <code>insertRow</code> methods are called to update the database. * * @param columnName the name of the column * @param x the new column value * @throws SQLException if a database access error occurs * */ public void updateDouble(String columnName, double x) throws SQLException { updateDouble(findColumn(columnName), x); } /** * Updates the designated column with a <code>java.sql.BigDecimal</code> * value. * The <code>updateXXX</code> methods are used to update column values in the * current row or the insert row. The <code>updateXXX</code> methods do not * update the underlying database; instead the <code>updateRow</code> or * <code>insertRow</code> methods are called to update the database. * * @param columnName the name of the column * @param x the new column value * @throws SQLException if a database access error occurs * */ public void updateBigDecimal(String columnName, BigDecimal x) throws SQLException { updateBigDecimal(findColumn(columnName), x); } /** * Updates the designated column with a <code>String</code> value. * The <code>updateXXX</code> methods are used to update column values in the * current row or the insert row. The <code>updateXXX</code> methods do not * update the underlying database; instead the <code>updateRow</code> or * <code>insertRow</code> methods are called to update the database. * * @param columnName the name of the column * @param x the new column value * @throws SQLException if a database access error occurs * */ public void updateString(String columnName, String x) throws SQLException { updateString(findColumn(columnName), x); } /** * Updates the designated column with a <code>boolean</code> value. * The <code>updateXXX</code> methods are used to update column values in the * current row or the insert row. The <code>updateXXX</code> methods do not * update the underlying database; instead the <code>updateRow</code> or * <code>insertRow</code> methods are called to update the database. * * JDBC 2.0 * * Updates a column with a byte array value. * * The <code>updateXXX</code> methods are used to update column values in the * current row, or the insert row. The <code>updateXXX</code> methods do not * update the underlying database; instead the <code>updateRow</code> or <code>insertRow</code> * methods are called to update the database. * * @param columnName the name of the column * @param x the new column value * @throws SQLException if a database access error occurs * */ public void updateBytes(String columnName, byte x[]) throws SQLException { updateBytes(findColumn(columnName), x); } /** * Updates the designated column with a <code>java.sql.Date</code> value. * The <code>updateXXX</code> methods are used to update column values in the * current row or the insert row. The <code>updateXXX</code> methods do not * update the underlying database; instead the <code>updateRow</code> or * <code>insertRow</code> methods are called to update the database. * * @param columnName the name of the column * @param x the new column value * @throws SQLException if a database access error occurs * */ public void updateDate(String columnName, java.sql.Date x) throws SQLException { updateDate(findColumn(columnName), x); } /** * Updates the designated column with a <code>java.sql.Time</code> value. * The <code>updateXXX</code> methods are used to update column values in the * current row or the insert row. The <code>updateXXX</code> methods do not * update the underlying database; instead the <code>updateRow</code> or * <code>insertRow</code> methods are called to update the database. * * @param columnName the name of the column * @param x the new column value * @throws SQLException if a database access error occurs * */ public void updateTime(String columnName, java.sql.Time x) throws SQLException { updateTime(findColumn(columnName), x); } /** * Updates the designated column with a <code>java.sql.Timestamp</code> * value. * The <code>updateXXX</code> methods are used to update column values in the * current row or the insert row. The <code>updateXXX</code> methods do not * update the underlying database; instead the <code>updateRow</code> or * <code>insertRow</code> methods are called to update the database. * * @param columnName the name of the column * @param x the new column value * @throws SQLException if a database access error occurs * */ public void updateTimestamp(String columnName, java.sql.Timestamp x) throws SQLException { updateTimestamp(findColumn(columnName), x); } /** * Updates the designated column with an ascii stream value. * The <code>updateXXX</code> methods are used to update column values in the * current row or the insert row. The <code>updateXXX</code> methods do not * update the underlying database; instead the <code>updateRow</code> or * <code>insertRow</code> methods are called to update the database. * * @param columnName the name of the column * @param x the new column value * @param length the length of the stream * @throws SQLException if a database access error occurs * */ public void updateAsciiStream(String columnName, java.io.InputStream x, int length) throws SQLException { updateAsciiStream(findColumn(columnName), x, length); } /** * Updates the designated column with a binary stream value. * The <code>updateXXX</code> methods are used to update column values in the * current row or the insert row. The <code>updateXXX</code> methods do not * update the underlying database; instead the <code>updateRow</code> or * <code>insertRow</code> methods are called to update the database. * * @param columnName the name of the column * @param x the new column value * @param length the length of the stream * @throws SQLException if a database access error occurs * */ public void updateBinaryStream(String columnName, java.io.InputStream x, int length) throws SQLException { updateBinaryStream(findColumn(columnName), x, length); } /** * Updates the designated column with a character stream value. * The <code>updateXXX</code> methods are used to update column values * in the current row or the insert row. The <code>updateXXX</code> * methods do not update the underlying database; instead the * <code>updateRow</code> or <code>insertRow</code> methods are called * to update the database. * * @param columnName the name of the column * @param reader the new column <code>Reader</code> stream value * @param length the length of the stream * @throws SQLException if a database access error occurs * */ public void updateCharacterStream(String columnName, java.io.Reader reader, int length) throws SQLException { updateCharacterStream(findColumn(columnName), reader, length); } /** * Updates the designated column with an <code>Object</code> value. * The <code>updateXXX</code> methods are used to update column values in the * current row or the insert row. The <code>updateXXX</code> methods do not * update the underlying database; instead the <code>updateRow</code> or * <code>insertRow</code> methods are called to update the database. * * @param columnName the name of the column * @param x the new column value * @param scale for <code>java.sql.Types.DECIMAL</code> * or <code>java.sql.Types.NUMERIC</code> types, * this is the number of digits after the decimal point. For all other * types this value will be ignored. * @throws SQLException if a database access error occurs * */ public void updateObject(String columnName, Object x, int scale) throws SQLException { updateObject(findColumn(columnName), x, scale); } /** * Updates the designated column with an <code>Object</code> value. * The <code>updateXXX</code> methods are used to update column values in the * current row or the insert row. The <code>updateXXX</code> methods do not * update the underlying database; instead the <code>updateRow</code> or * <code>insertRow</code> methods are called to update the database. * * @param columnName the name of the column * @param x the new column value * @throws SQLException if a database access error occurs * */ public void updateObject(String columnName, Object x) throws SQLException { updateObject(findColumn(columnName), x); } /** * Inserts the contents of the insert row into this * <code>ResultSet</code> object and into the database * and also notifies listeners that a row has changed. * The cursor must be on the insert row when this method is called. * * @throws SQLException if (1) a database access error occurs, * (2) this method is called when the cursor is notLines 2501–3000 of 7047. Previous lines Load more
* @param x the new column value * @throws SQLException if a database access error occurs * or this rowset does not currently have a valid connection, * prepared statement, and result set * */ public void updateTime(int columnIndex, java.sql.Time x) throws SQLException { checkState(); // To check the type and concurrency of the ResultSet // to verify whether updates are possible or not checkTypeConcurrency(); rs.updateTime(columnIndex, x); } /** * Updates the designated column with a <code>java.sql.Timestamp</code> * value. * The <code>updateXXX</code> methods are used to update column values in the * current row or the insert row. The <code>updateXXX</code> methods do not * update the underlying database; instead the <code>updateRow</code> or * <code>insertRow</code> methods are called to update the database. * * @param columnIndex the first column is 1, the second is 2, and so on * @param x the new column value * @throws SQLException if a database access error occurs * or this rowset does not currently have a valid connection, * prepared statement, and result set * */ public void updateTimestamp(int columnIndex, java.sql.Timestamp x) throws SQLException { checkState(); // To check the type and concurrency of the ResultSet // to verify whether updates are possible or not checkTypeConcurrency(); rs.updateTimestamp(columnIndex, x); } /** * Updates the designated column with an ascii stream value. * The <code>updateXXX</code> methods are used to update column values in the * current row or the insert row. The <code>updateXXX</code> methods do not * update the underlying database; instead the <code>updateRow</code> or * <code>insertRow</code> methods are called to update the database. * * @param columnIndex the first column is 1, the second is 2, and so on * @param x the new column value * @param length the length of the stream * @throws SQLException if (1) a database access error occurs * (2) or this rowset does not currently have a valid connection, * prepared statement, and result set * */ public void updateAsciiStream(int columnIndex, java.io.InputStream x, int length) throws SQLException { checkState(); // To check the type and concurrency of the ResultSet // to verify whether updates are possible or not checkTypeConcurrency(); rs.updateAsciiStream(columnIndex, x, length); } /** * Updates the designated column with a binary stream value. * The <code>updateXXX</code> methods are used to update column values in the * current row or the insert row. The <code>updateXXX</code> methods do not * update the underlying database; instead the <code>updateRow</code> or * <code>insertRow</code> methods are called to update the database. * * @param columnIndex the first column is 1, the second is 2, and so on * @param x the new column value * @param length the length of the stream * @throws SQLException if a database access error occurs * or this rowset does not currently have a valid connection, * prepared statement, and result set * */ public void updateBinaryStream(int columnIndex, java.io.InputStream x, int length) throws SQLException { checkState(); // To check the type and concurrency of the ResultSet // to verify whether updates are possible or not checkTypeConcurrency(); rs.updateBinaryStream(columnIndex, x, length); } /** * Updates the designated column with a character stream value. * The <code>updateXXX</code> methods are used to update column values in the * current row or the insert row. The <code>updateXXX</code> methods do not * update the underlying database; instead the <code>updateRow</code> or * <code>insertRow</code> methods are called to update the database. * * @param columnIndex the first column is 1, the second is 2, and so on * @param x the new column value * @param length the length of the stream * @throws SQLException if a database access error occurs * or this rowset does not currently have a valid connection, * prepared statement, and result set * */ public void updateCharacterStream(int columnIndex, java.io.Reader x, int length) throws SQLException { checkState(); // To check the type and concurrency of the ResultSet // to verify whether updates are possible or not checkTypeConcurrency(); rs.updateCharacterStream(columnIndex, x, length); } /** * Updates the designated column with an <code>Object</code> value. * The <code>updateXXX</code> methods are used to update column values in the * current row or the insert row. The <code>updateXXX</code> methods do not * update the underlying database; instead the <code>updateRow</code> or * <code>insertRow</code> methods are called to update the database. * * @param columnIndex the first column is 1, the second is 2, and so on * @param x the new column value * @param scale for <code>java.sql.Types.DECIMAl</code> * or <code>java.sql.Types.NUMERIC</code> types, * this is the number of digits after the decimal point. For all other * types this value will be ignored. * @throws SQLException if a database access error occurs * or this rowset does not currently have a valid connection, * prepared statement, and result set * */ public void updateObject(int columnIndex, Object x, int scale) throws SQLException { checkState(); // To check the type and concurrency of the ResultSet // to verify whether updates are possible or not checkTypeConcurrency(); rs.updateObject(columnIndex, x, scale); } /** * Updates the designated column with an <code>Object</code> value. * The <code>updateXXX</code> methods are used to update column values in the * current row or the insert row. The <code>updateXXX</code> methods do not * update the underlying database; instead the <code>updateRow</code> or * <code>insertRow</code> methods are called to update the database. * * @param columnIndex the first column is 1, the second is 2, and so on * @param x the new column value * @throws SQLException if a database access error occurs * or this rowset does not currently have a valid connection, * prepared statement, and result set * */ public void updateObject(int columnIndex, Object x) throws SQLException { checkState(); // To check the type and concurrency of the ResultSet // to verify whether updates are possible or not checkTypeConcurrency(); rs.updateObject(columnIndex, x); } /** * Updates the designated column with a <code>null</code> value. * The <code>updateXXX</code> methods are used to update column values in the * current row or the insert row. The <code>updateXXX</code> methods do not * update the underlying database; instead the <code>updateRow</code> or * <code>insertRow</code> methods are called to update the database. * * @param columnName the name of the column * @throws SQLException if a database access error occurs * or this rowset does not currently have a valid connection, * prepared statement, and result set * */ public void updateNull(String columnName) throws SQLException { updateNull(findColumn(columnName)); } /** * Updates the designated column with a <code>boolean</code> value. * The <code>updateXXX</code> methods are used to update column values in the * current row or the insert row. The <code>updateXXX</code> methods do not * update the underlying database; instead the <code>updateRow</code> or * <code>insertRow</code> methods are called to update the database. * * @param columnName the name of the column * @param x the new column value * @throws SQLException if a database access error occurs * */ public void updateBoolean(String columnName, boolean x) throws SQLException { updateBoolean(findColumn(columnName), x); } /** * Updates the designated column with a <code>byte</code> value. * The <code>updateXXX</code> methods are used to update column values in the * current row or the insert row. The <code>updateXXX</code> methods do not * update the underlying database; instead the <code>updateRow</code> or * <code>insertRow</code> methods are called to update the database. * * @param columnName the name of the column * @param x the new column value * @throws SQLException if a database access error occurs * */ public void updateByte(String columnName, byte x) throws SQLException { updateByte(findColumn(columnName), x); } /** * Updates the designated column with a <code>short</code> value. * The <code>updateXXX</code> methods are used to update column values in the * current row or the insert row. The <code>updateXXX</code> methods do not * update the underlying database; instead the <code>updateRow</code> or * <code>insertRow</code> methods are called to update the database. * * @param columnName the name of the column * @param x the new column value * @throws SQLException if a database access error occurs * */ public void updateShort(String columnName, short x) throws SQLException { updateShort(findColumn(columnName), x); } /** * Updates the designated column with an <code>int</code> value. * The <code>updateXXX</code> methods are used to update column values in the * current row or the insert row. The <code>updateXXX</code> methods do not * update the underlying database; instead the <code>updateRow</code> or * <code>insertRow</code> methods are called to update the database. * * @param columnName the name of the column * @param x the new column value * @throws SQLException if a database access error occurs * */ public void updateInt(String columnName, int x) throws SQLException { updateInt(findColumn(columnName), x); } /** * Updates the designated column with a <code>long</code> value. * The <code>updateXXX</code> methods are used to update column values in the * current row or the insert row. The <code>updateXXX</code> methods do not * update the underlying database; instead the <code>updateRow</code> or * <code>insertRow</code> methods are called to update the database. * * @param columnName the name of the column * @param x the new column value * @throws SQLException if a database access error occurs * */ public void updateLong(String columnName, long x) throws SQLException { updateLong(findColumn(columnName), x); } /** * Updates the designated column with a <code>float </code> value. * The <code>updateXXX</code> methods are used to update column values in the * current row or the insert row. The <code>updateXXX</code> methods do not * update the underlying database; instead the <code>updateRow</code> or * <code>insertRow</code> methods are called to update the database. * * @param columnName the name of the column * @param x the new column value * @throws SQLException if a database access error occurs * */ public void updateFloat(String columnName, float x) throws SQLException { updateFloat(findColumn(columnName), x); } /** * Updates the designated column with a <code>double</code> value. * The <code>updateXXX</code> methods are used to update column values in the * current row or the insert row. The <code>updateXXX</code> methods do not * update the underlying database; instead the <code>updateRow</code> or * <code>insertRow</code> methods are called to update the database. * * @param columnName the name of the column * @param x the new column value * @throws SQLException if a database access error occurs * */ public void updateDouble(String columnName, double x) throws SQLException { updateDouble(findColumn(columnName), x); } /** * Updates the designated column with a <code>java.sql.BigDecimal</code> * value. * The <code>updateXXX</code> methods are used to update column values in the * current row or the insert row. The <code>updateXXX</code> methods do not * update the underlying database; instead the <code>updateRow</code> or * <code>insertRow</code> methods are called to update the database. * * @param columnName the name of the column * @param x the new column value * @throws SQLException if a database access error occurs * */ public void updateBigDecimal(String columnName, BigDecimal x) throws SQLException { updateBigDecimal(findColumn(columnName), x); } /** * Updates the designated column with a <code>String</code> value. * The <code>updateXXX</code> methods are used to update column values in the * current row or the insert row. The <code>updateXXX</code> methods do not * update the underlying database; instead the <code>updateRow</code> or * <code>insertRow</code> methods are called to update the database. * * @param columnName the name of the column * @param x the new column value * @throws SQLException if a database access error occurs * */ public void updateString(String columnName, String x) throws SQLException { updateString(findColumn(columnName), x); } /** * Updates the designated column with a <code>boolean</code> value. * The <code>updateXXX</code> methods are used to update column values in the * current row or the insert row. The <code>updateXXX</code> methods do not * update the underlying database; instead the <code>updateRow</code> or * <code>insertRow</code> methods are called to update the database. * * JDBC 2.0 * * Updates a column with a byte array value. * * The <code>updateXXX</code> methods are used to update column values in the * current row, or the insert row. The <code>updateXXX</code> methods do not * update the underlying database; instead the <code>updateRow</code> or <code>insertRow</code> * methods are called to update the database. * * @param columnName the name of the column * @param x the new column value * @throws SQLException if a database access error occurs * */ public void updateBytes(String columnName, byte x[]) throws SQLException { updateBytes(findColumn(columnName), x); } /** * Updates the designated column with a <code>java.sql.Date</code> value. * The <code>updateXXX</code> methods are used to update column values in the * current row or the insert row. The <code>updateXXX</code> methods do not * update the underlying database; instead the <code>updateRow</code> or * <code>insertRow</code> methods are called to update the database. * * @param columnName the name of the column * @param x the new column value * @throws SQLException if a database access error occurs * */ public void updateDate(String columnName, java.sql.Date x) throws SQLException { updateDate(findColumn(columnName), x); } /** * Updates the designated column with a <code>java.sql.Time</code> value. * The <code>updateXXX</code> methods are used to update column values in the * current row or the insert row. The <code>updateXXX</code> methods do not * update the underlying database; instead the <code>updateRow</code> or * <code>insertRow</code> methods are called to update the database. * * @param columnName the name of the column * @param x the new column value * @throws SQLException if a database access error occurs * */ public void updateTime(String columnName, java.sql.Time x) throws SQLException { updateTime(findColumn(columnName), x); } /** * Updates the designated column with a <code>java.sql.Timestamp</code> * value. * The <code>updateXXX</code> methods are used to update column values in the * current row or the insert row. The <code>updateXXX</code> methods do not * update the underlying database; instead the <code>updateRow</code> or * <code>insertRow</code> methods are called to update the database. * * @param columnName the name of the column * @param x the new column value * @throws SQLException if a database access error occurs * */ public void updateTimestamp(String columnName, java.sql.Timestamp x) throws SQLException { updateTimestamp(findColumn(columnName), x); } /** * Updates the designated column with an ascii stream value. * The <code>updateXXX</code> methods are used to update column values in the * current row or the insert row. The <code>updateXXX</code> methods do not * update the underlying database; instead the <code>updateRow</code> or * <code>insertRow</code> methods are called to update the database. * * @param columnName the name of the column * @param x the new column value * @param length the length of the stream * @throws SQLException if a database access error occurs * */ public void updateAsciiStream(String columnName, java.io.InputStream x, int length) throws SQLException { updateAsciiStream(findColumn(columnName), x, length); } /** * Updates the designated column with a binary stream value. * The <code>updateXXX</code> methods are used to update column values in the * current row or the insert row. The <code>updateXXX</code> methods do not * update the underlying database; instead the <code>updateRow</code> or * <code>insertRow</code> methods are called to update the database. * * @param columnName the name of the column * @param x the new column value * @param length the length of the stream * @throws SQLException if a database access error occurs * */ public void updateBinaryStream(String columnName, java.io.InputStream x, int length) throws SQLException { updateBinaryStream(findColumn(columnName), x, length); } /** * Updates the designated column with a character stream value. * The <code>updateXXX</code> methods are used to update column values * in the current row or the insert row. The <code>updateXXX</code> * methods do not update the underlying database; instead the * <code>updateRow</code> or <code>insertRow</code> methods are called * to update the database. * * @param columnName the name of the column * @param reader the new column <code>Reader</code> stream value * @param length the length of the stream * @throws SQLException if a database access error occurs * */ public void updateCharacterStream(String columnName, java.io.Reader reader, int length) throws SQLException { updateCharacterStream(findColumn(columnName), reader, length); } /** * Updates the designated column with an <code>Object</code> value. * The <code>updateXXX</code> methods are used to update column values in the * current row or the insert row. The <code>updateXXX</code> methods do not * update the underlying database; instead the <code>updateRow</code> or * <code>insertRow</code> methods are called to update the database. * * @param columnName the name of the column * @param x the new column value * @param scale for <code>java.sql.Types.DECIMAL</code> * or <code>java.sql.Types.NUMERIC</code> types, * this is the number of digits after the decimal point. For all other * types this value will be ignored. * @throws SQLException if a database access error occurs * */ public void updateObject(String columnName, Object x, int scale) throws SQLException { updateObject(findColumn(columnName), x, scale); } /** * Updates the designated column with an <code>Object</code> value. * The <code>updateXXX</code> methods are used to update column values in the * current row or the insert row. The <code>updateXXX</code> methods do not * update the underlying database; instead the <code>updateRow</code> or * <code>insertRow</code> methods are called to update the database. * * @param columnName the name of the column * @param x the new column value * @throws SQLException if a database access error occurs * */ public void updateObject(String columnName, Object x) throws SQLException { updateObject(findColumn(columnName), x); } /** * Inserts the contents of the insert row into this * <code>ResultSet</code> object and into the database * and also notifies listeners that a row has changed. * The cursor must be on the insert row when this method is called. * * @throws SQLException if (1) a database access error occurs, * (2) this method is called when the cursor is not