ResultSet.java revision 4000
0N/A/*
4000N/A * Copyright (c) 1996, 2011, Oracle and/or its affiliates. All rights reserved.
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A *
0N/A * This code is free software; you can redistribute it and/or modify it
0N/A * under the terms of the GNU General Public License version 2 only, as
2362N/A * published by the Free Software Foundation. Oracle designates this
0N/A * particular file as subject to the "Classpath" exception as provided
2362N/A * by Oracle in the LICENSE file that accompanied this code.
0N/A *
0N/A * This code is distributed in the hope that it will be useful, but WITHOUT
0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A * version 2 for more details (a copy is included in the LICENSE file that
0N/A * accompanied this code).
0N/A *
0N/A * You should have received a copy of the GNU General Public License version
0N/A * 2 along with this work; if not, write to the Free Software Foundation,
0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A *
2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2362N/A * or visit www.oracle.com if you need additional information or have any
2362N/A * questions.
0N/A */
0N/A
0N/Apackage java.sql;
0N/A
0N/Aimport java.math.BigDecimal;
0N/Aimport java.util.Calendar;
0N/Aimport java.io.Reader;
0N/Aimport java.io.InputStream;
0N/A
0N/A/**
0N/A * A table of data representing a database result set, which
0N/A * is usually generated by executing a statement that queries the database.
0N/A *
0N/A * <P>A <code>ResultSet</code> object maintains a cursor pointing
0N/A * to its current row of data. Initially the cursor is positioned
0N/A * before the first row. The <code>next</code> method moves the
0N/A * cursor to the next row, and because it returns <code>false</code>
0N/A * when there are no more rows in the <code>ResultSet</code> object,
0N/A * it can be used in a <code>while</code> loop to iterate through
0N/A * the result set.
0N/A * <P>
0N/A * A default <code>ResultSet</code> object is not updatable and
0N/A * has a cursor that moves forward only. Thus, you can
0N/A * iterate through it only once and only from the first row to the
0N/A * last row. It is possible to
0N/A * produce <code>ResultSet</code> objects that are scrollable and/or
0N/A * updatable. The following code fragment, in which <code>con</code>
0N/A * is a valid <code>Connection</code> object, illustrates how to make
0N/A * a result set that is scrollable and insensitive to updates by others, and
0N/A * that is updatable. See <code>ResultSet</code> fields for other
0N/A * options.
0N/A * <PRE>
0N/A *
0N/A * Statement stmt = con.createStatement(
0N/A * ResultSet.TYPE_SCROLL_INSENSITIVE,
0N/A * ResultSet.CONCUR_UPDATABLE);
0N/A * ResultSet rs = stmt.executeQuery("SELECT a, b FROM TABLE2");
0N/A * // rs will be scrollable, will not show changes made by others,
0N/A * // and will be updatable
0N/A *
0N/A * </PRE>
0N/A * The <code>ResultSet</code> interface provides
0N/A * <i>getter</i> methods (<code>getBoolean</code>, <code>getLong</code>, and so on)
0N/A * for retrieving column values from the current row.
0N/A * Values can be retrieved using either the index number of the
0N/A * column or the name of the column. In general, using the
0N/A * column index will be more efficient. Columns are numbered from 1.
0N/A * For maximum portability, result set columns within each row should be
0N/A * read in left-to-right order, and each column should be read only once.
0N/A *
0N/A * <P>For the getter methods, a JDBC driver attempts
0N/A * to convert the underlying data to the Java type specified in the
0N/A * getter method and returns a suitable Java value. The JDBC specification
0N/A * has a table showing the allowable mappings from SQL types to Java types
0N/A * that can be used by the <code>ResultSet</code> getter methods.
0N/A * <P>
0N/A * <P>Column names used as input to getter methods are case
0N/A * insensitive. When a getter method is called with
0N/A * a column name and several columns have the same name,
0N/A * the value of the first matching column will be returned.
0N/A * The column name option is
0N/A * designed to be used when column names are used in the SQL
0N/A * query that generated the result set.
0N/A * For columns that are NOT explicitly named in the query, it
0N/A * is best to use column numbers. If column names are used, the
0N/A * programmer should take care to guarantee that they uniquely refer to
0N/A * the intended columns, which can be assured with the SQL <i>AS</i> clause.
0N/A * <P>
0N/A * A set of updater methods were added to this interface
0N/A * in the JDBC 2.0 API (Java<sup><font size=-2>TM</font></sup> 2 SDK,
0N/A * Standard Edition, version 1.2). The comments regarding parameters
0N/A * to the getter methods also apply to parameters to the
0N/A * updater methods.
0N/A *<P>
0N/A * The updater methods may be used in two ways:
0N/A * <ol>
0N/A * <LI>to update a column value in the current row. In a scrollable
0N/A * <code>ResultSet</code> object, the cursor can be moved backwards
0N/A * and forwards, to an absolute position, or to a position
0N/A * relative to the current row.
0N/A * The following code fragment updates the <code>NAME</code> column
0N/A * in the fifth row of the <code>ResultSet</code> object
0N/A * <code>rs</code> and then uses the method <code>updateRow</code>
0N/A * to update the data source table from which <code>rs</code> was derived.
0N/A * <PRE>
0N/A *
0N/A * rs.absolute(5); // moves the cursor to the fifth row of rs
0N/A * rs.updateString("NAME", "AINSWORTH"); // updates the
0N/A * // <code>NAME</code> column of row 5 to be <code>AINSWORTH</code>
0N/A * rs.updateRow(); // updates the row in the data source
0N/A *
0N/A * </PRE>
0N/A * <LI>to insert column values into the insert row. An updatable
0N/A * <code>ResultSet</code> object has a special row associated with
0N/A * it that serves as a staging area for building a row to be inserted.
0N/A * The following code fragment moves the cursor to the insert row, builds
0N/A * a three-column row, and inserts it into <code>rs</code> and into
0N/A * the data source table using the method <code>insertRow</code>.
0N/A * <PRE>
0N/A *
0N/A * rs.moveToInsertRow(); // moves cursor to the insert row
0N/A * rs.updateString(1, "AINSWORTH"); // updates the
0N/A * // first column of the insert row to be <code>AINSWORTH</code>
0N/A * rs.updateInt(2,35); // updates the second column to be <code>35</code>
0N/A * rs.updateBoolean(3, true); // updates the third column to <code>true</code>
0N/A * rs.insertRow();
0N/A * rs.moveToCurrentRow();
0N/A *
0N/A * </PRE>
0N/A * </ol>
0N/A * <P>A <code>ResultSet</code> object is automatically closed when the
0N/A * <code>Statement</code> object that
0N/A * generated it is closed, re-executed, or used
0N/A * to retrieve the next result from a sequence of multiple results.
0N/A *
0N/A * <P>The number, types and properties of a <code>ResultSet</code>
4000N/A * object's columns are provided by the <code>ResultSetMetaData</code>
0N/A * object returned by the <code>ResultSet.getMetaData</code> method.
0N/A *
0N/A * @see Statement#executeQuery
0N/A * @see Statement#getResultSet
0N/A * @see ResultSetMetaData
0N/A */
0N/A
2751N/Apublic interface ResultSet extends Wrapper, AutoCloseable {
0N/A
0N/A /**
0N/A * Moves the cursor froward one row from its current position.
0N/A * A <code>ResultSet</code> cursor is initially positioned
0N/A * before the first row; the first call to the method
0N/A * <code>next</code> makes the first row the current row; the
0N/A * second call makes the second row the current row, and so on.
0N/A * <p>
0N/A * When a call to the <code>next</code> method returns <code>false</code>,
0N/A * the cursor is positioned after the last row. Any
0N/A * invocation of a <code>ResultSet</code> method which requires a
0N/A * current row will result in a <code>SQLException</code> being thrown.
0N/A * If the result set type is <code>TYPE_FORWARD_ONLY</code>, it is vendor specified
0N/A * whether their JDBC driver implementation will return <code>false</code> or
0N/A * throw an <code>SQLException</code> on a
0N/A * subsequent call to <code>next</code>.
0N/A *
0N/A * <P>If an input stream is open for the current row, a call
0N/A * to the method <code>next</code> will
0N/A * implicitly close it. A <code>ResultSet</code> object's
0N/A * warning chain is cleared when a new row is read.
0N/A *
0N/A * @return <code>true</code> if the new current row is valid;
0N/A * <code>false</code> if there are no more rows
0N/A * @exception SQLException if a database access error occurs or this method is
0N/A * called on a closed result set
0N/A */
0N/A boolean next() throws SQLException;
0N/A
0N/A
0N/A /**
0N/A * Releases this <code>ResultSet</code> object's database and
0N/A * JDBC resources immediately instead of waiting for
0N/A * this to happen when it is automatically closed.
0N/A *
0N/A * <P>The closing of a <code>ResultSet</code> object does <strong>not</strong> close the <code>Blob</code>,
0N/A * <code>Clob</code> or <code>NClob</code> objects created by the <code>ResultSet</code>. <code>Blob</code>,
0N/A * <code>Clob</code> or <code>NClob</code> objects remain valid for at least the duration of the
0N/A * transaction in which they are creataed, unless their <code>free</code> method is invoked.
0N/A *<p>
0N/A * When a <code>ResultSet</code> is closed, any <code>ResultSetMetaData</code>
0N/A * instances that were created by calling the <code>getMetaData</code>
0N/A * method remain accessible.
0N/A *
0N/A * <P><B>Note:</B> A <code>ResultSet</code> object
0N/A * is automatically closed by the
0N/A * <code>Statement</code> object that generated it when
0N/A * that <code>Statement</code> object is closed,
0N/A * re-executed, or is used to retrieve the next result from a
0N/A * sequence of multiple results.
0N/A *<p>
0N/A * Calling the method <code>close</code> on a <code>ResultSet</code>
0N/A * object that is already closed is a no-op.
0N/A * <P>
0N/A * <p>
0N/A *
0N/A * @exception SQLException if a database access error occurs
0N/A */
0N/A void close() throws SQLException;
0N/A
0N/A /**
0N/A * Reports whether
0N/A * the last column read had a value of SQL <code>NULL</code>.
0N/A * Note that you must first call one of the getter methods
0N/A * on a column to try to read its value and then call
0N/A * the method <code>wasNull</code> to see if the value read was
0N/A * SQL <code>NULL</code>.
0N/A *
0N/A * @return <code>true</code> if the last column value read was SQL
0N/A * <code>NULL</code> and <code>false</code> otherwise
0N/A * @exception SQLException if a database access error occurs or this method is
0N/A * called on a closed result set
0N/A */
0N/A boolean wasNull() throws SQLException;
0N/A
0N/A // Methods for accessing results by column index
0N/A
0N/A /**
0N/A * Retrieves the value of the designated column in the current row
0N/A * of this <code>ResultSet</code> object as
0N/A * a <code>String</code> in the Java programming language.
0N/A *
0N/A * @param columnIndex the first column is 1, the second is 2, ...
0N/A * @return the column value; if the value is SQL <code>NULL</code>, the
0N/A * value returned is <code>null</code>
0N/A * @exception SQLException if the columnIndex is not valid;
0N/A * if a database access error occurs or this method is
0N/A * called on a closed result set
0N/A */
0N/A String getString(int columnIndex) throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves the value of the designated column in the current row
0N/A * of this <code>ResultSet</code> object as
0N/A * a <code>boolean</code> in the Java programming language.
0N/A *
0N/A * <P>If the designated column has a datatype of CHAR or VARCHAR
0N/A * and contains a "0" or has a datatype of BIT, TINYINT, SMALLINT, INTEGER or BIGINT
0N/A * and contains a 0, a value of <code>false</code> is returned. If the designated column has a datatype
0N/A * of CHAR or VARCHAR
0N/A * and contains a "1" or has a datatype of BIT, TINYINT, SMALLINT, INTEGER or BIGINT
0N/A * and contains a 1, a value of <code>true</code> is returned.
0N/A *
0N/A * @param columnIndex the first column is 1, the second is 2, ...
0N/A * @return the column value; if the value is SQL <code>NULL</code>, the
0N/A * value returned is <code>false</code>
0N/A * @exception SQLException if the columnIndex is not valid;
0N/A * if a database access error occurs or this method is
0N/A * called on a closed result set
0N/A */
0N/A boolean getBoolean(int columnIndex) throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves the value of the designated column in the current row
0N/A * of this <code>ResultSet</code> object as
0N/A * a <code>byte</code> in the Java programming language.
0N/A *
0N/A * @param columnIndex the first column is 1, the second is 2, ...
0N/A * @return the column value; if the value is SQL <code>NULL</code>, the
0N/A * value returned is <code>0</code>
0N/A * @exception SQLException if the columnIndex is not valid;
0N/A * if a database access error occurs or this method is
0N/A * called on a closed result set
0N/A */
0N/A byte getByte(int columnIndex) throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves the value of the designated column in the current row
0N/A * of this <code>ResultSet</code> object as
0N/A * a <code>short</code> in the Java programming language.
0N/A *
0N/A * @param columnIndex the first column is 1, the second is 2, ...
0N/A * @return the column value; if the value is SQL <code>NULL</code>, the
0N/A * value returned is <code>0</code>
0N/A * @exception SQLException if the columnIndex is not valid;
0N/A * if a database access error occurs or this method is
0N/A * called on a closed result set
0N/A */
0N/A short getShort(int columnIndex) throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves the value of the designated column in the current row
0N/A * of this <code>ResultSet</code> object as
0N/A * an <code>int</code> in the Java programming language.
0N/A *
0N/A * @param columnIndex the first column is 1, the second is 2, ...
0N/A * @return the column value; if the value is SQL <code>NULL</code>, the
0N/A * value returned is <code>0</code>
0N/A * @exception SQLException if the columnIndex is not valid;
0N/A * if a database access error occurs or this method is
0N/A * called on a closed result set
0N/A */
0N/A int getInt(int columnIndex) throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves the value of the designated column in the current row
0N/A * of this <code>ResultSet</code> object as
0N/A * a <code>long</code> in the Java programming language.
0N/A *
0N/A * @param columnIndex the first column is 1, the second is 2, ...
0N/A * @return the column value; if the value is SQL <code>NULL</code>, the
0N/A * value returned is <code>0</code>
0N/A * @exception SQLException if the columnIndex is not valid;
0N/A * if a database access error occurs or this method is
0N/A * called on a closed result set
0N/A */
0N/A long getLong(int columnIndex) throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves the value of the designated column in the current row
0N/A * of this <code>ResultSet</code> object as
0N/A * a <code>float</code> in the Java programming language.
0N/A *
0N/A * @param columnIndex the first column is 1, the second is 2, ...
0N/A * @return the column value; if the value is SQL <code>NULL</code>, the
0N/A * value returned is <code>0</code>
0N/A * @exception SQLException if the columnIndex is not valid;
0N/A * if a database access error occurs or this method is
0N/A * called on a closed result set
0N/A */
0N/A float getFloat(int columnIndex) throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves the value of the designated column in the current row
0N/A * of this <code>ResultSet</code> object as
0N/A * a <code>double</code> in the Java programming language.
0N/A *
0N/A * @param columnIndex the first column is 1, the second is 2, ...
0N/A * @return the column value; if the value is SQL <code>NULL</code>, the
0N/A * value returned is <code>0</code>
0N/A * @exception SQLException if the columnIndex is not valid;
0N/A * if a database access error occurs or this method is
0N/A * called on a closed result set
0N/A */
0N/A double getDouble(int columnIndex) throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves the value of the designated column in the current row
0N/A * of this <code>ResultSet</code> object as
0N/A * a <code>java.sql.BigDecimal</code> in the Java programming language.
0N/A *
0N/A * @param columnIndex the first column is 1, the second is 2, ...
0N/A * @param scale the number of digits to the right of the decimal point
0N/A * @return the column value; if the value is SQL <code>NULL</code>, the
0N/A * value returned is <code>null</code>
0N/A * @exception SQLException if the columnIndex is not valid;
0N/A * if a database access error occurs or this method is
0N/A * called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @deprecated
0N/A */
0N/A BigDecimal getBigDecimal(int columnIndex, int scale) throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves the value of the designated column in the current row
0N/A * of this <code>ResultSet</code> object as
0N/A * a <code>byte</code> array in the Java programming language.
0N/A * The bytes represent the raw values returned by the driver.
0N/A *
0N/A * @param columnIndex the first column is 1, the second is 2, ...
0N/A * @return the column value; if the value is SQL <code>NULL</code>, the
0N/A * value returned is <code>null</code>
0N/A * @exception SQLException if the columnIndex is not valid;
0N/A * if a database access error occurs or this method is
0N/A * called on a closed result set
0N/A */
0N/A byte[] getBytes(int columnIndex) throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves the value of the designated column in the current row
0N/A * of this <code>ResultSet</code> object as
0N/A * a <code>java.sql.Date</code> object in the Java programming language.
0N/A *
0N/A * @param columnIndex the first column is 1, the second is 2, ...
0N/A * @return the column value; if the value is SQL <code>NULL</code>, the
0N/A * value returned is <code>null</code>
0N/A * @exception SQLException if the columnIndex is not valid;
0N/A * if a database access error occurs or this method is
0N/A * called on a closed result set
0N/A */
0N/A java.sql.Date getDate(int columnIndex) throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves the value of the designated column in the current row
0N/A * of this <code>ResultSet</code> object as
0N/A * a <code>java.sql.Time</code> object in the Java programming language.
0N/A *
0N/A * @param columnIndex the first column is 1, the second is 2, ...
0N/A * @return the column value; if the value is SQL <code>NULL</code>, the
0N/A * value returned is <code>null</code>
0N/A * @exception SQLException if the columnIndex is not valid;
0N/A * if a database access error occurs or this method is
0N/A * called on a closed result set
0N/A */
0N/A java.sql.Time getTime(int columnIndex) throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves the value of the designated column in the current row
0N/A * of this <code>ResultSet</code> object as
0N/A * a <code>java.sql.Timestamp</code> object in the Java programming language.
0N/A *
0N/A * @param columnIndex the first column is 1, the second is 2, ...
0N/A * @return the column value; if the value is SQL <code>NULL</code>, the
0N/A * value returned is <code>null</code>
0N/A * @exception SQLException if the columnIndex is not valid;
0N/A * if a database access error occurs or this method is
0N/A * called on a closed result set
0N/A */
0N/A java.sql.Timestamp getTimestamp(int columnIndex) throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves the value of the designated column in the current row
0N/A * of this <code>ResultSet</code> object as
0N/A * a stream of ASCII characters. The value can then be read in chunks from the
0N/A * stream. This method is particularly
4000N/A * suitable for retrieving large <code>LONGVARCHAR</code> values.
0N/A * The JDBC driver will
0N/A * do any necessary conversion from the database format into ASCII.
0N/A *
0N/A * <P><B>Note:</B> All the data in the returned stream must be
0N/A * read prior to getting the value of any other column. The next
0N/A * call to a getter method implicitly closes the stream. Also, a
0N/A * stream may return <code>0</code> when the method
0N/A * <code>InputStream.available</code>
0N/A * is called whether there is data available or not.
0N/A *
0N/A * @param columnIndex the first column is 1, the second is 2, ...
0N/A * @return a Java input stream that delivers the database column value
0N/A * as a stream of one-byte ASCII characters;
0N/A * if the value is SQL <code>NULL</code>, the
0N/A * value returned is <code>null</code>
0N/A * @exception SQLException if the columnIndex is not valid;
0N/A * if a database access error occurs or this method is
0N/A * called on a closed result set
0N/A */
0N/A java.io.InputStream getAsciiStream(int columnIndex) throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves the value of the designated column in the current row
0N/A * of this <code>ResultSet</code> object as
0N/A * as a stream of two-byte 3 characters. The first byte is
0N/A * the high byte; the second byte is the low byte.
0N/A *
0N/A * The value can then be read in chunks from the
0N/A * stream. This method is particularly
0N/A * suitable for retrieving large <code>LONGVARCHAR</code>values. The
0N/A * JDBC driver will do any necessary conversion from the database
0N/A * format into Unicode.
0N/A *
0N/A * <P><B>Note:</B> All the data in the returned stream must be
0N/A * read prior to getting the value of any other column. The next
0N/A * call to a getter method implicitly closes the stream.
0N/A * Also, a stream may return <code>0</code> when the method
0N/A * <code>InputStream.available</code>
0N/A * is called, whether there is data available or not.
0N/A *
0N/A * @param columnIndex the first column is 1, the second is 2, ...
0N/A * @return a Java input stream that delivers the database column value
0N/A * as a stream of two-byte Unicode characters;
0N/A * if the value is SQL <code>NULL</code>, the value returned is
0N/A * <code>null</code>
0N/A *
0N/A * @exception SQLException if the columnIndex is not valid;
0N/A * if a database access error occurs or this method is
0N/A * called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @deprecated use <code>getCharacterStream</code> in place of
0N/A * <code>getUnicodeStream</code>
0N/A */
0N/A java.io.InputStream getUnicodeStream(int columnIndex) throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves the value of the designated column in the current row
0N/A * of this <code>ResultSet</code> object as a stream of
0N/A * uninterpreted bytes. The value can then be read in chunks from the
0N/A * stream. This method is particularly
0N/A * suitable for retrieving large <code>LONGVARBINARY</code> values.
0N/A *
0N/A * <P><B>Note:</B> All the data in the returned stream must be
0N/A * read prior to getting the value of any other column. The next
0N/A * call to a getter method implicitly closes the stream. Also, a
0N/A * stream may return <code>0</code> when the method
0N/A * <code>InputStream.available</code>
0N/A * is called whether there is data available or not.
0N/A *
0N/A * @param columnIndex the first column is 1, the second is 2, ...
0N/A * @return a Java input stream that delivers the database column value
0N/A * as a stream of uninterpreted bytes;
0N/A * if the value is SQL <code>NULL</code>, the value returned is
0N/A * <code>null</code>
0N/A * @exception SQLException if the columnIndex is not valid;
0N/A * if a database access error occurs or this method is
0N/A * called on a closed result set
0N/A */
0N/A java.io.InputStream getBinaryStream(int columnIndex)
0N/A throws SQLException;
0N/A
0N/A
0N/A // Methods for accessing results by column label
0N/A
0N/A /**
0N/A * Retrieves the value of the designated column in the current row
0N/A * of this <code>ResultSet</code> object as
0N/A * a <code>String</code> in the Java programming language.
0N/A *
0N/A * @param 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
0N/A * @return the column value; if the value is SQL <code>NULL</code>, the
0N/A * value returned is <code>null</code>
0N/A * @exception SQLException if the columnLabel is not valid;
0N/A * if a database access error occurs or this method is
0N/A * called on a closed result set
0N/A */
0N/A String getString(String columnLabel) throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves the value of the designated column in the current row
0N/A * of this <code>ResultSet</code> object as
0N/A * a <code>boolean</code> in the Java programming language.
0N/A *
0N/A * <P>If the designated column has a datatype of CHAR or VARCHAR
0N/A * and contains a "0" or has a datatype of BIT, TINYINT, SMALLINT, INTEGER or BIGINT
0N/A * and contains a 0, a value of <code>false</code> is returned. If the designated column has a datatype
0N/A * of CHAR or VARCHAR
0N/A * and contains a "1" or has a datatype of BIT, TINYINT, SMALLINT, INTEGER or BIGINT
0N/A * and contains a 1, a value of <code>true</code> is returned.
0N/A *
0N/A * @param 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
0N/A * @return the column value; if the value is SQL <code>NULL</code>, the
0N/A * value returned is <code>false</code>
0N/A * @exception SQLException if the columnLabel is not valid;
0N/A * if a database access error occurs or this method is
0N/A * called on a closed result set
0N/A */
0N/A boolean getBoolean(String columnLabel) throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves the value of the designated column in the current row
0N/A * of this <code>ResultSet</code> object as
0N/A * a <code>byte</code> in the Java programming language.
0N/A *
0N/A * @param 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
0N/A * @return the column value; if the value is SQL <code>NULL</code>, the
0N/A * value returned is <code>0</code>
0N/A * @exception SQLException if the columnLabel is not valid;
0N/A * if a database access error occurs or this method is
0N/A * called on a closed result set
0N/A */
0N/A byte getByte(String columnLabel) throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves the value of the designated column in the current row
0N/A * of this <code>ResultSet</code> object as
0N/A * a <code>short</code> in the Java programming language.
0N/A *
0N/A * @param 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
0N/A * @return the column value; if the value is SQL <code>NULL</code>, the
0N/A * value returned is <code>0</code>
0N/A * @exception SQLException if the columnLabel is not valid;
0N/A * if a database access error occurs or this method is
0N/A * called on a closed result set
0N/A */
0N/A short getShort(String columnLabel) throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves the value of the designated column in the current row
0N/A * of this <code>ResultSet</code> object as
0N/A * an <code>int</code> in the Java programming language.
0N/A *
0N/A * @param 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
0N/A * @return the column value; if the value is SQL <code>NULL</code>, the
0N/A * value returned is <code>0</code>
0N/A * @exception SQLException if the columnLabel is not valid;
0N/A * if a database access error occurs or this method is
0N/A * called on a closed result set
0N/A */
0N/A int getInt(String columnLabel) throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves the value of the designated column in the current row
0N/A * of this <code>ResultSet</code> object as
0N/A * a <code>long</code> in the Java programming language.
0N/A *
0N/A * @param 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
0N/A * @return the column value; if the value is SQL <code>NULL</code>, the
0N/A * value returned is <code>0</code>
0N/A * @exception SQLException if the columnLabel is not valid;
0N/A * if a database access error occurs or this method is
0N/A * called on a closed result set
0N/A */
0N/A long getLong(String columnLabel) throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves the value of the designated column in the current row
0N/A * of this <code>ResultSet</code> object as
0N/A * a <code>float</code> in the Java programming language.
0N/A *
0N/A * @param 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
0N/A * @return the column value; if the value is SQL <code>NULL</code>, the
0N/A * value returned is <code>0</code>
0N/A * @exception SQLException if the columnLabel is not valid;
0N/A * if a database access error occurs or this method is
0N/A * called on a closed result set
0N/A */
0N/A float getFloat(String columnLabel) throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves the value of the designated column in the current row
0N/A * of this <code>ResultSet</code> object as
0N/A * a <code>double</code> in the Java programming language.
0N/A *
0N/A * @param 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
0N/A * @return the column value; if the value is SQL <code>NULL</code>, the
0N/A * value returned is <code>0</code>
0N/A * @exception SQLException if the columnLabel is not valid;
0N/A * if a database access error occurs or this method is
0N/A * called on a closed result set
0N/A */
0N/A double getDouble(String columnLabel) throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves the value of the designated column in the current row
0N/A * of this <code>ResultSet</code> object as
0N/A * a <code>java.math.BigDecimal</code> in the Java programming language.
0N/A *
0N/A * @param 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
0N/A * @param scale the number of digits to the right of the decimal point
0N/A * @return the column value; if the value is SQL <code>NULL</code>, the
0N/A * value returned is <code>null</code>
0N/A * @exception SQLException if the columnLabel is not valid;
0N/A * if a database access error occurs or this method is
0N/A * called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @deprecated
0N/A */
0N/A BigDecimal getBigDecimal(String columnLabel, int scale) throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves the value of the designated column in the current row
0N/A * of this <code>ResultSet</code> object as
0N/A * a <code>byte</code> array in the Java programming language.
0N/A * The bytes represent the raw values returned by the driver.
0N/A *
0N/A * @param 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
0N/A * @return the column value; if the value is SQL <code>NULL</code>, the
0N/A * value returned is <code>null</code>
0N/A * @exception SQLException if the columnLabel is not valid;
0N/A * if a database access error occurs or this method is
0N/A * called on a closed result set
0N/A */
0N/A byte[] getBytes(String columnLabel) throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves the value of the designated column in the current row
0N/A * of this <code>ResultSet</code> object as
0N/A * a <code>java.sql.Date</code> object in the Java programming language.
0N/A *
0N/A * @param 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
0N/A * @return the column value; if the value is SQL <code>NULL</code>, the
0N/A * value returned is <code>null</code>
0N/A * @exception SQLException if the columnLabel is not valid;
0N/A * if a database access error occurs or this method is
0N/A * called on a closed result set
0N/A */
0N/A java.sql.Date getDate(String columnLabel) throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves the value of the designated column in the current row
0N/A * of this <code>ResultSet</code> object as
0N/A * a <code>java.sql.Time</code> object in the Java programming language.
0N/A *
0N/A * @param 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
0N/A * @return the column value;
0N/A * if the value is SQL <code>NULL</code>,
0N/A * the value returned is <code>null</code>
0N/A * @exception SQLException if the columnLabel is not valid;
0N/A * if a database access error occurs or this method is
0N/A * called on a closed result set
0N/A */
0N/A java.sql.Time getTime(String columnLabel) throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves the value of the designated column in the current row
0N/A * of this <code>ResultSet</code> object as
0N/A * a <code>java.sql.Timestamp</code> object in the Java programming language.
0N/A *
0N/A * @param 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
0N/A * @return the column value; if the value is SQL <code>NULL</code>, the
0N/A * value returned is <code>null</code>
0N/A * @exception SQLException if the columnLabel is not valid;
0N/A * if a database access error occurs or this method is
0N/A * called on a closed result set
0N/A */
0N/A java.sql.Timestamp getTimestamp(String columnLabel) throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves the value of the designated column in the current row
0N/A * of this <code>ResultSet</code> object as a stream of
0N/A * ASCII characters. The value can then be read in chunks from the
0N/A * stream. This method is particularly
0N/A * suitable for retrieving large <code>LONGVARCHAR</code> values.
0N/A * The JDBC driver will
0N/A * do any necessary conversion from the database format into ASCII.
0N/A *
0N/A * <P><B>Note:</B> All the data in the returned stream must be
0N/A * read prior to getting the value of any other column. The next
0N/A * call to a getter method implicitly closes the stream. Also, a
0N/A * stream may return <code>0</code> when the method <code>available</code>
0N/A * is called whether there is data available or not.
0N/A *
0N/A * @param 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
0N/A * @return a Java input stream that delivers the database column value
0N/A * as a stream of one-byte ASCII characters.
0N/A * If the value is SQL <code>NULL</code>,
0N/A * the value returned is <code>null</code>.
0N/A * @exception SQLException if the columnLabel is not valid;
0N/A * if a database access error occurs or this method is
0N/A * called on a closed result set
0N/A */
0N/A java.io.InputStream getAsciiStream(String columnLabel) throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves the value of the designated column in the current row
0N/A * of this <code>ResultSet</code> object as a stream of two-byte
0N/A * Unicode characters. The first byte is the high byte; the second
0N/A * byte is the low byte.
0N/A *
0N/A * The value can then be read in chunks from the
0N/A * stream. This method is particularly
0N/A * suitable for retrieving large <code>LONGVARCHAR</code> values.
0N/A * The JDBC technology-enabled driver will
0N/A * do any necessary conversion from the database format into Unicode.
0N/A *
0N/A * <P><B>Note:</B> All the data in the returned stream must be
0N/A * read prior to getting the value of any other column. The next
0N/A * call to a getter method implicitly closes the stream.
0N/A * Also, a stream may return <code>0</code> when the method
0N/A * <code>InputStream.available</code> is called, whether there
0N/A * is data available or not.
0N/A *
0N/A * @param 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
0N/A * @return a Java input stream that delivers the database column value
0N/A * as a stream of two-byte Unicode characters.
0N/A * If the value is SQL <code>NULL</code>, the value returned
0N/A * is <code>null</code>.
0N/A * @exception SQLException if the columnLabel is not valid;
0N/A * if a database access error occurs or this method is
0N/A * called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @deprecated use <code>getCharacterStream</code> instead
0N/A */
0N/A java.io.InputStream getUnicodeStream(String columnLabel) throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves the value of the designated column in the current row
0N/A * of this <code>ResultSet</code> object as a stream of uninterpreted
0N/A * <code>byte</code>s.
0N/A * The value can then be read in chunks from the
0N/A * stream. This method is particularly
0N/A * suitable for retrieving large <code>LONGVARBINARY</code>
0N/A * values.
0N/A *
0N/A * <P><B>Note:</B> All the data in the returned stream must be
0N/A * read prior to getting the value of any other column. The next
0N/A * call to a getter method implicitly closes the stream. Also, a
0N/A * stream may return <code>0</code> when the method <code>available</code>
0N/A * is called whether there is data available or not.
0N/A *
0N/A * @param 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
0N/A * @return a Java input stream that delivers the database column value
0N/A * as a stream of uninterpreted bytes;
0N/A * if the value is SQL <code>NULL</code>, the result is <code>null</code>
0N/A * @exception SQLException if the columnLabel is not valid;
0N/A * if a database access error occurs or this method is
0N/A * called on a closed result set
0N/A */
0N/A java.io.InputStream getBinaryStream(String columnLabel)
0N/A throws SQLException;
0N/A
0N/A
0N/A // Advanced features:
0N/A
0N/A /**
0N/A * Retrieves the first warning reported by calls on this
0N/A * <code>ResultSet</code> object.
0N/A * Subsequent warnings on this <code>ResultSet</code> object
0N/A * will be chained to the <code>SQLWarning</code> object that
0N/A * this method returns.
0N/A *
0N/A * <P>The warning chain is automatically cleared each time a new
0N/A * row is read. This method may not be called on a <code>ResultSet</code>
0N/A * object that has been closed; doing so will cause an
0N/A * <code>SQLException</code> to be thrown.
0N/A * <P>
0N/A * <B>Note:</B> This warning chain only covers warnings caused
0N/A * by <code>ResultSet</code> methods. Any warning caused by
0N/A * <code>Statement</code> methods
0N/A * (such as reading OUT parameters) will be chained on the
0N/A * <code>Statement</code> object.
0N/A *
0N/A * @return the first <code>SQLWarning</code> object reported or
0N/A * <code>null</code> if there are none
0N/A * @exception SQLException if a database access error occurs or this method is
0N/A * called on a closed result set
0N/A */
0N/A SQLWarning getWarnings() throws SQLException;
0N/A
0N/A /**
0N/A * Clears all warnings reported on this <code>ResultSet</code> object.
0N/A * After this method is called, the method <code>getWarnings</code>
0N/A * returns <code>null</code> until a new warning is
0N/A * reported for this <code>ResultSet</code> object.
0N/A *
0N/A * @exception SQLException if a database access error occurs or this method is
0N/A * called on a closed result set
0N/A */
0N/A void clearWarnings() throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves the name of the SQL cursor used by this <code>ResultSet</code>
0N/A * object.
0N/A *
0N/A * <P>In SQL, a result table is retrieved through a cursor that is
0N/A * named. The current row of a result set can be updated or deleted
0N/A * using a positioned update/delete statement that references the
0N/A * cursor name. To insure that the cursor has the proper isolation
0N/A * level to support update, the cursor's <code>SELECT</code> statement
0N/A * should be of the form <code>SELECT FOR UPDATE</code>. If
0N/A * <code>FOR UPDATE</code> is omitted, the positioned updates may fail.
0N/A *
0N/A * <P>The JDBC API supports this SQL feature by providing the name of the
0N/A * SQL cursor used by a <code>ResultSet</code> object.
0N/A * The current row of a <code>ResultSet</code> object
0N/A * is also the current row of this SQL cursor.
0N/A *
0N/A * @return the SQL name for this <code>ResultSet</code> object's cursor
0N/A * @exception SQLException if a database access error occurs or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A */
0N/A String getCursorName() throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves the number, types and properties of
0N/A * this <code>ResultSet</code> object's columns.
0N/A *
0N/A * @return the description of this <code>ResultSet</code> object's columns
0N/A * @exception SQLException if a database access error occurs or this method is
0N/A * called on a closed result set
0N/A */
0N/A ResultSetMetaData getMetaData() throws SQLException;
0N/A
0N/A /**
0N/A * <p>Gets the value of the designated column in the current row
0N/A * of this <code>ResultSet</code> object as
0N/A * an <code>Object</code> in the Java programming language.
0N/A *
0N/A * <p>This method will return the value of the given column as a
0N/A * Java object. The type of the Java object will be the default
0N/A * Java object type corresponding to the column's SQL type,
0N/A * following the mapping for built-in types specified in the JDBC
0N/A * specification. If the value is an SQL <code>NULL</code>,
0N/A * the driver returns a Java <code>null</code>.
0N/A *
0N/A * <p>This method may also be used to read database-specific
0N/A * abstract data types.
0N/A *
0N/A * In the JDBC 2.0 API, the behavior of method
0N/A * <code>getObject</code> is extended to materialize
0N/A * data of SQL user-defined types.
0N/A * <p>
0N/A * If <code>Connection.getTypeMap</code> does not throw a
0N/A * <code>SQLFeatureNotSupportedException</code>,
0N/A * then when a column contains a structured or distinct value,
0N/A * the behavior of this method is as
0N/A * if it were a call to: <code>getObject(columnIndex,
0N/A * this.getStatement().getConnection().getTypeMap())</code>.
0N/A *
0N/A * If <code>Connection.getTypeMap</code> does throw a
0N/A * <code>SQLFeatureNotSupportedException</code>,
0N/A * then structured values are not supported, and distinct values
0N/A * are mapped to the default Java class as determined by the
0N/A * underlying SQL type of the DISTINCT type.
0N/A *
0N/A * @param columnIndex the first column is 1, the second is 2, ...
0N/A * @return a <code>java.lang.Object</code> holding the column value
0N/A * @exception SQLException if the columnIndex is not valid;
0N/A * if a database access error occurs or this method is
0N/A * called on a closed result set
0N/A */
0N/A Object getObject(int columnIndex) throws SQLException;
0N/A
0N/A /**
0N/A * <p>Gets the value of the designated column in the current row
0N/A * of this <code>ResultSet</code> object as
0N/A * an <code>Object</code> in the Java programming language.
0N/A *
0N/A * <p>This method will return the value of the given column as a
0N/A * Java object. The type of the Java object will be the default
0N/A * Java object type corresponding to the column's SQL type,
0N/A * following the mapping for built-in types specified in the JDBC
0N/A * specification. If the value is an SQL <code>NULL</code>,
0N/A * the driver returns a Java <code>null</code>.
0N/A * <P>
0N/A * This method may also be used to read database-specific
0N/A * abstract data types.
0N/A * <P>
0N/A * In the JDBC 2.0 API, the behavior of the method
0N/A * <code>getObject</code> is extended to materialize
0N/A * data of SQL user-defined types. When a column contains
0N/A * a structured or distinct value, the behavior of this method is as
0N/A * if it were a call to: <code>getObject(columnIndex,
0N/A * this.getStatement().getConnection().getTypeMap())</code>.
0N/A *
0N/A * @param 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
0N/A * @return a <code>java.lang.Object</code> holding the column value
0N/A * @exception SQLException if the columnLabel is not valid;
0N/A * if a database access error occurs or this method is
0N/A * called on a closed result set
0N/A */
0N/A Object getObject(String columnLabel) throws SQLException;
0N/A
0N/A //----------------------------------------------------------------
0N/A
0N/A /**
0N/A * Maps the given <code>ResultSet</code> column label to its
0N/A * <code>ResultSet</code> column index.
0N/A *
0N/A * @param 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
0N/A * @return the column index of the given column name
0N/A * @exception SQLException if the <code>ResultSet</code> object
0N/A * does not contain a column labeled <code>columnLabel</code>, a database access error occurs
0N/A * or this method is called on a closed result set
0N/A */
0N/A int findColumn(String columnLabel) throws SQLException;
0N/A
0N/A
0N/A //--------------------------JDBC 2.0-----------------------------------
0N/A
0N/A //---------------------------------------------------------------------
0N/A // Getters and Setters
0N/A //---------------------------------------------------------------------
0N/A
0N/A /**
0N/A * Retrieves the value of the designated column in the current row
0N/A * of this <code>ResultSet</code> object as a
0N/A * <code>java.io.Reader</code> object.
0N/A * @return a <code>java.io.Reader</code> object that contains the column
0N/A * value; if the value is SQL <code>NULL</code>, the value returned is
0N/A * <code>null</code> in the Java programming language.
0N/A * @param columnIndex the first column is 1, the second is 2, ...
0N/A * @exception SQLException if the columnIndex is not valid;
0N/A * if a database access error occurs or this method is
0N/A * called on a closed result set
0N/A * @since 1.2
0N/A */
0N/A java.io.Reader getCharacterStream(int columnIndex) throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves the value of the designated column in the current row
0N/A * of this <code>ResultSet</code> object as a
0N/A * <code>java.io.Reader</code> object.
0N/A *
0N/A * @param 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
0N/A * @return a <code>java.io.Reader</code> object that contains the column
0N/A * value; if the value is SQL <code>NULL</code>, the value returned is
0N/A * <code>null</code> in the Java programming language
0N/A * @exception SQLException if the columnLabel is not valid;
0N/A * if a database access error occurs or this method is
0N/A * called on a closed result set
0N/A * @since 1.2
0N/A */
0N/A java.io.Reader getCharacterStream(String columnLabel) throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves the value of the designated column in the current row
0N/A * of this <code>ResultSet</code> object as a
0N/A * <code>java.math.BigDecimal</code> with full precision.
0N/A *
0N/A * @param columnIndex the first column is 1, the second is 2, ...
0N/A * @return the column value (full precision);
0N/A * if the value is SQL <code>NULL</code>, the value returned is
0N/A * <code>null</code> in the Java programming language.
0N/A * @exception SQLException if the columnIndex is not valid;
0N/A * if a database access error occurs or this method is
0N/A * called on a closed result set
0N/A * @since 1.2
0N/A */
0N/A BigDecimal getBigDecimal(int columnIndex) throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves the value of the designated column in the current row
0N/A * of this <code>ResultSet</code> object as a
0N/A * <code>java.math.BigDecimal</code> with full precision.
0N/A *
0N/A * @param 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
0N/A * @return the column value (full precision);
0N/A * if the value is SQL <code>NULL</code>, the value returned is
0N/A * <code>null</code> in the Java programming language.
0N/A * @exception SQLException if the columnLabel is not valid;
0N/A * if a database access error occurs or this method is
0N/A * called on a closed result set
0N/A * @since 1.2
0N/A *
0N/A */
0N/A BigDecimal getBigDecimal(String columnLabel) throws SQLException;
0N/A
0N/A //---------------------------------------------------------------------
0N/A // Traversal/Positioning
0N/A //---------------------------------------------------------------------
0N/A
0N/A /**
0N/A * Retrieves whether the cursor is before the first row in
0N/A * this <code>ResultSet</code> object.
0N/A * <p>
0N/A * <strong>Note:</strong>Support for the <code>isBeforeFirst</code> method
0N/A * is optional for <code>ResultSet</code>s with a result
0N/A * set type of <code>TYPE_FORWARD_ONLY</code>
0N/A *
0N/A * @return <code>true</code> if the cursor is before the first row;
0N/A * <code>false</code> if the cursor is at any other position or the
0N/A * result set contains no rows
0N/A * @exception SQLException if a database access error occurs or this method is
0N/A * called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.2
0N/A */
0N/A boolean isBeforeFirst() throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves whether the cursor is after the last row in
0N/A * this <code>ResultSet</code> object.
0N/A * <p>
0N/A * <strong>Note:</strong>Support for the <code>isAfterLast</code> method
0N/A * is optional for <code>ResultSet</code>s with a result
0N/A * set type of <code>TYPE_FORWARD_ONLY</code>
0N/A *
0N/A * @return <code>true</code> if the cursor is after the last row;
0N/A * <code>false</code> if the cursor is at any other position or the
0N/A * result set contains no rows
0N/A * @exception SQLException if a database access error occurs or this method is
0N/A * called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.2
0N/A */
0N/A boolean isAfterLast() throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves whether the cursor is on the first row of
0N/A * this <code>ResultSet</code> object.
0N/A * <p>
0N/A * <strong>Note:</strong>Support for the <code>isFirst</code> method
0N/A * is optional for <code>ResultSet</code>s with a result
0N/A * set type of <code>TYPE_FORWARD_ONLY</code>
0N/A *
0N/A * @return <code>true</code> if the cursor is on the first row;
0N/A * <code>false</code> otherwise
0N/A * @exception SQLException if a database access error occurs or this method is
0N/A * called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.2
0N/A */
0N/A boolean isFirst() throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves whether the cursor is on the last row of
0N/A * this <code>ResultSet</code> object.
0N/A * <strong>Note:</strong> Calling the method <code>isLast</code> may be expensive
0N/A * because the JDBC driver
0N/A * might need to fetch ahead one row in order to determine
0N/A * whether the current row is the last row in the result set.
0N/A * <p>
0N/A * <strong>Note:</strong> Support for the <code>isLast</code> method
0N/A * is optional for <code>ResultSet</code>s with a result
0N/A * set type of <code>TYPE_FORWARD_ONLY</code>
0N/A * @return <code>true</code> if the cursor is on the last row;
0N/A * <code>false</code> otherwise
0N/A * @exception SQLException if a database access error occurs or this method is
0N/A * called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.2
0N/A */
0N/A boolean isLast() throws SQLException;
0N/A
0N/A /**
0N/A * Moves the cursor to the front of
0N/A * this <code>ResultSet</code> object, just before the
0N/A * first row. This method has no effect if the result set contains no rows.
0N/A *
0N/A * @exception SQLException if a database access error
0N/A * occurs; this method is called on a closed result set or the
0N/A * result set type is <code>TYPE_FORWARD_ONLY</code>
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.2
0N/A */
0N/A void beforeFirst() throws SQLException;
0N/A
0N/A /**
0N/A * Moves the cursor to the end of
0N/A * this <code>ResultSet</code> object, just after the
0N/A * last row. This method has no effect if the result set contains no rows.
0N/A * @exception SQLException if a database access error
0N/A * occurs; this method is called on a closed result set
0N/A * or the result set type is <code>TYPE_FORWARD_ONLY</code>
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.2
0N/A */
0N/A void afterLast() throws SQLException;
0N/A
0N/A /**
0N/A * Moves the cursor to the first row in
0N/A * this <code>ResultSet</code> object.
0N/A *
0N/A * @return <code>true</code> if the cursor is on a valid row;
0N/A * <code>false</code> if there are no rows in the result set
0N/A * @exception SQLException if a database access error
0N/A * occurs; this method is called on a closed result set
0N/A * or the result set type is <code>TYPE_FORWARD_ONLY</code>
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.2
0N/A */
0N/A boolean first() throws SQLException;
0N/A
0N/A /**
0N/A * Moves the cursor to the last row in
0N/A * this <code>ResultSet</code> object.
0N/A *
0N/A * @return <code>true</code> if the cursor is on a valid row;
0N/A * <code>false</code> if there are no rows in the result set
0N/A * @exception SQLException if a database access error
0N/A * occurs; this method is called on a closed result set
0N/A * or the result set type is <code>TYPE_FORWARD_ONLY</code>
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.2
0N/A */
0N/A boolean last() throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves the current row number. The first row is number 1, the
0N/A * second number 2, and so on.
0N/A * <p>
0N/A * <strong>Note:</strong>Support for the <code>getRow</code> method
0N/A * is optional for <code>ResultSet</code>s with a result
0N/A * set type of <code>TYPE_FORWARD_ONLY</code>
0N/A *
0N/A * @return the current row number; <code>0</code> if there is no current row
0N/A * @exception SQLException if a database access error occurs
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.2
0N/A */
0N/A int getRow() throws SQLException;
0N/A
0N/A /**
0N/A * Moves the cursor to the given row number in
0N/A * this <code>ResultSet</code> object.
0N/A *
0N/A * <p>If the row number is positive, the cursor moves to
0N/A * the given row number with respect to the
0N/A * beginning of the result set. The first row is row 1, the second
0N/A * is row 2, and so on.
0N/A *
0N/A * <p>If the given row number is negative, the cursor moves to
0N/A * an absolute row position with respect to
0N/A * the end of the result set. For example, calling the method
0N/A * <code>absolute(-1)</code> positions the
0N/A * cursor on the last row; calling the method <code>absolute(-2)</code>
0N/A * moves the cursor to the next-to-last row, and so on.
0N/A *
2751N/A * <p>If the row number specified is zero, the cursor is moved to
2751N/A * before the first row.
2751N/A *
0N/A * <p>An attempt to position the cursor beyond the first/last row in
0N/A * the result set leaves the cursor before the first row or after
0N/A * the last row.
0N/A *
0N/A * <p><B>Note:</B> Calling <code>absolute(1)</code> is the same
0N/A * as calling <code>first()</code>. Calling <code>absolute(-1)</code>
0N/A * is the same as calling <code>last()</code>.
0N/A *
0N/A * @param row the number of the row to which the cursor should move.
2751N/A * A value of zero indicates that the cursor will be positioned
2751N/A * before the first row; a positive number indicates the row number
2751N/A * counting from the beginning of the result set; a negative number
2751N/A * indicates the row number counting from the end of the result set
0N/A * @return <code>true</code> if the cursor is moved to a position in this
0N/A * <code>ResultSet</code> object;
0N/A * <code>false</code> if the cursor is before the first row or after the
0N/A * last row
0N/A * @exception SQLException if a database access error
0N/A * occurs; this method is called on a closed result set
0N/A * or the result set type is <code>TYPE_FORWARD_ONLY</code>
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.2
0N/A */
0N/A boolean absolute( int row ) throws SQLException;
0N/A
0N/A /**
0N/A * Moves the cursor a relative number of rows, either positive or negative.
0N/A * Attempting to move beyond the first/last row in the
0N/A * result set positions the cursor before/after the
0N/A * the first/last row. Calling <code>relative(0)</code> is valid, but does
0N/A * not change the cursor position.
0N/A *
0N/A * <p>Note: Calling the method <code>relative(1)</code>
0N/A * is identical to calling the method <code>next()</code> and
0N/A * calling the method <code>relative(-1)</code> is identical
0N/A * to calling the method <code>previous()</code>.
0N/A *
0N/A * @param rows an <code>int</code> specifying the number of rows to
0N/A * move from the current row; a positive number moves the cursor
0N/A * forward; a negative number moves the cursor backward
0N/A * @return <code>true</code> if the cursor is on a row;
0N/A * <code>false</code> otherwise
0N/A * @exception SQLException if a database access error occurs; this method
0N/A * is called on a closed result set or the result set type is
0N/A * <code>TYPE_FORWARD_ONLY</code>
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.2
0N/A */
0N/A boolean relative( int rows ) throws SQLException;
0N/A
0N/A /**
0N/A * Moves the cursor to the previous row in this
0N/A * <code>ResultSet</code> object.
0N/A *<p>
0N/A * When a call to the <code>previous</code> method returns <code>false</code>,
0N/A * the cursor is positioned before the first row. Any invocation of a
0N/A * <code>ResultSet</code> method which requires a current row will result in a
0N/A * <code>SQLException</code> being thrown.
0N/A *<p>
0N/A * If an input stream is open for the current row, a call to the method
0N/A * <code>previous</code> will implicitly close it. A <code>ResultSet</code>
0N/A * object's warning change is cleared when a new row is read.
0N/A *<p>
0N/A *
0N/A * @return <code>true</code> if the cursor is now positioned on a valid row;
0N/A * <code>false</code> if the cursor is positioned before the first row
0N/A * @exception SQLException if a database access error
0N/A * occurs; this method is called on a closed result set
0N/A * or the result set type is <code>TYPE_FORWARD_ONLY</code>
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.2
0N/A */
0N/A boolean previous() throws SQLException;
0N/A
0N/A //---------------------------------------------------------------------
0N/A // Properties
0N/A //---------------------------------------------------------------------
0N/A
0N/A /**
0N/A * The constant indicating that the rows in a result set will be
0N/A * processed in a forward direction; first-to-last.
0N/A * This constant is used by the method <code>setFetchDirection</code>
0N/A * as a hint to the driver, which the driver may ignore.
0N/A * @since 1.2
0N/A */
0N/A int FETCH_FORWARD = 1000;
0N/A
0N/A /**
0N/A * The constant indicating that the rows in a result set will be
0N/A * processed in a reverse direction; last-to-first.
0N/A * This constant is used by the method <code>setFetchDirection</code>
0N/A * as a hint to the driver, which the driver may ignore.
0N/A * @since 1.2
0N/A */
0N/A int FETCH_REVERSE = 1001;
0N/A
0N/A /**
0N/A * The constant indicating that the order in which rows in a
0N/A * result set will be processed is unknown.
0N/A * This constant is used by the method <code>setFetchDirection</code>
0N/A * as a hint to the driver, which the driver may ignore.
0N/A */
0N/A int FETCH_UNKNOWN = 1002;
0N/A
0N/A /**
0N/A * Gives a hint as to the direction in which the rows in this
0N/A * <code>ResultSet</code> object will be processed.
0N/A * The initial value is determined by the
0N/A * <code>Statement</code> object
0N/A * that produced this <code>ResultSet</code> object.
0N/A * The fetch direction may be changed at any time.
0N/A *
0N/A * @param direction an <code>int</code> specifying the suggested
0N/A * fetch direction; one of <code>ResultSet.FETCH_FORWARD</code>,
0N/A * <code>ResultSet.FETCH_REVERSE</code>, or
0N/A * <code>ResultSet.FETCH_UNKNOWN</code>
0N/A * @exception SQLException if a database access error occurs; this
0N/A * method is called on a closed result set or
0N/A * the result set type is <code>TYPE_FORWARD_ONLY</code> and the fetch
0N/A * direction is not <code>FETCH_FORWARD</code>
0N/A * @since 1.2
0N/A * @see Statement#setFetchDirection
0N/A * @see #getFetchDirection
0N/A */
0N/A void setFetchDirection(int direction) throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves the fetch direction for this
0N/A * <code>ResultSet</code> object.
0N/A *
0N/A * @return the current fetch direction for this <code>ResultSet</code> object
0N/A * @exception SQLException if a database access error occurs
0N/A * or this method is called on a closed result set
0N/A * @since 1.2
0N/A * @see #setFetchDirection
0N/A */
0N/A int getFetchDirection() throws SQLException;
0N/A
0N/A /**
0N/A * Gives the JDBC driver a hint as to the number of rows that should
0N/A * be fetched from the database when more rows are needed for this
0N/A * <code>ResultSet</code> object.
0N/A * If the fetch size specified is zero, the JDBC driver
0N/A * ignores the value and is free to make its own best guess as to what
0N/A * the fetch size should be. The default value is set by the
0N/A * <code>Statement</code> object
0N/A * that created the result set. The fetch size may be changed at any time.
0N/A *
0N/A * @param rows the number of rows to fetch
0N/A * @exception SQLException if a database access error occurs; this method
0N/A * is called on a closed result set or the
0N/A * condition <code>rows >= 0 </code> is not satisfied
0N/A * @since 1.2
0N/A * @see #getFetchSize
0N/A */
0N/A void setFetchSize(int rows) throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves the fetch size for this
0N/A * <code>ResultSet</code> object.
0N/A *
0N/A * @return the current fetch size for this <code>ResultSet</code> object
0N/A * @exception SQLException if a database access error occurs
0N/A * or this method is called on a closed result set
0N/A * @since 1.2
0N/A * @see #setFetchSize
0N/A */
0N/A int getFetchSize() throws SQLException;
0N/A
0N/A /**
0N/A * The constant indicating the type for a <code>ResultSet</code> object
0N/A * whose cursor may move only forward.
0N/A * @since 1.2
0N/A */
0N/A int TYPE_FORWARD_ONLY = 1003;
0N/A
0N/A /**
0N/A * The constant indicating the type for a <code>ResultSet</code> object
0N/A * that is scrollable but generally not sensitive to changes to the data
0N/A * that underlies the <code>ResultSet</code>.
0N/A * @since 1.2
0N/A */
0N/A int TYPE_SCROLL_INSENSITIVE = 1004;
0N/A
0N/A /**
0N/A * The constant indicating the type for a <code>ResultSet</code> object
0N/A * that is scrollable and generally sensitive to changes to the data
0N/A * that underlies the <code>ResultSet</code>.
0N/A * @since 1.2
0N/A */
0N/A int TYPE_SCROLL_SENSITIVE = 1005;
0N/A
0N/A /**
0N/A * Retrieves the type of this <code>ResultSet</code> object.
0N/A * The type is determined by the <code>Statement</code> object
0N/A * that created the result set.
0N/A *
0N/A * @return <code>ResultSet.TYPE_FORWARD_ONLY</code>,
0N/A * <code>ResultSet.TYPE_SCROLL_INSENSITIVE</code>,
0N/A * or <code>ResultSet.TYPE_SCROLL_SENSITIVE</code>
0N/A * @exception SQLException if a database access error occurs
0N/A * or this method is called on a closed result set
0N/A * @since 1.2
0N/A */
0N/A int getType() throws SQLException;
0N/A
0N/A /**
0N/A * The constant indicating the concurrency mode for a
0N/A * <code>ResultSet</code> object that may NOT be updated.
0N/A * @since 1.2
0N/A */
0N/A int CONCUR_READ_ONLY = 1007;
0N/A
0N/A /**
0N/A * The constant indicating the concurrency mode for a
0N/A * <code>ResultSet</code> object that may be updated.
0N/A * @since 1.2
0N/A */
0N/A int CONCUR_UPDATABLE = 1008;
0N/A
0N/A /**
0N/A * Retrieves the concurrency mode of this <code>ResultSet</code> object.
0N/A * The concurrency used is determined by the
0N/A * <code>Statement</code> object that created the result set.
0N/A *
0N/A * @return the concurrency type, either
0N/A * <code>ResultSet.CONCUR_READ_ONLY</code>
0N/A * or <code>ResultSet.CONCUR_UPDATABLE</code>
0N/A * @exception SQLException if a database access error occurs
0N/A * or this method is called on a closed result set
0N/A * @since 1.2
0N/A */
0N/A int getConcurrency() throws SQLException;
0N/A
0N/A //---------------------------------------------------------------------
0N/A // Updates
0N/A //---------------------------------------------------------------------
0N/A
0N/A /**
0N/A * Retrieves whether the current row has been updated. The value returned
0N/A * depends on whether or not the result set can detect updates.
0N/A * <p>
0N/A * <strong>Note:</strong> Support for the <code>rowUpdated</code> method is optional with a result set
0N/A * concurrency of <code>CONCUR_READ_ONLY</code>
0N/A * @return <code>true</code> if the current row is detected to
0N/A * have been visibly updated by the owner or another; <code>false</code> otherwise
0N/A * @exception SQLException if a database access error occurs
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @see DatabaseMetaData#updatesAreDetected
0N/A * @since 1.2
0N/A */
0N/A boolean rowUpdated() throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves whether the current row has had an insertion.
0N/A * The value returned depends on whether or not this
0N/A * <code>ResultSet</code> object can detect visible inserts.
0N/A * <p>
0N/A * <strong>Note:</strong> Support for the <code>rowInserted</code> method is optional with a result set
0N/A * concurrency of <code>CONCUR_READ_ONLY</code>
0N/A * @return <code>true</code> if the current row is detected to
0N/A * have been inserted; <code>false</code> otherwise
0N/A * @exception SQLException if a database access error occurs
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A *
0N/A * @see DatabaseMetaData#insertsAreDetected
0N/A * @since 1.2
0N/A */
0N/A boolean rowInserted() throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves whether a row has been deleted. A deleted row may leave
0N/A * a visible "hole" in a result set. This method can be used to
0N/A * detect holes in a result set. The value returned depends on whether
0N/A * or not this <code>ResultSet</code> object can detect deletions.
0N/A * <p>
0N/A * <strong>Note:</strong> Support for the <code>rowDeleted</code> method is optional with a result set
0N/A * concurrency of <code>CONCUR_READ_ONLY</code>
0N/A * @return <code>true</code> if the current row is detected to
0N/A * have been deleted by the owner or another; <code>false</code> otherwise
0N/A * @exception SQLException if a database access error occurs
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A *
0N/A * @see DatabaseMetaData#deletesAreDetected
0N/A * @since 1.2
0N/A */
0N/A boolean rowDeleted() throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column with a <code>null</code> value.
0N/A *
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code>
0N/A * or <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * @param columnIndex the first column is 1, the second is 2, ...
0N/A * @exception SQLException if the columnIndex is not valid;
0N/A * if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.2
0N/A */
0N/A void updateNull(int columnIndex) throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column with a <code>boolean</code> value.
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * @param columnIndex the first column is 1, the second is 2, ...
0N/A * @param x the new column value
0N/A * @exception SQLException if the columnIndex is not valid;
0N/A * if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.2
0N/A */
0N/A void updateBoolean(int columnIndex, boolean x) throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column with a <code>byte</code> value.
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A *
0N/A * @param columnIndex the first column is 1, the second is 2, ...
0N/A * @param x the new column value
0N/A * @exception SQLException if the columnIndex is not valid;
0N/A * if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.2
0N/A */
0N/A void updateByte(int columnIndex, byte x) throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column with a <code>short</code> value.
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * @param columnIndex the first column is 1, the second is 2, ...
0N/A * @param x the new column value
0N/A * @exception SQLException if the columnIndex is not valid;
0N/A * if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.2
0N/A */
0N/A void updateShort(int columnIndex, short x) throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column with an <code>int</code> value.
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * @param columnIndex the first column is 1, the second is 2, ...
0N/A * @param x the new column value
0N/A * @exception SQLException if the columnIndex is not valid;
0N/A * if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.2
0N/A */
0N/A void updateInt(int columnIndex, int x) throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column with a <code>long</code> value.
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * @param columnIndex the first column is 1, the second is 2, ...
0N/A * @param x the new column value
0N/A * @exception SQLException if the columnIndex is not valid;
0N/A * if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.2
0N/A */
0N/A void updateLong(int columnIndex, long x) throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column with a <code>float</code> value.
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * @param columnIndex the first column is 1, the second is 2, ...
0N/A * @param x the new column value
0N/A * @exception SQLException if the columnIndex is not valid;
0N/A * if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.2
0N/A */
0N/A void updateFloat(int columnIndex, float x) throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column with a <code>double</code> value.
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * @param columnIndex the first column is 1, the second is 2, ...
0N/A * @param x the new column value
0N/A * @exception SQLException if the columnIndex is not valid;
0N/A * if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.2
0N/A */
0N/A void updateDouble(int columnIndex, double x) throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column with a <code>java.math.BigDecimal</code>
0N/A * value.
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * @param columnIndex the first column is 1, the second is 2, ...
0N/A * @param x the new column value
0N/A * @exception SQLException if the columnIndex is not valid;
0N/A * if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.2
0N/A */
0N/A void updateBigDecimal(int columnIndex, BigDecimal x) throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column with a <code>String</code> value.
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * @param columnIndex the first column is 1, the second is 2, ...
0N/A * @param x the new column value
0N/A * @exception SQLException if the columnIndex is not valid;
0N/A * if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.2
0N/A */
0N/A void updateString(int columnIndex, String x) throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column with a <code>byte</code> array value.
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * @param columnIndex the first column is 1, the second is 2, ...
0N/A * @param x the new column value
0N/A * @exception SQLException if the columnIndex is not valid;
0N/A * if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.2
0N/A */
0N/A void updateBytes(int columnIndex, byte x[]) throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column with a <code>java.sql.Date</code> value.
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * @param columnIndex the first column is 1, the second is 2, ...
0N/A * @param x the new column value
0N/A * @exception SQLException if the columnIndex is not valid;
0N/A * if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.2
0N/A */
0N/A void updateDate(int columnIndex, java.sql.Date x) throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column with a <code>java.sql.Time</code> value.
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * @param columnIndex the first column is 1, the second is 2, ...
0N/A * @param x the new column value
0N/A * @exception SQLException if the columnIndex is not valid;
0N/A * if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.2
0N/A */
0N/A void updateTime(int columnIndex, java.sql.Time x) throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column with a <code>java.sql.Timestamp</code>
0N/A * value.
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * @param columnIndex the first column is 1, the second is 2, ...
0N/A * @param x the new column value
0N/A * @exception SQLException if the columnIndex is not valid;
0N/A * if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.2
0N/A */
0N/A void updateTimestamp(int columnIndex, java.sql.Timestamp x)
0N/A throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column with an ascii stream value, which will have
0N/A * the specified number of bytes.
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * @param columnIndex the first column is 1, the second is 2, ...
0N/A * @param x the new column value
0N/A * @param length the length of the stream
0N/A * @exception SQLException if the columnIndex is not valid;
0N/A * if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.2
0N/A */
0N/A void updateAsciiStream(int columnIndex,
0N/A java.io.InputStream x,
0N/A int length) throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column with a binary stream value, which will have
0N/A * the specified number of bytes.
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * @param columnIndex the first column is 1, the second is 2, ...
0N/A * @param x the new column value
0N/A * @param length the length of the stream
0N/A * @exception SQLException if the columnIndex is not valid;
0N/A * if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.2
0N/A */
0N/A void updateBinaryStream(int columnIndex,
0N/A java.io.InputStream x,
0N/A int length) throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column with a character stream value, which will have
0N/A * the specified number of bytes.
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * @param columnIndex the first column is 1, the second is 2, ...
0N/A * @param x the new column value
0N/A * @param length the length of the stream
0N/A * @exception SQLException if the columnIndex is not valid;
0N/A * if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.2
0N/A */
0N/A void updateCharacterStream(int columnIndex,
0N/A java.io.Reader x,
0N/A int length) throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column with an <code>Object</code> value.
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *<p>
0N/A * If the second argument is an <code>InputStream</code> then the stream must contain
0N/A * the number of bytes specified by scaleOrLength. If the second argument is a
0N/A * <code>Reader</code> then the reader must contain the number of characters specified
0N/A * by scaleOrLength. If these conditions are not true the driver will generate a
0N/A * <code>SQLException</code> when the statement is executed.
0N/A *
0N/A * @param columnIndex the first column is 1, the second is 2, ...
0N/A * @param x the new column value
0N/A * @param scaleOrLength for an object of <code>java.math.BigDecimal</code> ,
0N/A * this is the number of digits after the decimal point. For
0N/A * Java Object types <code>InputStream</code> and <code>Reader</code>,
0N/A * this is the length
0N/A * of the data in the stream or reader. For all other types,
0N/A * this value will be ignored.
0N/A * @exception SQLException if the columnIndex is not valid;
0N/A * if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.2
0N/A */
0N/A void updateObject(int columnIndex, Object x, int scaleOrLength)
0N/A throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column with an <code>Object</code> value.
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * @param columnIndex the first column is 1, the second is 2, ...
0N/A * @param x the new column value
0N/A * @exception SQLException if the columnIndex is not valid;
0N/A * if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.2
0N/A */
0N/A void updateObject(int columnIndex, Object x) throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column with a <code>null</code> value.
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * @param 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
0N/A * @exception SQLException if the columnLabel is not valid;
0N/A * if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.2
0N/A */
0N/A void updateNull(String columnLabel) throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column with a <code>boolean</code> value.
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * @param 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
0N/A * @param x the new column value
0N/A * @exception SQLException if the columnLabel is not valid;
0N/A * if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.2
0N/A */
0N/A void updateBoolean(String columnLabel, boolean x) throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column with a <code>byte</code> value.
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * @param 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
0N/A * @param x the new column value
0N/A * @exception SQLException if the columnLabel is not valid;
0N/A * if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.2
0N/A */
0N/A void updateByte(String columnLabel, byte x) throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column with a <code>short</code> value.
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * @param 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
0N/A * @param x the new column value
0N/A * @exception SQLException if the columnLabel is not valid;
0N/A * if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.2
0N/A */
0N/A void updateShort(String columnLabel, short x) throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column with an <code>int</code> value.
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * @param 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
0N/A * @param x the new column value
0N/A * @exception SQLException if the columnLabel is not valid;
0N/A * if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.2
0N/A */
0N/A void updateInt(String columnLabel, int x) throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column with a <code>long</code> value.
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * @param 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
0N/A * @param x the new column value
0N/A * @exception SQLException if the columnLabel is not valid;
0N/A * if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.2
0N/A */
0N/A void updateLong(String columnLabel, long x) throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column with a <code>float </code> value.
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * @param 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
0N/A * @param x the new column value
0N/A * @exception SQLException if the columnLabel is not valid;
0N/A * if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.2
0N/A */
0N/A void updateFloat(String columnLabel, float x) throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column with a <code>double</code> value.
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * @param 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
0N/A * @param x the new column value
0N/A * @exception SQLException if the columnLabel is not valid;
0N/A * if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.2
0N/A */
0N/A void updateDouble(String columnLabel, double x) throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column with a <code>java.sql.BigDecimal</code>
0N/A * value.
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * @param 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
0N/A * @param x the new column value
0N/A * @exception SQLException if the columnLabel is not valid;
0N/A * if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.2
0N/A */
0N/A void updateBigDecimal(String columnLabel, BigDecimal x) throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column with a <code>String</code> value.
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * @param 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
0N/A * @param x the new column value
0N/A * @exception SQLException if the columnLabel is not valid;
0N/A * if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.2
0N/A */
0N/A void updateString(String columnLabel, String x) throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column with a byte array value.
0N/A *
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code>
0N/A * or <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * @param 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
0N/A * @param x the new column value
0N/A * @exception SQLException if the columnLabel is not valid;
0N/A * if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.2
0N/A */
0N/A void updateBytes(String columnLabel, byte x[]) throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column with a <code>java.sql.Date</code> value.
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * @param 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
0N/A * @param x the new column value
0N/A * @exception SQLException if the columnLabel is not valid;
0N/A * if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.2
0N/A */
0N/A void updateDate(String columnLabel, java.sql.Date x) throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column with a <code>java.sql.Time</code> value.
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * @param 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
0N/A * @param x the new column value
0N/A * @exception SQLException if the columnLabel is not valid;
0N/A * if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.2
0N/A */
0N/A void updateTime(String columnLabel, java.sql.Time x) throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column with a <code>java.sql.Timestamp</code>
0N/A * value.
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * @param 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
0N/A * @param x the new column value
0N/A * @exception SQLException if the columnLabel is not valid;
0N/A * if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.2
0N/A */
0N/A void updateTimestamp(String columnLabel, java.sql.Timestamp x)
0N/A throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column with an ascii stream value, which will have
0N/A * the specified number of bytes.
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * @param 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
0N/A * @param x the new column value
0N/A * @param length the length of the stream
0N/A * @exception SQLException if the columnLabel is not valid;
0N/A * if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.2
0N/A */
0N/A void updateAsciiStream(String columnLabel,
0N/A java.io.InputStream x,
0N/A int length) throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column with a binary stream value, which will have
0N/A * the specified number of bytes.
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * @param 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
0N/A * @param x the new column value
0N/A * @param length the length of the stream
0N/A * @exception SQLException if the columnLabel is not valid;
0N/A * if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.2
0N/A */
0N/A void updateBinaryStream(String columnLabel,
0N/A java.io.InputStream x,
0N/A int length) throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column with a character stream value, which will have
0N/A * the specified number of bytes.
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * @param 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
0N/A * @param reader the <code>java.io.Reader</code> object containing
0N/A * the new column value
0N/A * @param length the length of the stream
0N/A * @exception SQLException if the columnLabel is not valid;
0N/A * if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.2
0N/A */
0N/A void updateCharacterStream(String columnLabel,
0N/A java.io.Reader reader,
0N/A int length) throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column with an <code>Object</code> value.
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *<p>
0N/A * If the second argument is an <code>InputStream</code> then the stream must contain
0N/A * the number of bytes specified by scaleOrLength. If the second argument is a
0N/A * <code>Reader</code> then the reader must contain the number of characters specified
0N/A * by scaleOrLength. If these conditions are not true the driver will generate a
0N/A * <code>SQLException</code> when the statement is executed.
0N/A *
0N/A * @param 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
0N/A * @param x the new column value
0N/A * @param scaleOrLength for an object of <code>java.math.BigDecimal</code> ,
0N/A * this is the number of digits after the decimal point. For
0N/A * Java Object types <code>InputStream</code> and <code>Reader</code>,
0N/A * this is the length
0N/A * of the data in the stream or reader. For all other types,
0N/A * this value will be ignored.
0N/A * @exception SQLException if the columnLabel is not valid;
0N/A * if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.2
0N/A */
0N/A void updateObject(String columnLabel, Object x, int scaleOrLength)
0N/A throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column with an <code>Object</code> value.
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * @param 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
0N/A * @param x the new column value
0N/A * @exception SQLException if the columnLabel is not valid;
0N/A * if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.2
0N/A */
0N/A void updateObject(String columnLabel, Object x) throws SQLException;
0N/A
0N/A /**
0N/A * Inserts the contents of the insert row into this
0N/A * <code>ResultSet</code> object and into the database.
0N/A * The cursor must be on the insert row when this method is called.
0N/A *
0N/A * @exception SQLException if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>,
0N/A * this method is called on a closed result set,
0N/A * if this method is called when the cursor is not on the insert row,
0N/A * or if not all of non-nullable columns in
0N/A * the insert row have been given a non-null value
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.2
0N/A */
0N/A void insertRow() throws SQLException;
0N/A
0N/A /**
0N/A * Updates the underlying database with the new contents of the
0N/A * current row of this <code>ResultSet</code> object.
0N/A * This method cannot be called when the cursor is on the insert row.
0N/A *
0N/A * @exception SQLException if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>;
0N/A * this method is called on a closed result set or
0N/A * if this method is called when the cursor is on the insert row
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.2
0N/A */
0N/A void updateRow() throws SQLException;
0N/A
0N/A /**
0N/A * Deletes the current row from this <code>ResultSet</code> object
0N/A * and from the underlying database. This method cannot be called when
0N/A * the cursor is on the insert row.
0N/A *
0N/A * @exception SQLException if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>;
0N/A * this method is called on a closed result set
0N/A * or if this method is called when the cursor is on the insert row
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.2
0N/A */
0N/A void deleteRow() throws SQLException;
0N/A
0N/A /**
0N/A * Refreshes the current row with its most recent value in
0N/A * the database. This method cannot be called when
0N/A * the cursor is on the insert row.
0N/A *
0N/A * <P>The <code>refreshRow</code> method provides a way for an
0N/A * application to
0N/A * explicitly tell the JDBC driver to refetch a row(s) from the
0N/A * database. An application may want to call <code>refreshRow</code> when
0N/A * caching or prefetching is being done by the JDBC driver to
0N/A * fetch the latest value of a row from the database. The JDBC driver
0N/A * may actually refresh multiple rows at once if the fetch size is
0N/A * greater than one.
0N/A *
0N/A * <P> All values are refetched subject to the transaction isolation
0N/A * level and cursor sensitivity. If <code>refreshRow</code> is called after
0N/A * calling an updater method, but before calling
0N/A * the method <code>updateRow</code>, then the
0N/A * updates made to the row are lost. Calling the method
0N/A * <code>refreshRow</code> frequently will likely slow performance.
0N/A *
0N/A * @exception SQLException if a database access error
0N/A * occurs; this method is called on a closed result set;
0N/A * the result set type is <code>TYPE_FORWARD_ONLY</code> or if this
0N/A * method is called when the cursor is on the insert row
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method or this method is not supported for the specified result
0N/A * set type and result set concurrency.
0N/A * @since 1.2
0N/A */
0N/A void refreshRow() throws SQLException;
0N/A
0N/A /**
0N/A * Cancels the updates made to the current row in this
0N/A * <code>ResultSet</code> object.
0N/A * This method may be called after calling an
0N/A * updater method(s) and before calling
0N/A * the method <code>updateRow</code> to roll back
0N/A * the updates made to a row. If no updates have been made or
0N/A * <code>updateRow</code> has already been called, this method has no
0N/A * effect.
0N/A *
0N/A * @exception SQLException if a database access error
0N/A * occurs; this method is called on a closed result set;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * or if this method is called when the cursor is
0N/A * on the insert row
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.2
0N/A */
0N/A void cancelRowUpdates() throws SQLException;
0N/A
0N/A /**
0N/A * Moves the cursor to the insert row. The current cursor position is
0N/A * remembered while the cursor is positioned on the insert row.
0N/A *
0N/A * The insert row is a special row associated with an updatable
0N/A * result set. It is essentially a buffer where a new row may
0N/A * be constructed by calling the updater methods prior to
0N/A * inserting the row into the result set.
0N/A *
0N/A * Only the updater, getter,
0N/A * and <code>insertRow</code> methods may be
0N/A * called when the cursor is on the insert row. All of the columns in
0N/A * a result set must be given a value each time this method is
0N/A * called before calling <code>insertRow</code>.
0N/A * An updater method must be called before a
0N/A * getter method can be called on a column value.
0N/A *
0N/A * @exception SQLException if a database access error occurs; this
0N/A * method is called on a closed result set
0N/A * or the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.2
0N/A */
0N/A void moveToInsertRow() throws SQLException;
0N/A
0N/A /**
0N/A * Moves the cursor to the remembered cursor position, usually the
0N/A * current row. This method has no effect if the cursor is not on
0N/A * the insert row.
0N/A *
0N/A * @exception SQLException if a database access error occurs; this
0N/A * method is called on a closed result set
0N/A * or the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.2
0N/A */
0N/A void moveToCurrentRow() throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves the <code>Statement</code> object that produced this
0N/A * <code>ResultSet</code> object.
0N/A * If the result set was generated some other way, such as by a
0N/A * <code>DatabaseMetaData</code> method, this method may return
0N/A * <code>null</code>.
0N/A *
0N/A * @return the <code>Statment</code> object that produced
0N/A * this <code>ResultSet</code> object or <code>null</code>
0N/A * if the result set was produced some other way
0N/A * @exception SQLException if a database access error occurs
0N/A * or this method is called on a closed result set
0N/A * @since 1.2
0N/A */
0N/A Statement getStatement() throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves the value of the designated column in the current row
0N/A * of this <code>ResultSet</code> object as an <code>Object</code>
0N/A * in the Java programming language.
0N/A * If the value is an SQL <code>NULL</code>,
0N/A * the driver returns a Java <code>null</code>.
0N/A * This method uses the given <code>Map</code> object
0N/A * for the custom mapping of the
0N/A * SQL structured or distinct type that is being retrieved.
0N/A *
0N/A * @param columnIndex the first column is 1, the second is 2, ...
0N/A * @param map a <code>java.util.Map</code> object that contains the mapping
0N/A * from SQL type names to classes in the Java programming language
0N/A * @return an <code>Object</code> in the Java programming language
0N/A * representing the SQL value
0N/A * @exception SQLException if the columnIndex is not valid;
0N/A * if a database access error occurs
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.2
0N/A */
0N/A Object getObject(int columnIndex, java.util.Map<String,Class<?>> map)
0N/A throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves the value of the designated column in the current row
0N/A * of this <code>ResultSet</code> object as a <code>Ref</code> object
0N/A * in the Java programming language.
0N/A *
0N/A * @param columnIndex the first column is 1, the second is 2, ...
0N/A * @return a <code>Ref</code> object representing an SQL <code>REF</code>
0N/A * value
0N/A * @exception SQLException if the columnIndex is not valid;
0N/A * if a database access error occurs
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.2
0N/A */
0N/A Ref getRef(int columnIndex) throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves the value of the designated column in the current row
0N/A * of this <code>ResultSet</code> object as a <code>Blob</code> object
0N/A * in the Java programming language.
0N/A *
0N/A * @param columnIndex the first column is 1, the second is 2, ...
0N/A * @return a <code>Blob</code> object representing the SQL
0N/A * <code>BLOB</code> value in the specified column
0N/A * @exception SQLException if the columnIndex is not valid;
0N/A * if a database access error occurs
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.2
0N/A */
0N/A Blob getBlob(int columnIndex) throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves the value of the designated column in the current row
0N/A * of this <code>ResultSet</code> object as a <code>Clob</code> object
0N/A * in the Java programming language.
0N/A *
0N/A * @param columnIndex the first column is 1, the second is 2, ...
0N/A * @return a <code>Clob</code> object representing the SQL
0N/A * <code>CLOB</code> value in the specified column
0N/A * @exception SQLException if the columnIndex is not valid;
0N/A * if a database access error occurs
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.2
0N/A */
0N/A Clob getClob(int columnIndex) throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves the value of the designated column in the current row
0N/A * of this <code>ResultSet</code> object as an <code>Array</code> object
0N/A * in the Java programming language.
0N/A *
0N/A * @param columnIndex the first column is 1, the second is 2, ...
0N/A * @return an <code>Array</code> object representing the SQL
0N/A * <code>ARRAY</code> value in the specified column
0N/A * @exception SQLException if the columnIndex is not valid;
0N/A * if a database access error occurs
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.2
0N/A */
0N/A Array getArray(int columnIndex) throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves the value of the designated column in the current row
0N/A * of this <code>ResultSet</code> object as an <code>Object</code>
0N/A * in the Java programming language.
0N/A * If the value is an SQL <code>NULL</code>,
0N/A * the driver returns a Java <code>null</code>.
0N/A * This method uses the specified <code>Map</code> object for
0N/A * custom mapping if appropriate.
0N/A *
0N/A * @param 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
0N/A * @param map a <code>java.util.Map</code> object that contains the mapping
0N/A * from SQL type names to classes in the Java programming language
0N/A * @return an <code>Object</code> representing the SQL value in the
0N/A * specified column
0N/A * @exception SQLException if the columnLabel is not valid;
0N/A * if a database access error occurs
0N/A * or this method is called on a closed result set
2751N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.2
0N/A */
0N/A Object getObject(String columnLabel, java.util.Map<String,Class<?>> map)
0N/A throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves the value of the designated column in the current row
0N/A * of this <code>ResultSet</code> object as a <code>Ref</code> object
0N/A * in the Java programming language.
0N/A *
0N/A * @param 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
0N/A * @return a <code>Ref</code> object representing the SQL <code>REF</code>
0N/A * value in the specified column
0N/A * @exception SQLException if the columnLabel is not valid;
0N/A * if a database access error occurs
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.2
0N/A */
0N/A Ref getRef(String columnLabel) throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves the value of the designated column in the current row
0N/A * of this <code>ResultSet</code> object as a <code>Blob</code> object
0N/A * in the Java programming language.
0N/A *
0N/A * @param 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
0N/A * @return a <code>Blob</code> object representing the SQL <code>BLOB</code>
0N/A * value in the specified column
0N/A * @exception SQLException if the columnLabel is not valid;
0N/A * if a database access error occurs
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.2
0N/A */
0N/A Blob getBlob(String columnLabel) throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves the value of the designated column in the current row
0N/A * of this <code>ResultSet</code> object as a <code>Clob</code> object
0N/A * in the Java programming language.
0N/A *
0N/A * @param 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
0N/A * @return a <code>Clob</code> object representing the SQL <code>CLOB</code>
0N/A * value in the specified column
0N/A * @exception SQLException if the columnLabel is not valid;
0N/A * if a database access error occurs
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.2
0N/A */
0N/A Clob getClob(String columnLabel) throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves the value of the designated column in the current row
0N/A * of this <code>ResultSet</code> object as an <code>Array</code> object
0N/A * in the Java programming language.
0N/A *
0N/A * @param 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
0N/A * @return an <code>Array</code> object representing the SQL <code>ARRAY</code> value in
0N/A * the specified column
0N/A * @exception SQLException if the columnLabel is not valid;
0N/A * if a database access error occurs
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.2
0N/A */
0N/A Array getArray(String columnLabel) throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves the value of the designated column in the current row
0N/A * of this <code>ResultSet</code> object as a <code>java.sql.Date</code> object
0N/A * in the Java programming language.
0N/A * This method uses the given calendar to construct an appropriate millisecond
0N/A * value for the date if the underlying database does not store
0N/A * timezone information.
0N/A *
0N/A * @param columnIndex the first column is 1, the second is 2, ...
0N/A * @param cal the <code>java.util.Calendar</code> object
0N/A * to use in constructing the date
0N/A * @return the column value as a <code>java.sql.Date</code> object;
0N/A * if the value is SQL <code>NULL</code>,
0N/A * the value returned is <code>null</code> in the Java programming language
0N/A * @exception SQLException if the columnIndex is not valid;
0N/A * if a database access error occurs
0N/A * or this method is called on a closed result set
0N/A * @since 1.2
0N/A */
0N/A java.sql.Date getDate(int columnIndex, Calendar cal) throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves the value of the designated column in the current row
0N/A * of this <code>ResultSet</code> object as a <code>java.sql.Date</code> object
0N/A * in the Java programming language.
0N/A * This method uses the given calendar to construct an appropriate millisecond
0N/A * value for the date if the underlying database does not store
0N/A * timezone information.
0N/A *
0N/A * @param 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
0N/A * @param cal the <code>java.util.Calendar</code> object
0N/A * to use in constructing the date
0N/A * @return the column value as a <code>java.sql.Date</code> object;
0N/A * if the value is SQL <code>NULL</code>,
0N/A * the value returned is <code>null</code> in the Java programming language
0N/A * @exception SQLException if the columnLabel is not valid;
0N/A * if a database access error occurs
0N/A * or this method is called on a closed result set
0N/A * @since 1.2
0N/A */
0N/A java.sql.Date getDate(String columnLabel, Calendar cal) throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves the value of the designated column in the current row
0N/A * of this <code>ResultSet</code> object as a <code>java.sql.Time</code> object
0N/A * in the Java programming language.
0N/A * This method uses the given calendar to construct an appropriate millisecond
0N/A * value for the time if the underlying database does not store
0N/A * timezone information.
0N/A *
0N/A * @param columnIndex the first column is 1, the second is 2, ...
0N/A * @param cal the <code>java.util.Calendar</code> object
0N/A * to use in constructing the time
0N/A * @return the column value as a <code>java.sql.Time</code> object;
0N/A * if the value is SQL <code>NULL</code>,
0N/A * the value returned is <code>null</code> in the Java programming language
0N/A * @exception SQLException if the columnIndex is not valid;
0N/A * if a database access error occurs
0N/A * or this method is called on a closed result set
0N/A * @since 1.2
0N/A */
0N/A java.sql.Time getTime(int columnIndex, Calendar cal) throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves the value of the designated column in the current row
0N/A * of this <code>ResultSet</code> object as a <code>java.sql.Time</code> object
0N/A * in the Java programming language.
0N/A * This method uses the given calendar to construct an appropriate millisecond
0N/A * value for the time if the underlying database does not store
0N/A * timezone information.
0N/A *
0N/A * @param 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
0N/A * @param cal the <code>java.util.Calendar</code> object
0N/A * to use in constructing the time
0N/A * @return the column value as a <code>java.sql.Time</code> object;
0N/A * if the value is SQL <code>NULL</code>,
0N/A * the value returned is <code>null</code> in the Java programming language
0N/A * @exception SQLException if the columnLabel is not valid;
0N/A * if a database access error occurs
0N/A * or this method is called on a closed result set
0N/A * @since 1.2
0N/A */
0N/A java.sql.Time getTime(String columnLabel, Calendar cal) throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves the value of the designated column in the current row
0N/A * of this <code>ResultSet</code> object as a <code>java.sql.Timestamp</code> object
0N/A * in the Java programming language.
0N/A * This method uses the given calendar to construct an appropriate millisecond
0N/A * value for the timestamp if the underlying database does not store
0N/A * timezone information.
0N/A *
0N/A * @param columnIndex the first column is 1, the second is 2, ...
0N/A * @param cal the <code>java.util.Calendar</code> object
0N/A * to use in constructing the timestamp
0N/A * @return the column value as a <code>java.sql.Timestamp</code> object;
0N/A * if the value is SQL <code>NULL</code>,
0N/A * the value returned is <code>null</code> in the Java programming language
0N/A * @exception SQLException if the columnIndex is not valid;
0N/A * if a database access error occurs
0N/A * or this method is called on a closed result set
0N/A * @since 1.2
0N/A */
0N/A java.sql.Timestamp getTimestamp(int columnIndex, Calendar cal)
0N/A throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves the value of the designated column in the current row
0N/A * of this <code>ResultSet</code> object as a <code>java.sql.Timestamp</code> object
0N/A * in the Java programming language.
0N/A * This method uses the given calendar to construct an appropriate millisecond
0N/A * value for the timestamp if the underlying database does not store
0N/A * timezone information.
0N/A *
0N/A * @param 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
0N/A * @param cal the <code>java.util.Calendar</code> object
0N/A * to use in constructing the date
0N/A * @return the column value as a <code>java.sql.Timestamp</code> object;
0N/A * if the value is SQL <code>NULL</code>,
0N/A * the value returned is <code>null</code> in the Java programming language
0N/A * @exception SQLException if the columnLabel is not valid or
0N/A * if a database access error occurs
0N/A * or this method is called on a closed result set
0N/A * @since 1.2
0N/A */
0N/A java.sql.Timestamp getTimestamp(String columnLabel, Calendar cal)
0N/A throws SQLException;
0N/A
0N/A //-------------------------- JDBC 3.0 ----------------------------------------
0N/A
0N/A /**
0N/A * The constant indicating that open <code>ResultSet</code> objects with this
0N/A * holdability will remain open when the current transaction is commited.
0N/A *
0N/A * @since 1.4
0N/A */
0N/A int HOLD_CURSORS_OVER_COMMIT = 1;
0N/A
0N/A /**
0N/A * The constant indicating that open <code>ResultSet</code> objects with this
0N/A * holdability will be closed when the current transaction is commited.
0N/A *
0N/A * @since 1.4
0N/A */
0N/A int CLOSE_CURSORS_AT_COMMIT = 2;
0N/A
0N/A /**
0N/A * Retrieves the value of the designated column in the current row
0N/A * of this <code>ResultSet</code> object as a <code>java.net.URL</code>
0N/A * object in the Java programming language.
0N/A *
0N/A * @param columnIndex the index of the column 1 is the first, 2 is the second,...
0N/A * @return the column value as a <code>java.net.URL</code> object;
0N/A * if the value is SQL <code>NULL</code>,
0N/A * the value returned is <code>null</code> in the Java programming language
0N/A * @exception SQLException if the columnIndex is not valid;
0N/A * if a database access error occurs; this method
0N/A * is called on a closed result set or if a URL is malformed
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.4
0N/A */
0N/A java.net.URL getURL(int columnIndex) throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves the value of the designated column in the current row
0N/A * of this <code>ResultSet</code> object as a <code>java.net.URL</code>
0N/A * object in the Java programming language.
0N/A *
0N/A * @param 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
0N/A * @return the column value as a <code>java.net.URL</code> object;
0N/A * if the value is SQL <code>NULL</code>,
0N/A * the value returned is <code>null</code> in the Java programming language
0N/A * @exception SQLException if the columnLabel is not valid;
0N/A * if a database access error occurs; this method
0N/A * is called on a closed result set or if a URL is malformed
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.4
0N/A */
0N/A java.net.URL getURL(String columnLabel) throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column with a <code>java.sql.Ref</code> value.
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * @param columnIndex the first column is 1, the second is 2, ...
0N/A * @param x the new column value
0N/A * @exception SQLException if the columnIndex is not valid;
0N/A * if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.4
0N/A */
0N/A void updateRef(int columnIndex, java.sql.Ref x) throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column with a <code>java.sql.Ref</code> value.
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * @param 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
0N/A * @param x the new column value
0N/A * @exception SQLException if the columnLabel is not valid;
0N/A * if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.4
0N/A */
0N/A void updateRef(String columnLabel, java.sql.Ref x) throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column with a <code>java.sql.Blob</code> value.
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * @param columnIndex the first column is 1, the second is 2, ...
0N/A * @param x the new column value
0N/A * @exception SQLException if the columnIndex is not valid;
0N/A * if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.4
0N/A */
0N/A void updateBlob(int columnIndex, java.sql.Blob x) throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column with a <code>java.sql.Blob</code> value.
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * @param 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
0N/A * @param x the new column value
0N/A * @exception SQLException if the columnLabel is not valid;
0N/A * if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.4
0N/A */
0N/A void updateBlob(String columnLabel, java.sql.Blob x) throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column with a <code>java.sql.Clob</code> value.
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * @param columnIndex the first column is 1, the second is 2, ...
0N/A * @param x the new column value
0N/A * @exception SQLException if the columnIndex is not valid;
0N/A * if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.4
0N/A */
0N/A void updateClob(int columnIndex, java.sql.Clob x) throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column with a <code>java.sql.Clob</code> value.
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * @param 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
0N/A * @param x the new column value
0N/A * @exception SQLException if the columnLabel is not valid;
0N/A * if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.4
0N/A */
0N/A void updateClob(String columnLabel, java.sql.Clob x) throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column with a <code>java.sql.Array</code> value.
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * @param columnIndex the first column is 1, the second is 2, ...
0N/A * @param x the new column value
0N/A * @exception SQLException if the columnIndex is not valid;
0N/A * if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.4
0N/A */
0N/A void updateArray(int columnIndex, java.sql.Array x) throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column with a <code>java.sql.Array</code> value.
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * @param 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
0N/A * @param x the new column value
0N/A * @exception SQLException if the columnLabel is not valid;
0N/A * if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.4
0N/A */
0N/A void updateArray(String columnLabel, java.sql.Array x) throws SQLException;
0N/A
0N/A //------------------------- JDBC 4.0 -----------------------------------
0N/A
0N/A /**
0N/A * Retrieves the value of the designated column in the current row of this
0N/A * <code>ResultSet</code> object as a <code>java.sql.RowId</code> object in the Java
0N/A * programming language.
0N/A *
0N/A * @param columnIndex the first column is 1, the second 2, ...
0N/A * @return the column value; if the value is a SQL <code>NULL</code> the
0N/A * value returned is <code>null</code>
0N/A * @throws SQLException if the columnIndex is not valid;
0N/A * if a database access error occurs
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.6
0N/A */
0N/A RowId getRowId(int columnIndex) throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves the value of the designated column in the current row of this
0N/A * <code>ResultSet</code> object as a <code>java.sql.RowId</code> object in the Java
0N/A * programming language.
0N/A *
0N/A * @param 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
0N/A * @return the column value ; if the value is a SQL <code>NULL</code> the
0N/A * value returned is <code>null</code>
0N/A * @throws SQLException if the columnLabel is not valid;
0N/A * if a database access error occurs
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.6
0N/A */
0N/A RowId getRowId(String columnLabel) throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column with a <code>RowId</code> value. The updater
0N/A * methods are used to update column values in the current row or the insert
0N/A * row. The updater methods do not update the underlying database; instead
0N/A * the <code>updateRow</code> or <code>insertRow</code> methods are called
0N/A * to update the database.
0N/A *
0N/A * @param columnIndex the first column is 1, the second 2, ...
0N/A * @param x the column value
0N/A * @exception SQLException if the columnIndex is not valid;
0N/A * if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.6
0N/A */
0N/A void updateRowId(int columnIndex, RowId x) throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column with a <code>RowId</code> value. The updater
0N/A * methods are used to update column values in the current row or the insert
0N/A * row. The updater methods do not update the underlying database; instead
0N/A * the <code>updateRow</code> or <code>insertRow</code> methods are called
0N/A * to update the database.
0N/A *
0N/A * @param 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
0N/A * @param x the column value
0N/A * @exception SQLException if the columnLabel is not valid;
0N/A * if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.6
0N/A */
0N/A void updateRowId(String columnLabel, RowId x) throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves the holdability of this <code>ResultSet</code> object
0N/A * @return either <code>ResultSet.HOLD_CURSORS_OVER_COMMIT</code> or <code>ResultSet.CLOSE_CURSORS_AT_COMMIT</code>
0N/A * @throws SQLException if a database access error occurs
0N/A * or this method is called on a closed result set
0N/A * @since 1.6
0N/A */
0N/A int getHoldability() throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves whether this <code>ResultSet</code> object has been closed. A <code>ResultSet</code> is closed if the
0N/A * method close has been called on it, or if it is automatically closed.
0N/A *
0N/A * @return true if this <code>ResultSet</code> object is closed; false if it is still open
0N/A * @throws SQLException if a database access error occurs
0N/A * @since 1.6
0N/A */
0N/A boolean isClosed() throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column with a <code>String</code> value.
0N/A * It is intended for use when updating <code>NCHAR</code>,<code>NVARCHAR</code>
0N/A * and <code>LONGNVARCHAR</code> columns.
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * @param columnIndex the first column is 1, the second 2, ...
0N/A * @param nString the value for the column to be updated
0N/A * @throws SQLException if the columnIndex is not valid;
0N/A * if the driver does not support national
0N/A * character sets; if the driver can detect that a data conversion
0N/A * error could occur; this method is called on a closed result set;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * or if a database access error occurs
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.6
0N/A */
0N/A void updateNString(int columnIndex, String nString) throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column with a <code>String</code> value.
0N/A * It is intended for use when updating <code>NCHAR</code>,<code>NVARCHAR</code>
0N/A * and <code>LONGNVARCHAR</code> columns.
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * @param 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
0N/A * @param nString the value for the column to be updated
0N/A * @throws SQLException if the columnLabel is not valid;
0N/A * if the driver does not support national
0N/A * character sets; if the driver can detect that a data conversion
0N/A * error could occur; this method is called on a closed result set;
0N/A * the result set concurrency is <CODE>CONCUR_READ_ONLY</code>
0N/A * or if a database access error occurs
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.6
0N/A */
0N/A void updateNString(String columnLabel, String nString) throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column with a <code>java.sql.NClob</code> value.
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * @param columnIndex the first column is 1, the second 2, ...
0N/A * @param nClob the value for the column to be updated
0N/A * @throws SQLException if the columnIndex is not valid;
0N/A * if the driver does not support national
0N/A * character sets; if the driver can detect that a data conversion
0N/A * error could occur; this method is called on a closed result set;
0N/A * if a database access error occurs or
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.6
0N/A */
0N/A void updateNClob(int columnIndex, NClob nClob) throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column with a <code>java.sql.NClob</code> value.
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * @param 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
0N/A * @param nClob the value for the column to be updated
0N/A * @throws SQLException if the columnLabel is not valid;
0N/A * if the driver does not support national
0N/A * character sets; if the driver can detect that a data conversion
0N/A * error could occur; this method is called on a closed result set;
0N/A * if a database access error occurs or
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.6
0N/A */
0N/A void updateNClob(String columnLabel, NClob nClob) throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves the value of the designated column in the current row
0N/A * of this <code>ResultSet</code> object as a <code>NClob</code> object
0N/A * in the Java programming language.
0N/A *
0N/A * @param columnIndex the first column is 1, the second is 2, ...
0N/A * @return a <code>NClob</code> object representing the SQL
0N/A * <code>NCLOB</code> value in the specified column
0N/A * @exception SQLException if the columnIndex is not valid;
0N/A * if the driver does not support national
0N/A * character sets; if the driver can detect that a data conversion
0N/A * error could occur; this method is called on a closed result set
0N/A * or if a database access error occurs
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.6
0N/A */
0N/A NClob getNClob(int columnIndex) throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves the value of the designated column in the current row
0N/A * of this <code>ResultSet</code> object as a <code>NClob</code> object
0N/A * in the Java programming language.
0N/A *
0N/A * @param 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
0N/A * @return a <code>NClob</code> object representing the SQL <code>NCLOB</code>
0N/A * value in the specified column
0N/A * @exception SQLException if the columnLabel is not valid;
0N/A * if the driver does not support national
0N/A * character sets; if the driver can detect that a data conversion
0N/A * error could occur; this method is called on a closed result set
0N/A * or if a database access error occurs
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.6
0N/A */
0N/A NClob getNClob(String columnLabel) throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves the value of the designated column in the current row of
0N/A * this <code>ResultSet</code> as a
0N/A * <code>java.sql.SQLXML</code> object in the Java programming language.
0N/A * @param columnIndex the first column is 1, the second is 2, ...
0N/A * @return a <code>SQLXML</code> object that maps an <code>SQL XML</code> value
0N/A * @throws SQLException if the columnIndex is not valid;
0N/A * if a database access error occurs
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.6
0N/A */
0N/A SQLXML getSQLXML(int columnIndex) throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves the value of the designated column in the current row of
0N/A * this <code>ResultSet</code> as a
0N/A * <code>java.sql.SQLXML</code> object in the Java programming language.
0N/A * @param 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
0N/A * @return a <code>SQLXML</code> object that maps an <code>SQL XML</code> value
0N/A * @throws SQLException if the columnLabel is not valid;
0N/A * if a database access error occurs
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.6
0N/A */
0N/A SQLXML getSQLXML(String columnLabel) throws SQLException;
0N/A /**
0N/A * Updates the designated column with a <code>java.sql.SQLXML</code> value.
0N/A * The updater
0N/A * methods are used to update column values in the current row or the insert
0N/A * row. The updater methods do not update the underlying database; instead
0N/A * the <code>updateRow</code> or <code>insertRow</code> methods are called
0N/A * to update the database.
0N/A * <p>
0N/A *
0N/A * @param columnIndex the first column is 1, the second 2, ...
0N/A * @param xmlObject the value for the column to be updated
0N/A * @throws SQLException if the columnIndex is not valid;
0N/A * if a database access error occurs; this method
0N/A * is called on a closed result set;
0N/A * the <code>java.xml.transform.Result</code>,
0N/A * <code>Writer</code> or <code>OutputStream</code> has not been closed
0N/A * for the <code>SQLXML</code> object;
0N/A * if there is an error processing the XML value or
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>. The <code>getCause</code> method
0N/A * of the exception may provide a more detailed exception, for example, if the
0N/A * stream does not contain valid XML.
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.6
0N/A */
0N/A void updateSQLXML(int columnIndex, SQLXML xmlObject) throws SQLException;
0N/A /**
0N/A * Updates the designated column with a <code>java.sql.SQLXML</code> value.
0N/A * The updater
0N/A * methods are used to update column values in the current row or the insert
0N/A * row. The updater methods do not update the underlying database; instead
0N/A * the <code>updateRow</code> or <code>insertRow</code> methods are called
0N/A * to update the database.
0N/A * <p>
0N/A *
0N/A * @param 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
0N/A * @param xmlObject the column value
0N/A * @throws SQLException if the columnLabel is not valid;
0N/A * if a database access error occurs; this method
0N/A * is called on a closed result set;
0N/A * the <code>java.xml.transform.Result</code>,
0N/A * <code>Writer</code> or <code>OutputStream</code> has not been closed
0N/A * for the <code>SQLXML</code> object;
0N/A * if there is an error processing the XML value or
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>. The <code>getCause</code> method
0N/A * of the exception may provide a more detailed exception, for example, if the
0N/A * stream does not contain valid XML.
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.6
0N/A */
0N/A void updateSQLXML(String columnLabel, SQLXML xmlObject) throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves the value of the designated column in the current row
0N/A * of this <code>ResultSet</code> object as
0N/A * a <code>String</code> in the Java programming language.
0N/A * It is intended for use when
0N/A * accessing <code>NCHAR</code>,<code>NVARCHAR</code>
0N/A * and <code>LONGNVARCHAR</code> columns.
0N/A *
0N/A * @param columnIndex the first column is 1, the second is 2, ...
0N/A * @return the column value; if the value is SQL <code>NULL</code>, the
0N/A * value returned is <code>null</code>
0N/A * @exception SQLException if the columnIndex is not valid;
0N/A * if a database access error occurs
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.6
0N/A */
0N/A String getNString(int columnIndex) throws SQLException;
0N/A
0N/A
0N/A /**
0N/A * Retrieves the value of the designated column in the current row
0N/A * of this <code>ResultSet</code> object as
0N/A * a <code>String</code> in the Java programming language.
0N/A * It is intended for use when
0N/A * accessing <code>NCHAR</code>,<code>NVARCHAR</code>
0N/A * and <code>LONGNVARCHAR</code> columns.
0N/A *
0N/A * @param 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
0N/A * @return the column value; if the value is SQL <code>NULL</code>, the
0N/A * value returned is <code>null</code>
0N/A * @exception SQLException if the columnLabel is not valid;
0N/A * if a database access error occurs
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.6
0N/A */
0N/A String getNString(String columnLabel) throws SQLException;
0N/A
0N/A
0N/A /**
0N/A * Retrieves the value of the designated column in the current row
0N/A * of this <code>ResultSet</code> object as a
0N/A * <code>java.io.Reader</code> object.
0N/A * It is intended for use when
0N/A * accessing <code>NCHAR</code>,<code>NVARCHAR</code>
0N/A * and <code>LONGNVARCHAR</code> columns.
0N/A *
0N/A * @return a <code>java.io.Reader</code> object that contains the column
0N/A * value; if the value is SQL <code>NULL</code>, the value returned is
0N/A * <code>null</code> in the Java programming language.
0N/A * @param columnIndex the first column is 1, the second is 2, ...
0N/A * @exception SQLException if the columnIndex is not valid;
0N/A * if a database access error occurs
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.6
0N/A */
0N/A java.io.Reader getNCharacterStream(int columnIndex) throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves the value of the designated column in the current row
0N/A * of this <code>ResultSet</code> object as a
0N/A * <code>java.io.Reader</code> object.
0N/A * It is intended for use when
0N/A * accessing <code>NCHAR</code>,<code>NVARCHAR</code>
0N/A * and <code>LONGNVARCHAR</code> columns.
0N/A *
0N/A * @param 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
0N/A * @return a <code>java.io.Reader</code> object that contains the column
0N/A * value; if the value is SQL <code>NULL</code>, the value returned is
0N/A * <code>null</code> in the Java programming language
0N/A * @exception SQLException if the columnLabel is not valid;
0N/A * if a database access error occurs
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.6
0N/A */
0N/A java.io.Reader getNCharacterStream(String columnLabel) throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column with a character stream value, which will have
0N/A * the specified number of bytes. The
0N/A * driver does the necessary conversion from Java character format to
0N/A * the national character set in the database.
0N/A * It is intended for use when
0N/A * updating <code>NCHAR</code>,<code>NVARCHAR</code>
0N/A * and <code>LONGNVARCHAR</code> columns.
0N/A * <p>
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * @param columnIndex the first column is 1, the second is 2, ...
0N/A * @param x the new column value
0N/A * @param length the length of the stream
0N/A * @exception SQLException if the columnIndex is not valid;
0N/A * if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code> or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.6
0N/A */
0N/A void updateNCharacterStream(int columnIndex,
0N/A java.io.Reader x,
0N/A long length) throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column with a character stream value, which will have
0N/A * the specified number of bytes. The
0N/A * driver does the necessary conversion from Java character format to
0N/A * the national character set in the database.
0N/A * It is intended for use when
0N/A * updating <code>NCHAR</code>,<code>NVARCHAR</code>
0N/A * and <code>LONGNVARCHAR</code> columns.
0N/A * <p>
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * @param 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
0N/A * @param reader the <code>java.io.Reader</code> object containing
0N/A * the new column value
0N/A * @param length the length of the stream
0N/A * @exception SQLException if the columnLabel is not valid;
0N/A * if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code> or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.6
0N/A */
0N/A void updateNCharacterStream(String columnLabel,
0N/A java.io.Reader reader,
0N/A long length) throws SQLException;
0N/A /**
0N/A * Updates the designated column with an ascii stream value, which will have
0N/A * the specified number of bytes.
0N/A * <p>
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * @param columnIndex the first column is 1, the second is 2, ...
0N/A * @param x the new column value
0N/A * @param length the length of the stream
0N/A * @exception SQLException if the columnIndex is not valid;
0N/A * if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.6
0N/A */
0N/A void updateAsciiStream(int columnIndex,
0N/A java.io.InputStream x,
0N/A long length) throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column with a binary stream value, which will have
0N/A * the specified number of bytes.
0N/A * <p>
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * @param columnIndex the first column is 1, the second is 2, ...
0N/A * @param x the new column value
0N/A * @param length the length of the stream
0N/A * @exception SQLException if the columnIndex is not valid;
0N/A * if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.6
0N/A */
0N/A void updateBinaryStream(int columnIndex,
0N/A java.io.InputStream x,
0N/A long length) throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column with a character stream value, which will have
0N/A * the specified number of bytes.
0N/A * <p>
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * @param columnIndex the first column is 1, the second is 2, ...
0N/A * @param x the new column value
0N/A * @param length the length of the stream
0N/A * @exception SQLException if the columnIndex is not valid;
0N/A * if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.6
0N/A */
0N/A void updateCharacterStream(int columnIndex,
0N/A java.io.Reader x,
0N/A long length) throws SQLException;
0N/A /**
0N/A * Updates the designated column with an ascii stream value, which will have
0N/A * the specified number of bytes.
0N/A * <p>
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * @param 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
0N/A * @param x the new column value
0N/A * @param length the length of the stream
0N/A * @exception SQLException if the columnLabel is not valid;
0N/A * if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.6
0N/A */
0N/A void updateAsciiStream(String columnLabel,
0N/A java.io.InputStream x,
0N/A long length) throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column with a binary stream value, which will have
0N/A * the specified number of bytes.
0N/A * <p>
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * @param 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
0N/A * @param x the new column value
0N/A * @param length the length of the stream
0N/A * @exception SQLException if the columnLabel is not valid;
0N/A * if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.6
0N/A */
0N/A void updateBinaryStream(String columnLabel,
0N/A java.io.InputStream x,
0N/A long length) throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column with a character stream value, which will have
0N/A * the specified number of bytes.
0N/A * <p>
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * @param 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
0N/A * @param reader the <code>java.io.Reader</code> object containing
0N/A * the new column value
0N/A * @param length the length of the stream
0N/A * @exception SQLException if the columnLabel is not valid;
0N/A * if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.6
0N/A */
0N/A void updateCharacterStream(String columnLabel,
0N/A java.io.Reader reader,
0N/A long length) throws SQLException;
0N/A /**
0N/A * Updates the designated column using the given input stream, which
0N/A * will have the specified number of bytes.
0N/A *
0N/A * <p>
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * @param columnIndex the first column is 1, the second is 2, ...
0N/A * @param inputStream An object that contains the data to set the parameter
0N/A * value to.
0N/A * @param length the number of bytes in the parameter data.
0N/A * @exception SQLException if the columnIndex is not valid;
0N/A * if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.6
0N/A */
0N/A void updateBlob(int columnIndex, InputStream inputStream, long length) throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column using the given input stream, which
0N/A * will have the specified number of bytes.
0N/A *
0N/A * <p>
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * @param 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
0N/A * @param inputStream An object that contains the data to set the parameter
0N/A * value to.
0N/A * @param length the number of bytes in the parameter data.
0N/A * @exception SQLException if the columnLabel is not valid;
0N/A * if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.6
0N/A */
0N/A void updateBlob(String columnLabel, InputStream inputStream, long length) throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column using the given <code>Reader</code>
0N/A * object, which is the given number of characters long.
0N/A * When a very large UNICODE value is input to a <code>LONGVARCHAR</code>
0N/A * parameter, it may be more practical to send it via a
0N/A * <code>java.io.Reader</code> object. The JDBC driver will
0N/A * do any necessary conversion from UNICODE to the database char format.
0N/A *
0N/A * <p>
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * @param columnIndex the first column is 1, the second is 2, ...
0N/A * @param reader An object that contains the data to set the parameter value to.
0N/A * @param length the number of characters in the parameter data.
0N/A * @exception SQLException if the columnIndex is not valid;
0N/A * if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.6
0N/A */
0N/A void updateClob(int columnIndex, Reader reader, long length) throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column using the given <code>Reader</code>
0N/A * object, which is the given number of characters long.
0N/A * When a very large UNICODE value is input to a <code>LONGVARCHAR</code>
0N/A * parameter, it may be more practical to send it via a
0N/A * <code>java.io.Reader</code> object. The JDBC driver will
0N/A * do any necessary conversion from UNICODE to the database char format.
0N/A *
0N/A * <p>
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * @param 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
0N/A * @param reader An object that contains the data to set the parameter value to.
0N/A * @param length the number of characters in the parameter data.
0N/A * @exception SQLException if the columnLabel is not valid;
0N/A * if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.6
0N/A */
0N/A void updateClob(String columnLabel, Reader reader, long length) throws SQLException;
0N/A /**
0N/A * Updates the designated column using the given <code>Reader</code>
0N/A * object, which is the given number of characters long.
0N/A * When a very large UNICODE value is input to a <code>LONGVARCHAR</code>
0N/A * parameter, it may be more practical to send it via a
0N/A * <code>java.io.Reader</code> object. The JDBC driver will
0N/A * do any necessary conversion from UNICODE to the database char format.
0N/A *
0N/A * <p>
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * @param columnIndex the first column is 1, the second 2, ...
0N/A * @param reader An object that contains the data to set the parameter value to.
0N/A * @param length the number of characters in the parameter data.
0N/A * @throws SQLException if the columnIndex is not valid;
0N/A * if the driver does not support national
0N/A * character sets; if the driver can detect that a data conversion
0N/A * error could occur; this method is called on a closed result set,
0N/A * if a database access error occurs or
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.6
0N/A */
0N/A void updateNClob(int columnIndex, Reader reader, long length) throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column using the given <code>Reader</code>
0N/A * object, which is the given number of characters long.
0N/A * When a very large UNICODE value is input to a <code>LONGVARCHAR</code>
0N/A * parameter, it may be more practical to send it via a
0N/A * <code>java.io.Reader</code> object. The JDBC driver will
0N/A * do any necessary conversion from UNICODE to the database char format.
0N/A *
0N/A * <p>
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * @param 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
0N/A * @param reader An object that contains the data to set the parameter value to.
0N/A * @param length the number of characters in the parameter data.
0N/A * @throws SQLException if the columnLabel is not valid;
0N/A * if the driver does not support national
0N/A * character sets; if the driver can detect that a data conversion
0N/A * error could occur; this method is called on a closed result set;
0N/A * if a database access error occurs or
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.6
0N/A */
0N/A void updateNClob(String columnLabel, Reader reader, long length) throws SQLException;
0N/A
0N/A //---
0N/A
0N/A /**
0N/A * Updates the designated column with a character stream value.
0N/A * The data will be read from the stream
0N/A * as needed until end-of-stream is reached. The
0N/A * driver does the necessary conversion from Java character format to
0N/A * the national character set in the database.
0N/A * It is intended for use when
0N/A * updating <code>NCHAR</code>,<code>NVARCHAR</code>
0N/A * and <code>LONGNVARCHAR</code> columns.
0N/A * <p>
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * <P><B>Note:</B> Consult your JDBC driver documentation to determine if
0N/A * it might be more efficient to use a version of
0N/A * <code>updateNCharacterStream</code> which takes a length parameter.
0N/A *
0N/A * @param columnIndex the first column is 1, the second is 2, ...
0N/A * @param x the new column value
0N/A * @exception SQLException if the columnIndex is not valid;
0N/A * if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code> or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.6
0N/A */
0N/A void updateNCharacterStream(int columnIndex,
0N/A java.io.Reader x) throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column with a character stream value.
0N/A * The data will be read from the stream
0N/A * as needed until end-of-stream is reached. The
0N/A * driver does the necessary conversion from Java character format to
0N/A * the national character set in the database.
0N/A * It is intended for use when
0N/A * updating <code>NCHAR</code>,<code>NVARCHAR</code>
0N/A * and <code>LONGNVARCHAR</code> columns.
0N/A * <p>
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * <P><B>Note:</B> Consult your JDBC driver documentation to determine if
0N/A * it might be more efficient to use a version of
0N/A * <code>updateNCharacterStream</code> which takes a length parameter.
0N/A *
0N/A * @param 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
0N/A * @param reader the <code>java.io.Reader</code> object containing
0N/A * the new column value
0N/A * @exception SQLException if the columnLabel is not valid;
0N/A * if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code> or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.6
0N/A */
0N/A void updateNCharacterStream(String columnLabel,
0N/A java.io.Reader reader) throws SQLException;
0N/A /**
0N/A * Updates the designated column with an ascii stream value.
0N/A * The data will be read from the stream
0N/A * as needed until end-of-stream is reached.
0N/A * <p>
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * <P><B>Note:</B> Consult your JDBC driver documentation to determine if
0N/A * it might be more efficient to use a version of
0N/A * <code>updateAsciiStream</code> which takes a length parameter.
0N/A *
0N/A * @param columnIndex the first column is 1, the second is 2, ...
0N/A * @param x the new column value
0N/A * @exception SQLException if the columnIndex is not valid;
0N/A * if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.6
0N/A */
0N/A void updateAsciiStream(int columnIndex,
0N/A java.io.InputStream x) throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column with a binary stream value.
0N/A * The data will be read from the stream
0N/A * as needed until end-of-stream is reached.
0N/A * <p>
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * <P><B>Note:</B> Consult your JDBC driver documentation to determine if
0N/A * it might be more efficient to use a version of
0N/A * <code>updateBinaryStream</code> which takes a length parameter.
0N/A *
0N/A * @param columnIndex the first column is 1, the second is 2, ...
0N/A * @param x the new column value
0N/A * @exception SQLException if the columnIndex is not valid;
0N/A * if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.6
0N/A */
0N/A void updateBinaryStream(int columnIndex,
0N/A java.io.InputStream x) throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column with a character stream value.
0N/A * The data will be read from the stream
0N/A * as needed until end-of-stream is reached.
0N/A * <p>
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * <P><B>Note:</B> Consult your JDBC driver documentation to determine if
0N/A * it might be more efficient to use a version of
0N/A * <code>updateCharacterStream</code> which takes a length parameter.
0N/A *
0N/A * @param columnIndex the first column is 1, the second is 2, ...
0N/A * @param x the new column value
0N/A * @exception SQLException if the columnIndex is not valid;
0N/A * if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.6
0N/A */
0N/A void updateCharacterStream(int columnIndex,
0N/A java.io.Reader x) throws SQLException;
0N/A /**
0N/A * Updates the designated column with an ascii stream value.
0N/A * The data will be read from the stream
0N/A * as needed until end-of-stream is reached.
0N/A * <p>
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * <P><B>Note:</B> Consult your JDBC driver documentation to determine if
0N/A * it might be more efficient to use a version of
0N/A * <code>updateAsciiStream</code> which takes a length parameter.
0N/A *
0N/A * @param 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
0N/A * @param x the new column value
0N/A * @exception SQLException if the columnLabel is not valid;
0N/A * if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.6
0N/A */
0N/A void updateAsciiStream(String columnLabel,
0N/A java.io.InputStream x) throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column with a binary stream value.
0N/A * The data will be read from the stream
0N/A * as needed until end-of-stream is reached.
0N/A * <p>
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * <P><B>Note:</B> Consult your JDBC driver documentation to determine if
0N/A * it might be more efficient to use a version of
0N/A * <code>updateBinaryStream</code> which takes a length parameter.
0N/A *
0N/A * @param 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
0N/A * @param x the new column value
0N/A * @exception SQLException if the columnLabel is not valid;
0N/A * if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.6
0N/A */
0N/A void updateBinaryStream(String columnLabel,
0N/A java.io.InputStream x) throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column with a character stream value.
0N/A * The data will be read from the stream
0N/A * as needed until end-of-stream is reached.
0N/A * <p>
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * <P><B>Note:</B> Consult your JDBC driver documentation to determine if
0N/A * it might be more efficient to use a version of
0N/A * <code>updateCharacterStream</code> which takes a length parameter.
0N/A *
0N/A * @param 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
0N/A * @param reader the <code>java.io.Reader</code> object containing
0N/A * the new column value
0N/A * @exception SQLException if the columnLabel is not valid; if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.6
0N/A */
0N/A void updateCharacterStream(String columnLabel,
0N/A java.io.Reader reader) throws SQLException;
0N/A /**
0N/A * Updates the designated column using the given input stream. The data will be read from the stream
0N/A * as needed until end-of-stream is reached.
0N/A * <p>
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * <P><B>Note:</B> Consult your JDBC driver documentation to determine if
0N/A * it might be more efficient to use a version of
0N/A * <code>updateBlob</code> which takes a length parameter.
0N/A *
0N/A * @param columnIndex the first column is 1, the second is 2, ...
0N/A * @param inputStream An object that contains the data to set the parameter
0N/A * value to.
0N/A * @exception SQLException if the columnIndex is not valid; if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.6
0N/A */
0N/A void updateBlob(int columnIndex, InputStream inputStream) throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column using the given input stream. The data will be read from the stream
0N/A * as needed until end-of-stream is reached.
0N/A * <p>
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * <P><B>Note:</B> Consult your JDBC driver documentation to determine if
0N/A * it might be more efficient to use a version of
0N/A * <code>updateBlob</code> which takes a length parameter.
0N/A *
0N/A * @param 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
0N/A * @param inputStream An object that contains the data to set the parameter
0N/A * value to.
0N/A * @exception SQLException if the columnLabel is not valid; if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.6
0N/A */
0N/A void updateBlob(String columnLabel, InputStream inputStream) throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column using the given <code>Reader</code>
0N/A * object.
0N/A * The data will be read from the stream
0N/A * as needed until end-of-stream is reached. The JDBC driver will
0N/A * do any necessary conversion from UNICODE to the database char format.
0N/A *
0N/A * <p>
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * <P><B>Note:</B> Consult your JDBC driver documentation to determine if
0N/A * it might be more efficient to use a version of
0N/A * <code>updateClob</code> which takes a length parameter.
0N/A *
0N/A * @param columnIndex the first column is 1, the second is 2, ...
0N/A * @param reader An object that contains the data to set the parameter value to.
0N/A * @exception SQLException if the columnIndex is not valid;
0N/A * if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.6
0N/A */
0N/A void updateClob(int columnIndex, Reader reader) throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column using the given <code>Reader</code>
0N/A * object.
0N/A * The data will be read from the stream
0N/A * as needed until end-of-stream is reached. The JDBC driver will
0N/A * do any necessary conversion from UNICODE to the database char format.
0N/A *
0N/A * <p>
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * <P><B>Note:</B> Consult your JDBC driver documentation to determine if
0N/A * it might be more efficient to use a version of
0N/A * <code>updateClob</code> which takes a length parameter.
0N/A *
0N/A * @param 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
0N/A * @param reader An object that contains the data to set the parameter value to.
0N/A * @exception SQLException if the columnLabel is not valid; if a database access error occurs;
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * or this method is called on a closed result set
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.6
0N/A */
0N/A void updateClob(String columnLabel, Reader reader) throws SQLException;
0N/A /**
0N/A * Updates the designated column using the given <code>Reader</code>
0N/A *
0N/A * The data will be read from the stream
0N/A * as needed until end-of-stream is reached. The JDBC driver will
0N/A * do any necessary conversion from UNICODE to the database char format.
0N/A *
0N/A * <p>
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * <P><B>Note:</B> Consult your JDBC driver documentation to determine if
0N/A * it might be more efficient to use a version of
0N/A * <code>updateNClob</code> which takes a length parameter.
0N/A *
0N/A * @param columnIndex the first column is 1, the second 2, ...
0N/A * @param reader An object that contains the data to set the parameter value to.
0N/A * @throws SQLException if the columnIndex is not valid;
0N/A * if the driver does not support national
0N/A * character sets; if the driver can detect that a data conversion
0N/A * error could occur; this method is called on a closed result set,
0N/A * if a database access error occurs or
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.6
0N/A */
0N/A void updateNClob(int columnIndex, Reader reader) throws SQLException;
0N/A
0N/A /**
0N/A * Updates the designated column using the given <code>Reader</code>
0N/A * object.
0N/A * The data will be read from the stream
0N/A * as needed until end-of-stream is reached. The JDBC driver will
0N/A * do any necessary conversion from UNICODE to the database char format.
0N/A *
0N/A * <p>
0N/A * The updater methods are used to update column values in the
0N/A * current row or the insert row. The updater methods do not
0N/A * update the underlying database; instead the <code>updateRow</code> or
0N/A * <code>insertRow</code> methods are called to update the database.
0N/A *
0N/A * <P><B>Note:</B> Consult your JDBC driver documentation to determine if
0N/A * it might be more efficient to use a version of
0N/A * <code>updateNClob</code> which takes a length parameter.
0N/A *
0N/A * @param 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
0N/A * @param reader An object that contains the data to set the parameter value to.
0N/A * @throws SQLException if the columnLabel is not valid; if the driver does not support national
0N/A * character sets; if the driver can detect that a data conversion
0N/A * error could occur; this method is called on a closed result set;
0N/A * if a database access error occurs or
0N/A * the result set concurrency is <code>CONCUR_READ_ONLY</code>
0N/A * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
0N/A * this method
0N/A * @since 1.6
0N/A */
0N/A void updateNClob(String columnLabel, Reader reader) throws SQLException;
0N/A
2751N/A //------------------------- JDBC 4.1 -----------------------------------
2751N/A
2751N/A
2751N/A /**
2751N/A *<p>Retrieves the value of the designated column in the current row
2751N/A * of this <code>ResultSet</code> object and will convert from the
2751N/A * SQL type of the column to the requested Java data type, if the
2751N/A * conversion is supported. If the conversion is not
2751N/A * supported or null is specified for the type, a
2751N/A * <code>SQLException</code> is thrown.
2751N/A *<p>
2751N/A * At a minimum, an implementation must support the conversions defined in
2751N/A * Appendix B, Table B-3 and conversion of appropriate user defined SQL
2751N/A * types to a Java type which implements {@code SQLData}, or {@code Struct}.
2751N/A * Additional conversions may be supported and are vendor defined.
2751N/A *
2751N/A * @param columnIndex the first column is 1, the second is 2, ...
2751N/A * @param type Class representing the Java data type to convert the designated
2751N/A * column to.
2751N/A * @return an instance of {@code type} holding the column value
2751N/A * @throws SQLException if conversion is not supported, type is null or
2751N/A * another error occurs. The getCause() method of the
2751N/A * exception may provide a more detailed exception, for example, if
2751N/A * a conversion error occurs
2751N/A * @throws SQLFeatureNotSupportedException if the JDBC driver does not support
2751N/A * this method
2751N/A * @since 1.7
2751N/A */
2751N/A public <T> T getObject(int columnIndex, Class<T> type) throws SQLException;
2751N/A
2751N/A
2751N/A /**
2751N/A *<p>Retrieves the value of the designated column in the current row
2751N/A * of this <code>ResultSet</code> object and will convert from the
2751N/A * SQL type of the column to the requested Java data type, if the
2751N/A * conversion is supported. If the conversion is not
2751N/A * supported or null is specified for the type, a
2751N/A * <code>SQLException</code> is thrown.
2751N/A *<p>
2751N/A * At a minimum, an implementation must support the conversions defined in
2751N/A * Appendix B, Table B-3 and conversion of appropriate user defined SQL
2751N/A * types to a Java type which implements {@code SQLData}, or {@code Struct}.
2751N/A * Additional conversions may be supported and are vendor defined.
2751N/A *
2751N/A * @param columnLabel the label for the column specified with the SQL AS clause.
2751N/A * If the SQL AS clause was not specified, then the label is the name
2751N/A * of the column
2751N/A * @param type Class representing the Java data type to convert the designated
2751N/A * column to.
2751N/A * @return an instance of {@code type} holding the column value
2751N/A * @throws SQLException if conversion is not supported, type is null or
2751N/A * another error occurs. The getCause() method of the
2751N/A * exception may provide a more detailed exception, for example, if
2751N/A * a conversion error occurs
2751N/A * @throws SQLFeatureNotSupportedException if the JDBC driver does not support
2751N/A * this method
2751N/A * @since 1.7
2751N/A */
2751N/A public <T> T getObject(String columnLabel, Class<T> type) throws SQLException;
2751N/A
0N/A}