jdk/src/share/classes/java/sql/ResultSet.java
author chegar
Tue, 12 May 2009 16:32:34 +0100
changeset 3450 2f08a8bb9b83
parent 2 90ce3da70b43
child 5506 202f599c92aa
permissions -rw-r--r--
6801071: Remote sites can compromise user privacy and possibly hijack web sessions Reviewed-by: jccollet, hawtin
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
 * Copyright 1996-2006 Sun Microsystems, Inc.  All Rights Reserved.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
 * published by the Free Software Foundation.  Sun designates this
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
 * by Sun in the LICENSE file that accompanied this code.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
 * CA 95054 USA or visit www.sun.com if you need additional information or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
 * have any questions.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
package java.sql;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
import java.math.BigDecimal;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
import java.util.Calendar;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
import java.io.Reader;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
import java.io.InputStream;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
 * A table of data representing a database result set, which
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
 * is usually generated by executing a statement that queries the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
 * <P>A <code>ResultSet</code> object  maintains a cursor pointing
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
 * to its current row of data.  Initially the cursor is positioned
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
 * before the first row. The <code>next</code> method moves the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
 * cursor to the next row, and because it returns <code>false</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
 * when there are no more rows in the <code>ResultSet</code> object,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
 * it can be used in a <code>while</code> loop to iterate through
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
 * the result set.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
 * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
 * A default <code>ResultSet</code> object is not updatable and
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
 * has a cursor that moves forward only.  Thus, you can
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
 * iterate through it only once and only from the first row to the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
 * last row. It is possible to
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
 * produce <code>ResultSet</code> objects that are scrollable and/or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
 * updatable.  The following code fragment, in which <code>con</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
 * is a valid <code>Connection</code> object, illustrates how to make
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
 * a result set that is scrollable and insensitive to updates by others, and
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
 * that is updatable. See <code>ResultSet</code> fields for other
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
 * options.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
 * <PRE>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
 *       Statement stmt = con.createStatement(
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
 *                                      ResultSet.TYPE_SCROLL_INSENSITIVE,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
 *                                      ResultSet.CONCUR_UPDATABLE);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
 *       ResultSet rs = stmt.executeQuery("SELECT a, b FROM TABLE2");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
 *       // rs will be scrollable, will not show changes made by others,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
 *       // and will be updatable
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
 * </PRE>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
 * The <code>ResultSet</code> interface provides
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
 * <i>getter</i> methods (<code>getBoolean</code>, <code>getLong</code>, and so on)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
 * for retrieving column values from the current row.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
 * Values can be retrieved using either the index number of the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
 * column or the name of the column.  In general, using the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
 * column index will be more efficient.  Columns are numbered from 1.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
 * For maximum portability, result set columns within each row should be
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
 * read in left-to-right order, and each column should be read only once.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
 * <P>For the getter methods, a JDBC driver attempts
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
 * to convert the underlying data to the Java type specified in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
 * getter method and returns a suitable Java value.  The JDBC specification
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
 * has a table showing the allowable mappings from SQL types to Java types
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
 * that can be used by the <code>ResultSet</code> getter methods.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
 * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
 * <P>Column names used as input to getter methods are case
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
 * insensitive.  When a getter method is called  with
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
 * a column name and several columns have the same name,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
 * the value of the first matching column will be returned.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
 * The column name option is
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
 * designed to be used when column names are used in the SQL
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
 * query that generated the result set.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
 * For columns that are NOT explicitly named in the query, it
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
 * is best to use column numbers. If column names are used, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
 * programmer should take care to guarantee that they uniquely refer to
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
 * the intended columns, which can be assured with the SQL <i>AS</i> clause.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
 * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
 * A set of updater methods were added to this interface
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
 * in the JDBC 2.0 API (Java<sup><font size=-2>TM</font></sup> 2 SDK,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
 * Standard Edition, version 1.2). The comments regarding parameters
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
 * to the getter methods also apply to parameters to the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
 * updater methods.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
 *<P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
 * The updater methods may be used in two ways:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
 * <ol>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
 * <LI>to update a column value in the current row.  In a scrollable
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
 *     <code>ResultSet</code> object, the cursor can be moved backwards
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
 *     and forwards, to an absolute position, or to a position
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
 *     relative to the current row.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
 *     The following code fragment updates the <code>NAME</code> column
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
 *     in the fifth row of the <code>ResultSet</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
 *     <code>rs</code> and then uses the method <code>updateRow</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
 *     to update the data source table from which <code>rs</code> was derived.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
 * <PRE>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
 *       rs.absolute(5); // moves the cursor to the fifth row of rs
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
 *       rs.updateString("NAME", "AINSWORTH"); // updates the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
 *          // <code>NAME</code> column of row 5 to be <code>AINSWORTH</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
 *       rs.updateRow(); // updates the row in the data source
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
 * </PRE>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
 * <LI>to insert column values into the insert row.  An updatable
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
 *     <code>ResultSet</code> object has a special row associated with
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
 *     it that serves as a staging area for building a row to be inserted.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
 *     The following code fragment moves the cursor to the insert row, builds
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
 *     a three-column row, and inserts it into <code>rs</code> and into
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
 *     the data source table using the method <code>insertRow</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
 * <PRE>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
 *       rs.moveToInsertRow(); // moves cursor to the insert row
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
 *       rs.updateString(1, "AINSWORTH"); // updates the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
 *          // first column of the insert row to be <code>AINSWORTH</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
 *       rs.updateInt(2,35); // updates the second column to be <code>35</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
 *       rs.updateBoolean(3, true); // updates the third column to <code>true</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
 *       rs.insertRow();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
 *       rs.moveToCurrentRow();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
 * </PRE>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
 * </ol>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
 * <P>A <code>ResultSet</code> object is automatically closed when the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
 * <code>Statement</code> object that
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
 * generated it is closed, re-executed, or used
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
 * to retrieve the next result from a sequence of multiple results.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
 * <P>The number, types and properties of a <code>ResultSet</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
 * object's columns are provided by the <code>ResulSetMetaData</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
 * object returned by the <code>ResultSet.getMetaData</code> method.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
 * @see Statement#executeQuery
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
 * @see Statement#getResultSet
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
 * @see ResultSetMetaData
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
public interface ResultSet extends Wrapper {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
     * Moves the cursor froward one row from its current position.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
     * A <code>ResultSet</code> cursor is initially positioned
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
     * before the first row; the first call to the method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
     * <code>next</code> makes the first row the current row; the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
     * second call makes the second row the current row, and so on.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
     * When a call to the <code>next</code> method returns <code>false</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
     * the cursor is positioned after the last row. Any
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
     * invocation of a <code>ResultSet</code> method which requires a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
     * current row will result in a <code>SQLException</code> being thrown.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
     *  If the result set type is <code>TYPE_FORWARD_ONLY</code>, it is vendor specified
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
     * whether their JDBC driver implementation will return <code>false</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
     *  throw an <code>SQLException</code> on a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
     * subsequent call to <code>next</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
     * <P>If an input stream is open for the current row, a call
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
     * to the method <code>next</code> will
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
     * implicitly close it. A <code>ResultSet</code> object's
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
     * warning chain is cleared when a new row is read.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
     * @return <code>true</code> if the new current row is valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
     * <code>false</code> if there are no more rows
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
     * @exception SQLException if a database access error occurs or this method is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
     *            called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
    boolean next() throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
     * Releases this <code>ResultSet</code> object's database and
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
     * JDBC resources immediately instead of waiting for
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
     * this to happen when it is automatically closed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
     * <P>The closing of a <code>ResultSet</code> object does <strong>not</strong> close the <code>Blob</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
     * <code>Clob</code> or <code>NClob</code> objects created by the <code>ResultSet</code>. <code>Blob</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
     * <code>Clob</code> or <code>NClob</code> objects remain valid for at least the duration of the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
     * transaction in which they are creataed, unless their <code>free</code> method is invoked.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
     *<p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
     * When a <code>ResultSet</code> is closed, any <code>ResultSetMetaData</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
     * instances that were created by calling the  <code>getMetaData</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
     * method remain accessible.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
     * <P><B>Note:</B> A <code>ResultSet</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
     * is automatically closed by the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
     * <code>Statement</code> object that generated it when
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
     * that <code>Statement</code> object is closed,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
     * re-executed, or is used to retrieve the next result from a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
     * sequence of multiple results.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
     *<p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
     * Calling the method <code>close</code> on a <code>ResultSet</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
     * object that is already closed is a no-op.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
     * @exception SQLException if a database access error occurs
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
    void close() throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
     * Reports whether
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
     * the last column read had a value of SQL <code>NULL</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
     * Note that you must first call one of the getter methods
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
     * on a column to try to read its value and then call
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
     * the method <code>wasNull</code> to see if the value read was
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
     * SQL <code>NULL</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
     * @return <code>true</code> if the last column value read was SQL
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
     *         <code>NULL</code> and <code>false</code> otherwise
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
     * @exception SQLException if a database access error occurs or this method is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
     *            called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
    boolean wasNull() throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
    // Methods for accessing results by column index
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
     * of this <code>ResultSet</code> object as
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
     * a <code>String</code> in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
     * @param columnIndex the first column is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
     * @return the column value; if the value is SQL <code>NULL</code>, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
     * value returned is <code>null</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
     * @exception SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
     * if a database access error occurs or this method is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
     *            called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
    String getString(int columnIndex) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
     * of this <code>ResultSet</code> object as
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
     * a <code>boolean</code> in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   245
     * <P>If the designated column has a datatype of CHAR or VARCHAR
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
     * and contains a "0" or has a datatype of BIT, TINYINT, SMALLINT, INTEGER or BIGINT
90ce3da70b43 Initial load
duke
parents:
diff changeset
   247
     * and contains  a 0, a value of <code>false</code> is returned.  If the designated column has a datatype
90ce3da70b43 Initial load
duke
parents:
diff changeset
   248
     * of CHAR or VARCHAR
90ce3da70b43 Initial load
duke
parents:
diff changeset
   249
     * and contains a "1" or has a datatype of BIT, TINYINT, SMALLINT, INTEGER or BIGINT
90ce3da70b43 Initial load
duke
parents:
diff changeset
   250
     * and contains  a 1, a value of <code>true</code> is returned.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   251
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   252
     * @param columnIndex the first column is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
   253
     * @return the column value; if the value is SQL <code>NULL</code>, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   254
     * value returned is <code>false</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   255
     * @exception SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   256
     * if a database access error occurs or this method is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   257
     *            called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
   258
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   259
    boolean getBoolean(int columnIndex) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   260
90ce3da70b43 Initial load
duke
parents:
diff changeset
   261
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   262
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
   263
     * of this <code>ResultSet</code> object as
90ce3da70b43 Initial load
duke
parents:
diff changeset
   264
     * a <code>byte</code> in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   265
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   266
     * @param columnIndex the first column is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
   267
     * @return the column value; if the value is SQL <code>NULL</code>, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   268
     * value returned is <code>0</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   269
     * @exception SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   270
     * if a database access error occurs or this method is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   271
     *            called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
   272
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   273
    byte getByte(int columnIndex) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   274
90ce3da70b43 Initial load
duke
parents:
diff changeset
   275
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   276
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
   277
     * of this <code>ResultSet</code> object as
90ce3da70b43 Initial load
duke
parents:
diff changeset
   278
     * a <code>short</code> in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   279
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   280
     * @param columnIndex the first column is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
   281
     * @return the column value; if the value is SQL <code>NULL</code>, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   282
     * value returned is <code>0</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   283
     * @exception SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   284
     * if a database access error occurs or this method is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   285
     *            called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
   286
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   287
    short getShort(int columnIndex) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   288
90ce3da70b43 Initial load
duke
parents:
diff changeset
   289
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   290
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
   291
     * of this <code>ResultSet</code> object as
90ce3da70b43 Initial load
duke
parents:
diff changeset
   292
     * an <code>int</code> in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   293
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   294
     * @param columnIndex the first column is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
   295
     * @return the column value; if the value is SQL <code>NULL</code>, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   296
     * value returned is <code>0</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   297
     * @exception SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   298
     * if a database access error occurs or this method is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   299
     *            called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
   300
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   301
    int getInt(int columnIndex) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   302
90ce3da70b43 Initial load
duke
parents:
diff changeset
   303
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   304
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
   305
     * of this <code>ResultSet</code> object as
90ce3da70b43 Initial load
duke
parents:
diff changeset
   306
     * a <code>long</code> in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   307
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   308
     * @param columnIndex the first column is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
   309
     * @return the column value; if the value is SQL <code>NULL</code>, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   310
     * value returned is <code>0</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   311
     * @exception SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   312
     * if a database access error occurs or this method is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   313
     *            called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
   314
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   315
    long getLong(int columnIndex) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   316
90ce3da70b43 Initial load
duke
parents:
diff changeset
   317
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   318
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
   319
     * of this <code>ResultSet</code> object as
90ce3da70b43 Initial load
duke
parents:
diff changeset
   320
     * a <code>float</code> in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   321
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   322
     * @param columnIndex the first column is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
   323
     * @return the column value; if the value is SQL <code>NULL</code>, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   324
     * value returned is <code>0</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   325
     * @exception SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   326
     * if a database access error occurs or this method is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   327
     *            called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
   328
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   329
    float getFloat(int columnIndex) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   330
90ce3da70b43 Initial load
duke
parents:
diff changeset
   331
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   332
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
   333
     * of this <code>ResultSet</code> object as
90ce3da70b43 Initial load
duke
parents:
diff changeset
   334
     * a <code>double</code> in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   335
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   336
     * @param columnIndex the first column is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
   337
     * @return the column value; if the value is SQL <code>NULL</code>, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   338
     * value returned is <code>0</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   339
     * @exception SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   340
     * if a database access error occurs or this method is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   341
     *            called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
   342
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   343
    double getDouble(int columnIndex) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   344
90ce3da70b43 Initial load
duke
parents:
diff changeset
   345
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   346
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
   347
     * of this <code>ResultSet</code> object as
90ce3da70b43 Initial load
duke
parents:
diff changeset
   348
     * a <code>java.sql.BigDecimal</code> in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   349
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   350
     * @param columnIndex the first column is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
   351
     * @param scale the number of digits to the right of the decimal point
90ce3da70b43 Initial load
duke
parents:
diff changeset
   352
     * @return the column value; if the value is SQL <code>NULL</code>, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   353
     * value returned is <code>null</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   354
     * @exception SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   355
     * if a database access error occurs or this method is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   356
     *            called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
   357
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
   358
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   359
     * @deprecated
90ce3da70b43 Initial load
duke
parents:
diff changeset
   360
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   361
    BigDecimal getBigDecimal(int columnIndex, int scale) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   362
90ce3da70b43 Initial load
duke
parents:
diff changeset
   363
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   364
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
   365
     * of this <code>ResultSet</code> object as
90ce3da70b43 Initial load
duke
parents:
diff changeset
   366
     * a <code>byte</code> array in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   367
     * The bytes represent the raw values returned by the driver.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   368
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   369
     * @param columnIndex the first column is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
   370
     * @return the column value; if the value is SQL <code>NULL</code>, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   371
     * value returned is <code>null</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   372
     * @exception SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   373
     * if a database access error occurs or this method is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   374
     *            called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
   375
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   376
    byte[] getBytes(int columnIndex) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   377
90ce3da70b43 Initial load
duke
parents:
diff changeset
   378
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   379
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
   380
     * of this <code>ResultSet</code> object as
90ce3da70b43 Initial load
duke
parents:
diff changeset
   381
     * a <code>java.sql.Date</code> object in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   382
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   383
     * @param columnIndex the first column is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
   384
     * @return the column value; if the value is SQL <code>NULL</code>, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   385
     * value returned is <code>null</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   386
     * @exception SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   387
     * if a database access error occurs or this method is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   388
     *            called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
   389
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   390
    java.sql.Date getDate(int columnIndex) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   391
90ce3da70b43 Initial load
duke
parents:
diff changeset
   392
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   393
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
   394
     * of this <code>ResultSet</code> object as
90ce3da70b43 Initial load
duke
parents:
diff changeset
   395
     * a <code>java.sql.Time</code> object in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   396
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   397
     * @param columnIndex the first column is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
   398
     * @return the column value; if the value is SQL <code>NULL</code>, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   399
     * value returned is <code>null</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   400
     * @exception SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   401
     * if a database access error occurs or this method is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   402
     *            called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
   403
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   404
    java.sql.Time getTime(int columnIndex) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   405
90ce3da70b43 Initial load
duke
parents:
diff changeset
   406
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   407
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
   408
     * of this <code>ResultSet</code> object as
90ce3da70b43 Initial load
duke
parents:
diff changeset
   409
     * a <code>java.sql.Timestamp</code> object in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   410
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   411
     * @param columnIndex the first column is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
   412
     * @return the column value; if the value is SQL <code>NULL</code>, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   413
     * value returned is <code>null</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   414
     * @exception SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   415
     * if a database access error occurs or this method is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   416
     *            called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
   417
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   418
    java.sql.Timestamp getTimestamp(int columnIndex) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   419
90ce3da70b43 Initial load
duke
parents:
diff changeset
   420
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   421
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
   422
     * of this <code>ResultSet</code> object as
90ce3da70b43 Initial load
duke
parents:
diff changeset
   423
     * a stream of ASCII characters. The value can then be read in chunks from the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   424
     * stream. This method is particularly
90ce3da70b43 Initial load
duke
parents:
diff changeset
   425
     * suitable for retrieving large <char>LONGVARCHAR</char> values.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   426
     * The JDBC driver will
90ce3da70b43 Initial load
duke
parents:
diff changeset
   427
     * do any necessary conversion from the database format into ASCII.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   428
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   429
     * <P><B>Note:</B> All the data in the returned stream must be
90ce3da70b43 Initial load
duke
parents:
diff changeset
   430
     * read prior to getting the value of any other column. The next
90ce3da70b43 Initial load
duke
parents:
diff changeset
   431
     * call to a getter method implicitly closes the stream.  Also, a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   432
     * stream may return <code>0</code> when the method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   433
     * <code>InputStream.available</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   434
     * is called whether there is data available or not.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   435
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   436
     * @param columnIndex the first column is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
   437
     * @return a Java input stream that delivers the database column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   438
     * as a stream of one-byte ASCII characters;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   439
     * if the value is SQL <code>NULL</code>, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   440
     * value returned is <code>null</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   441
     * @exception SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   442
     * if a database access error occurs or this method is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   443
     *            called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
   444
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   445
    java.io.InputStream getAsciiStream(int columnIndex) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   446
90ce3da70b43 Initial load
duke
parents:
diff changeset
   447
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   448
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
   449
     * of this <code>ResultSet</code> object as
90ce3da70b43 Initial load
duke
parents:
diff changeset
   450
     * as a stream of two-byte 3 characters. The first byte is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   451
     * the high byte; the second byte is the low byte.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   452
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   453
     * The value can then be read in chunks from the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   454
     * stream. This method is particularly
90ce3da70b43 Initial load
duke
parents:
diff changeset
   455
     * suitable for retrieving large <code>LONGVARCHAR</code>values.  The
90ce3da70b43 Initial load
duke
parents:
diff changeset
   456
     * JDBC driver will do any necessary conversion from the database
90ce3da70b43 Initial load
duke
parents:
diff changeset
   457
     * format into Unicode.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   458
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   459
     * <P><B>Note:</B> All the data in the returned stream must be
90ce3da70b43 Initial load
duke
parents:
diff changeset
   460
     * read prior to getting the value of any other column. The next
90ce3da70b43 Initial load
duke
parents:
diff changeset
   461
     * call to a getter method implicitly closes the stream.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   462
     * Also, a stream may return <code>0</code> when the method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   463
     * <code>InputStream.available</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   464
     * is called, whether there is data available or not.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   465
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   466
     * @param columnIndex the first column is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
   467
     * @return a Java input stream that delivers the database column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   468
     *         as a stream of two-byte Unicode characters;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   469
     *         if the value is SQL <code>NULL</code>, the value returned is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   470
     *         <code>null</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   471
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   472
     * @exception SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   473
     * if a database access error occurs or this method is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   474
     *            called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
   475
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
   476
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   477
     * @deprecated use <code>getCharacterStream</code> in place of
90ce3da70b43 Initial load
duke
parents:
diff changeset
   478
     *              <code>getUnicodeStream</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   479
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   480
    java.io.InputStream getUnicodeStream(int columnIndex) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   481
90ce3da70b43 Initial load
duke
parents:
diff changeset
   482
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   483
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
   484
     * of this <code>ResultSet</code> object as a  stream of
90ce3da70b43 Initial load
duke
parents:
diff changeset
   485
     * uninterpreted bytes. The value can then be read in chunks from the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   486
     * stream. This method is particularly
90ce3da70b43 Initial load
duke
parents:
diff changeset
   487
     * suitable for retrieving large <code>LONGVARBINARY</code> values.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   488
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   489
     * <P><B>Note:</B> All the data in the returned stream must be
90ce3da70b43 Initial load
duke
parents:
diff changeset
   490
     * read prior to getting the value of any other column. The next
90ce3da70b43 Initial load
duke
parents:
diff changeset
   491
     * call to a getter method implicitly closes the stream.  Also, a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   492
     * stream may return <code>0</code> when the method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   493
     * <code>InputStream.available</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   494
     * is called whether there is data available or not.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   495
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   496
     * @param columnIndex the first column is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
   497
     * @return a Java input stream that delivers the database column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   498
     *         as a stream of uninterpreted bytes;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   499
     *         if the value is SQL <code>NULL</code>, the value returned is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   500
     *         <code>null</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   501
     * @exception SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   502
     * if a database access error occurs or this method is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   503
     *            called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
   504
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   505
    java.io.InputStream getBinaryStream(int columnIndex)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   506
        throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   507
90ce3da70b43 Initial load
duke
parents:
diff changeset
   508
90ce3da70b43 Initial load
duke
parents:
diff changeset
   509
    // Methods for accessing results by column label
90ce3da70b43 Initial load
duke
parents:
diff changeset
   510
90ce3da70b43 Initial load
duke
parents:
diff changeset
   511
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   512
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
   513
     * of this <code>ResultSet</code> object as
90ce3da70b43 Initial load
duke
parents:
diff changeset
   514
     * a <code>String</code> in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   515
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   516
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
   517
     * @return the column value; if the value is SQL <code>NULL</code>, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   518
     * value returned is <code>null</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   519
     * @exception SQLException if the columnLabel is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   520
     * if a database access error occurs or this method is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   521
     *            called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
   522
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   523
    String getString(String columnLabel) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   524
90ce3da70b43 Initial load
duke
parents:
diff changeset
   525
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   526
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
   527
     * of this <code>ResultSet</code> object as
90ce3da70b43 Initial load
duke
parents:
diff changeset
   528
     * a <code>boolean</code> in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   529
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   530
     * <P>If the designated column has a datatype of CHAR or VARCHAR
90ce3da70b43 Initial load
duke
parents:
diff changeset
   531
     * and contains a "0" or has a datatype of BIT, TINYINT, SMALLINT, INTEGER or BIGINT
90ce3da70b43 Initial load
duke
parents:
diff changeset
   532
     * and contains  a 0, a value of <code>false</code> is returned.  If the designated column has a datatype
90ce3da70b43 Initial load
duke
parents:
diff changeset
   533
     * of CHAR or VARCHAR
90ce3da70b43 Initial load
duke
parents:
diff changeset
   534
     * and contains a "1" or has a datatype of BIT, TINYINT, SMALLINT, INTEGER or BIGINT
90ce3da70b43 Initial load
duke
parents:
diff changeset
   535
     * and contains  a 1, a value of <code>true</code> is returned.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   536
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   537
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
   538
     * @return the column value; if the value is SQL <code>NULL</code>, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   539
     * value returned is <code>false</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   540
     * @exception SQLException if the columnLabel is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   541
     * if a database access error occurs or this method is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   542
     *            called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
   543
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   544
    boolean getBoolean(String columnLabel) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   545
90ce3da70b43 Initial load
duke
parents:
diff changeset
   546
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   547
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
   548
     * of this <code>ResultSet</code> object as
90ce3da70b43 Initial load
duke
parents:
diff changeset
   549
     * a <code>byte</code> in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   550
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   551
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
   552
     * @return the column value; if the value is SQL <code>NULL</code>, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   553
     * value returned is <code>0</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   554
     * @exception SQLException if the columnLabel is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   555
     * if a database access error occurs or this method is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   556
     *            called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
   557
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   558
    byte getByte(String columnLabel) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   559
90ce3da70b43 Initial load
duke
parents:
diff changeset
   560
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   561
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
   562
     * of this <code>ResultSet</code> object as
90ce3da70b43 Initial load
duke
parents:
diff changeset
   563
     * a <code>short</code> in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   564
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   565
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
   566
     * @return the column value; if the value is SQL <code>NULL</code>, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   567
     * value returned is <code>0</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   568
     * @exception SQLException if the columnLabel is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   569
     * if a database access error occurs or this method is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   570
     *            called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
   571
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   572
    short getShort(String columnLabel) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   573
90ce3da70b43 Initial load
duke
parents:
diff changeset
   574
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   575
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
   576
     * of this <code>ResultSet</code> object as
90ce3da70b43 Initial load
duke
parents:
diff changeset
   577
     * an <code>int</code> in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   578
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   579
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
   580
     * @return the column value; if the value is SQL <code>NULL</code>, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   581
     * value returned is <code>0</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   582
     * @exception SQLException if the columnLabel is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   583
     * if a database access error occurs or this method is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   584
     *            called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
   585
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   586
    int getInt(String columnLabel) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   587
90ce3da70b43 Initial load
duke
parents:
diff changeset
   588
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   589
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
   590
     * of this <code>ResultSet</code> object as
90ce3da70b43 Initial load
duke
parents:
diff changeset
   591
     * a <code>long</code> in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   592
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   593
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
   594
     * @return the column value; if the value is SQL <code>NULL</code>, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   595
     * value returned is <code>0</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   596
     * @exception SQLException if the columnLabel is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   597
     * if a database access error occurs or this method is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   598
     *            called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
   599
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   600
    long getLong(String columnLabel) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   601
90ce3da70b43 Initial load
duke
parents:
diff changeset
   602
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   603
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
   604
     * of this <code>ResultSet</code> object as
90ce3da70b43 Initial load
duke
parents:
diff changeset
   605
     * a <code>float</code> in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   606
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   607
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
   608
     * @return the column value; if the value is SQL <code>NULL</code>, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   609
     * value returned is <code>0</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   610
     * @exception SQLException if the columnLabel is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   611
     * if a database access error occurs or this method is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   612
     *            called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
   613
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   614
    float getFloat(String columnLabel) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   615
90ce3da70b43 Initial load
duke
parents:
diff changeset
   616
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   617
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
   618
     * of this <code>ResultSet</code> object as
90ce3da70b43 Initial load
duke
parents:
diff changeset
   619
     * a <code>double</code> in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   620
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   621
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
   622
     * @return the column value; if the value is SQL <code>NULL</code>, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   623
     * value returned is <code>0</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   624
     * @exception SQLException if the columnLabel is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   625
     * if a database access error occurs or this method is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   626
     *            called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
   627
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   628
    double getDouble(String columnLabel) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   629
90ce3da70b43 Initial load
duke
parents:
diff changeset
   630
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   631
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
   632
     * of this <code>ResultSet</code> object as
90ce3da70b43 Initial load
duke
parents:
diff changeset
   633
     * a <code>java.math.BigDecimal</code> in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   634
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   635
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
   636
     * @param scale the number of digits to the right of the decimal point
90ce3da70b43 Initial load
duke
parents:
diff changeset
   637
     * @return the column value; if the value is SQL <code>NULL</code>, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   638
     * value returned is <code>null</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   639
     * @exception SQLException if the columnLabel is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   640
     * if a database access error occurs or this method is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   641
     *            called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
   642
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
   643
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   644
     * @deprecated
90ce3da70b43 Initial load
duke
parents:
diff changeset
   645
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   646
    BigDecimal getBigDecimal(String columnLabel, int scale) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   647
90ce3da70b43 Initial load
duke
parents:
diff changeset
   648
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   649
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
   650
     * of this <code>ResultSet</code> object as
90ce3da70b43 Initial load
duke
parents:
diff changeset
   651
     * a <code>byte</code> array in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   652
     * The bytes represent the raw values returned by the driver.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   653
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   654
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
   655
     * @return the column value; if the value is SQL <code>NULL</code>, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   656
     * value returned is <code>null</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   657
     * @exception SQLException if the columnLabel is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   658
     * if a database access error occurs or this method is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   659
     *            called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
   660
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   661
    byte[] getBytes(String columnLabel) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   662
90ce3da70b43 Initial load
duke
parents:
diff changeset
   663
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   664
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
   665
     * of this <code>ResultSet</code> object as
90ce3da70b43 Initial load
duke
parents:
diff changeset
   666
     * a <code>java.sql.Date</code> object in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   667
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   668
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
   669
     * @return the column value; if the value is SQL <code>NULL</code>, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   670
     * value returned is <code>null</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   671
     * @exception SQLException if the columnLabel is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   672
     * if a database access error occurs or this method is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   673
     *            called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
   674
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   675
    java.sql.Date getDate(String columnLabel) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   676
90ce3da70b43 Initial load
duke
parents:
diff changeset
   677
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   678
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
   679
     * of this <code>ResultSet</code> object as
90ce3da70b43 Initial load
duke
parents:
diff changeset
   680
     * a <code>java.sql.Time</code> object in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   681
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   682
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
   683
     * @return the column value;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   684
     * if the value is SQL <code>NULL</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   685
     * the value returned is <code>null</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   686
     * @exception SQLException if the columnLabel is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   687
     * if a database access error occurs or this method is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   688
     *            called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
   689
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   690
    java.sql.Time getTime(String columnLabel) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   691
90ce3da70b43 Initial load
duke
parents:
diff changeset
   692
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   693
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
   694
     * of this <code>ResultSet</code> object as
90ce3da70b43 Initial load
duke
parents:
diff changeset
   695
     * a <code>java.sql.Timestamp</code> object in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   696
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   697
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
   698
     * @return the column value; if the value is SQL <code>NULL</code>, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   699
     * value returned is <code>null</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   700
     * @exception SQLException if the columnLabel is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   701
     * if a database access error occurs or this method is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   702
     *            called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
   703
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   704
    java.sql.Timestamp getTimestamp(String columnLabel) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   705
90ce3da70b43 Initial load
duke
parents:
diff changeset
   706
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   707
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
   708
     * of this <code>ResultSet</code> object as a stream of
90ce3da70b43 Initial load
duke
parents:
diff changeset
   709
     * ASCII characters. The value can then be read in chunks from the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   710
     * stream. This method is particularly
90ce3da70b43 Initial load
duke
parents:
diff changeset
   711
     * suitable for retrieving large <code>LONGVARCHAR</code> values.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   712
     * The JDBC driver will
90ce3da70b43 Initial load
duke
parents:
diff changeset
   713
     * do any necessary conversion from the database format into ASCII.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   714
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   715
     * <P><B>Note:</B> All the data in the returned stream must be
90ce3da70b43 Initial load
duke
parents:
diff changeset
   716
     * read prior to getting the value of any other column. The next
90ce3da70b43 Initial load
duke
parents:
diff changeset
   717
     * call to a getter method implicitly closes the stream. Also, a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   718
     * stream may return <code>0</code> when the method <code>available</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   719
     * is called whether there is data available or not.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   720
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   721
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
   722
     * @return a Java input stream that delivers the database column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   723
     * as a stream of one-byte ASCII characters.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   724
     * If the value is SQL <code>NULL</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   725
     * the value returned is <code>null</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   726
     * @exception SQLException if the columnLabel is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   727
     * if a database access error occurs or this method is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   728
     *            called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
   729
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   730
    java.io.InputStream getAsciiStream(String columnLabel) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   731
90ce3da70b43 Initial load
duke
parents:
diff changeset
   732
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   733
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
   734
     * of this <code>ResultSet</code> object as a stream of two-byte
90ce3da70b43 Initial load
duke
parents:
diff changeset
   735
     * Unicode characters. The first byte is the high byte; the second
90ce3da70b43 Initial load
duke
parents:
diff changeset
   736
     * byte is the low byte.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   737
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   738
     * The value can then be read in chunks from the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   739
     * stream. This method is particularly
90ce3da70b43 Initial load
duke
parents:
diff changeset
   740
     * suitable for retrieving large <code>LONGVARCHAR</code> values.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   741
     * The JDBC technology-enabled driver will
90ce3da70b43 Initial load
duke
parents:
diff changeset
   742
     * do any necessary conversion from the database format into Unicode.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   743
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   744
     * <P><B>Note:</B> All the data in the returned stream must be
90ce3da70b43 Initial load
duke
parents:
diff changeset
   745
     * read prior to getting the value of any other column. The next
90ce3da70b43 Initial load
duke
parents:
diff changeset
   746
     * call to a getter method implicitly closes the stream.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   747
     * Also, a stream may return <code>0</code> when the method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   748
     * <code>InputStream.available</code> is called, whether there
90ce3da70b43 Initial load
duke
parents:
diff changeset
   749
     * is data available or not.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   750
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   751
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
   752
     * @return a Java input stream that delivers the database column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   753
     *         as a stream of two-byte Unicode characters.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   754
     *         If the value is SQL <code>NULL</code>, the value returned
90ce3da70b43 Initial load
duke
parents:
diff changeset
   755
     *         is <code>null</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   756
     * @exception SQLException if the columnLabel is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   757
     * if a database access error occurs or this method is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   758
     *            called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
   759
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
   760
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   761
     * @deprecated use <code>getCharacterStream</code> instead
90ce3da70b43 Initial load
duke
parents:
diff changeset
   762
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   763
    java.io.InputStream getUnicodeStream(String columnLabel) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   764
90ce3da70b43 Initial load
duke
parents:
diff changeset
   765
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   766
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
   767
     * of this <code>ResultSet</code> object as a stream of uninterpreted
90ce3da70b43 Initial load
duke
parents:
diff changeset
   768
     * <code>byte</code>s.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   769
     * The value can then be read in chunks from the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   770
     * stream. This method is particularly
90ce3da70b43 Initial load
duke
parents:
diff changeset
   771
     * suitable for retrieving large <code>LONGVARBINARY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   772
     * values.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   773
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   774
     * <P><B>Note:</B> All the data in the returned stream must be
90ce3da70b43 Initial load
duke
parents:
diff changeset
   775
     * read prior to getting the value of any other column. The next
90ce3da70b43 Initial load
duke
parents:
diff changeset
   776
     * call to a getter method implicitly closes the stream. Also, a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   777
     * stream may return <code>0</code> when the method <code>available</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   778
     * is called whether there is data available or not.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   779
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   780
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
   781
     * @return a Java input stream that delivers the database column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   782
     * as a stream of uninterpreted bytes;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   783
     * if the value is SQL <code>NULL</code>, the result is <code>null</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   784
     * @exception SQLException if the columnLabel is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   785
     * if a database access error occurs or this method is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   786
     *            called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
   787
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   788
    java.io.InputStream getBinaryStream(String columnLabel)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   789
        throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   790
90ce3da70b43 Initial load
duke
parents:
diff changeset
   791
90ce3da70b43 Initial load
duke
parents:
diff changeset
   792
    // Advanced features:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   793
90ce3da70b43 Initial load
duke
parents:
diff changeset
   794
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   795
     * Retrieves the first warning reported by calls on this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   796
     * <code>ResultSet</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   797
     * Subsequent warnings on this <code>ResultSet</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
   798
     * will be chained to the <code>SQLWarning</code> object that
90ce3da70b43 Initial load
duke
parents:
diff changeset
   799
     * this method returns.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   800
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   801
     * <P>The warning chain is automatically cleared each time a new
90ce3da70b43 Initial load
duke
parents:
diff changeset
   802
     * row is read.  This method may not be called on a <code>ResultSet</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   803
     * object that has been closed; doing so will cause an
90ce3da70b43 Initial load
duke
parents:
diff changeset
   804
     * <code>SQLException</code> to be thrown.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   805
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   806
     * <B>Note:</B> This warning chain only covers warnings caused
90ce3da70b43 Initial load
duke
parents:
diff changeset
   807
     * by <code>ResultSet</code> methods.  Any warning caused by
90ce3da70b43 Initial load
duke
parents:
diff changeset
   808
     * <code>Statement</code> methods
90ce3da70b43 Initial load
duke
parents:
diff changeset
   809
     * (such as reading OUT parameters) will be chained on the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   810
     * <code>Statement</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   811
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   812
     * @return the first <code>SQLWarning</code> object reported or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   813
     *         <code>null</code> if there are none
90ce3da70b43 Initial load
duke
parents:
diff changeset
   814
     * @exception SQLException if a database access error occurs or this method is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   815
     *            called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
   816
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   817
    SQLWarning getWarnings() throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   818
90ce3da70b43 Initial load
duke
parents:
diff changeset
   819
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   820
     * Clears all warnings reported on this <code>ResultSet</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   821
     * After this method is called, the method <code>getWarnings</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   822
     * returns <code>null</code> until a new warning is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   823
     * reported for this <code>ResultSet</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   824
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   825
     * @exception SQLException if a database access error occurs or this method is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   826
     *            called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
   827
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   828
    void clearWarnings() throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   829
90ce3da70b43 Initial load
duke
parents:
diff changeset
   830
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   831
     * Retrieves the name of the SQL cursor used by this <code>ResultSet</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   832
     * object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   833
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   834
     * <P>In SQL, a result table is retrieved through a cursor that is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   835
     * named. The current row of a result set can be updated or deleted
90ce3da70b43 Initial load
duke
parents:
diff changeset
   836
     * using a positioned update/delete statement that references the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   837
     * cursor name. To insure that the cursor has the proper isolation
90ce3da70b43 Initial load
duke
parents:
diff changeset
   838
     * level to support update, the cursor's <code>SELECT</code> statement
90ce3da70b43 Initial load
duke
parents:
diff changeset
   839
     * should be of the form <code>SELECT FOR UPDATE</code>. If
90ce3da70b43 Initial load
duke
parents:
diff changeset
   840
     * <code>FOR UPDATE</code> is omitted, the positioned updates may fail.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   841
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   842
     * <P>The JDBC API supports this SQL feature by providing the name of the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   843
     * SQL cursor used by a <code>ResultSet</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   844
     * The current row of a <code>ResultSet</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
   845
     * is also the current row of this SQL cursor.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   846
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   847
     * @return the SQL name for this <code>ResultSet</code> object's cursor
90ce3da70b43 Initial load
duke
parents:
diff changeset
   848
     * @exception SQLException if a database access error occurs or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
   849
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
   850
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   851
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   852
    String getCursorName() throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   853
90ce3da70b43 Initial load
duke
parents:
diff changeset
   854
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   855
     * Retrieves the  number, types and properties of
90ce3da70b43 Initial load
duke
parents:
diff changeset
   856
     * this <code>ResultSet</code> object's columns.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   857
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   858
     * @return the description of this <code>ResultSet</code> object's columns
90ce3da70b43 Initial load
duke
parents:
diff changeset
   859
     * @exception SQLException if a database access error occurs or this method is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   860
     *            called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
   861
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   862
    ResultSetMetaData getMetaData() throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   863
90ce3da70b43 Initial load
duke
parents:
diff changeset
   864
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   865
     * <p>Gets the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
   866
     * of this <code>ResultSet</code> object as
90ce3da70b43 Initial load
duke
parents:
diff changeset
   867
     * an <code>Object</code> in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   868
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   869
     * <p>This method will return the value of the given column as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   870
     * Java object.  The type of the Java object will be the default
90ce3da70b43 Initial load
duke
parents:
diff changeset
   871
     * Java object type corresponding to the column's SQL type,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   872
     * following the mapping for built-in types specified in the JDBC
90ce3da70b43 Initial load
duke
parents:
diff changeset
   873
     * specification. If the value is an SQL <code>NULL</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   874
     * the driver returns a Java <code>null</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   875
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   876
     * <p>This method may also be used to read database-specific
90ce3da70b43 Initial load
duke
parents:
diff changeset
   877
     * abstract data types.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   878
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   879
     * In the JDBC 2.0 API, the behavior of method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   880
     * <code>getObject</code> is extended to materialize
90ce3da70b43 Initial load
duke
parents:
diff changeset
   881
     * data of SQL user-defined types.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   882
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   883
     * If <code>Connection.getTypeMap</code> does not throw a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   884
     * <code>SQLFeatureNotSupportedException</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   885
     * then when a column contains a structured or distinct value,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   886
     * the behavior of this method is as
90ce3da70b43 Initial load
duke
parents:
diff changeset
   887
     * if it were a call to: <code>getObject(columnIndex,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   888
     * this.getStatement().getConnection().getTypeMap())</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   889
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   890
     * If <code>Connection.getTypeMap</code> does throw a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   891
     * <code>SQLFeatureNotSupportedException</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   892
     * then structured values are not supported, and distinct values
90ce3da70b43 Initial load
duke
parents:
diff changeset
   893
     * are mapped to the default Java class as determined by the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   894
     * underlying SQL type of the DISTINCT type.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   895
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   896
     * @param columnIndex the first column is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
   897
     * @return a <code>java.lang.Object</code> holding the column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   898
     * @exception SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   899
     * if a database access error occurs or this method is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   900
     *            called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
   901
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   902
    Object getObject(int columnIndex) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   903
90ce3da70b43 Initial load
duke
parents:
diff changeset
   904
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   905
     * <p>Gets the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
   906
     * of this <code>ResultSet</code> object as
90ce3da70b43 Initial load
duke
parents:
diff changeset
   907
     * an <code>Object</code> in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   908
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   909
     * <p>This method will return the value of the given column as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   910
     * Java object.  The type of the Java object will be the default
90ce3da70b43 Initial load
duke
parents:
diff changeset
   911
     * Java object type corresponding to the column's SQL type,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   912
     * following the mapping for built-in types specified in the JDBC
90ce3da70b43 Initial load
duke
parents:
diff changeset
   913
     * specification. If the value is an SQL <code>NULL</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   914
     * the driver returns a Java <code>null</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   915
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   916
     * This method may also be used to read database-specific
90ce3da70b43 Initial load
duke
parents:
diff changeset
   917
     * abstract data types.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   918
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   919
     * In the JDBC 2.0 API, the behavior of the method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   920
     * <code>getObject</code> is extended to materialize
90ce3da70b43 Initial load
duke
parents:
diff changeset
   921
     * data of SQL user-defined types.  When a column contains
90ce3da70b43 Initial load
duke
parents:
diff changeset
   922
     * a structured or distinct value, the behavior of this method is as
90ce3da70b43 Initial load
duke
parents:
diff changeset
   923
     * if it were a call to: <code>getObject(columnIndex,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   924
     * this.getStatement().getConnection().getTypeMap())</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   925
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   926
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
   927
     * @return a <code>java.lang.Object</code> holding the column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   928
     * @exception SQLException if the columnLabel is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   929
     * if a database access error occurs or this method is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   930
     *            called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
   931
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   932
    Object getObject(String columnLabel) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   933
90ce3da70b43 Initial load
duke
parents:
diff changeset
   934
    //----------------------------------------------------------------
90ce3da70b43 Initial load
duke
parents:
diff changeset
   935
90ce3da70b43 Initial load
duke
parents:
diff changeset
   936
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   937
     * Maps the given <code>ResultSet</code> column label to its
90ce3da70b43 Initial load
duke
parents:
diff changeset
   938
     * <code>ResultSet</code> column index.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   939
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   940
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
   941
     * @return the column index of the given column name
90ce3da70b43 Initial load
duke
parents:
diff changeset
   942
     * @exception SQLException if the <code>ResultSet</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
   943
     * does not contain a column labeled <code>columnLabel</code>, a database access error occurs
90ce3da70b43 Initial load
duke
parents:
diff changeset
   944
     *  or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
   945
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   946
    int findColumn(String columnLabel) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   947
90ce3da70b43 Initial load
duke
parents:
diff changeset
   948
90ce3da70b43 Initial load
duke
parents:
diff changeset
   949
    //--------------------------JDBC 2.0-----------------------------------
90ce3da70b43 Initial load
duke
parents:
diff changeset
   950
90ce3da70b43 Initial load
duke
parents:
diff changeset
   951
    //---------------------------------------------------------------------
90ce3da70b43 Initial load
duke
parents:
diff changeset
   952
    // Getters and Setters
90ce3da70b43 Initial load
duke
parents:
diff changeset
   953
    //---------------------------------------------------------------------
90ce3da70b43 Initial load
duke
parents:
diff changeset
   954
90ce3da70b43 Initial load
duke
parents:
diff changeset
   955
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   956
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
   957
     * of this <code>ResultSet</code> object as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   958
     * <code>java.io.Reader</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   959
     * @return a <code>java.io.Reader</code> object that contains the column
90ce3da70b43 Initial load
duke
parents:
diff changeset
   960
     * value; if the value is SQL <code>NULL</code>, the value returned is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   961
     * <code>null</code> in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   962
     * @param columnIndex the first column is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
   963
     * @exception SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   964
     * if a database access error occurs or this method is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   965
     *            called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
   966
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   967
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   968
    java.io.Reader getCharacterStream(int columnIndex) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   969
90ce3da70b43 Initial load
duke
parents:
diff changeset
   970
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   971
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
   972
     * of this <code>ResultSet</code> object as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   973
     * <code>java.io.Reader</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   974
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   975
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
   976
     * @return a <code>java.io.Reader</code> object that contains the column
90ce3da70b43 Initial load
duke
parents:
diff changeset
   977
     * value; if the value is SQL <code>NULL</code>, the value returned is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   978
     * <code>null</code> in the Java programming language
90ce3da70b43 Initial load
duke
parents:
diff changeset
   979
     * @exception SQLException if the columnLabel is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   980
     * if a database access error occurs or this method is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   981
     *            called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
   982
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   983
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   984
    java.io.Reader getCharacterStream(String columnLabel) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   985
90ce3da70b43 Initial load
duke
parents:
diff changeset
   986
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   987
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
   988
     * of this <code>ResultSet</code> object as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   989
     * <code>java.math.BigDecimal</code> with full precision.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   990
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   991
     * @param columnIndex the first column is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
   992
     * @return the column value (full precision);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   993
     * if the value is SQL <code>NULL</code>, the value returned is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   994
     * <code>null</code> in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   995
     * @exception SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   996
     * if a database access error occurs or this method is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   997
     *            called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
   998
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   999
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1000
    BigDecimal getBigDecimal(int columnIndex) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1001
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1002
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1003
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1004
     * of this <code>ResultSet</code> object as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1005
     * <code>java.math.BigDecimal</code> with full precision.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1006
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1007
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1008
     * @return the column value (full precision);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1009
     * if the value is SQL <code>NULL</code>, the value returned is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1010
     * <code>null</code> in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1011
     * @exception SQLException if the columnLabel is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1012
     * if a database access error occurs or this method is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1013
     *            called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1014
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1015
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1016
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1017
    BigDecimal getBigDecimal(String columnLabel) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1018
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1019
    //---------------------------------------------------------------------
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1020
    // Traversal/Positioning
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1021
    //---------------------------------------------------------------------
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1022
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1023
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1024
     * Retrieves whether the cursor is before the first row in
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1025
     * this <code>ResultSet</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1026
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1027
     * <strong>Note:</strong>Support for the <code>isBeforeFirst</code> method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1028
     * is optional for <code>ResultSet</code>s with a result
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1029
     * set type of <code>TYPE_FORWARD_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1030
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1031
     * @return <code>true</code> if the cursor is before the first row;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1032
     * <code>false</code> if the cursor is at any other position or the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1033
     * result set contains no rows
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1034
     * @exception SQLException if a database access error occurs or this method is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1035
     *            called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1036
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1037
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1038
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1039
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1040
    boolean isBeforeFirst() throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1041
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1042
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1043
     * Retrieves whether the cursor is after the last row in
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1044
     * this <code>ResultSet</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1045
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1046
     * <strong>Note:</strong>Support for the <code>isAfterLast</code> method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1047
     * is optional for <code>ResultSet</code>s with a result
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1048
     * set type of <code>TYPE_FORWARD_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1049
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1050
     * @return <code>true</code> if the cursor is after the last row;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1051
     * <code>false</code> if the cursor is at any other position or the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1052
     * result set contains no rows
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1053
     * @exception SQLException if a database access error occurs or this method is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1054
     *            called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1055
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1056
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1057
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1058
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1059
    boolean isAfterLast() throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1060
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1061
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1062
     * Retrieves whether the cursor is on the first row of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1063
     * this <code>ResultSet</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1064
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1065
     * <strong>Note:</strong>Support for the <code>isFirst</code> method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1066
     * is optional for <code>ResultSet</code>s with a result
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1067
     * set type of <code>TYPE_FORWARD_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1068
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1069
     * @return <code>true</code> if the cursor is on the first row;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1070
     * <code>false</code> otherwise
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1071
     * @exception SQLException if a database access error occurs or this method is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1072
     *            called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1073
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1074
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1075
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1076
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1077
    boolean isFirst() throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1078
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1079
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1080
     * Retrieves whether the cursor is on the last row of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1081
     * this <code>ResultSet</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1082
     *  <strong>Note:</strong> Calling the method <code>isLast</code> may be expensive
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1083
     * because the JDBC driver
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1084
     * might need to fetch ahead one row in order to determine
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1085
     * whether the current row is the last row in the result set.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1086
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1087
     * <strong>Note:</strong> Support for the <code>isLast</code> method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1088
     * is optional for <code>ResultSet</code>s with a result
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1089
     * set type of <code>TYPE_FORWARD_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1090
     * @return <code>true</code> if the cursor is on the last row;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1091
     * <code>false</code> otherwise
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1092
     * @exception SQLException if a database access error occurs or this method is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1093
     *            called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1094
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1095
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1096
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1097
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1098
    boolean isLast() throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1099
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1100
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1101
     * Moves the cursor to the front of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1102
     * this <code>ResultSet</code> object, just before the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1103
     * first row. This method has no effect if the result set contains no rows.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1104
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1105
     * @exception SQLException if a database access error
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1106
     * occurs; this method is called on a closed result set or the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1107
     * result set type is <code>TYPE_FORWARD_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1108
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1109
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1110
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1111
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1112
    void beforeFirst() throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1113
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1114
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1115
     * Moves the cursor to the end of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1116
     * this <code>ResultSet</code> object, just after the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1117
     * last row. This method has no effect if the result set contains no rows.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1118
     * @exception SQLException if a database access error
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1119
     * occurs; this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1120
     * or the result set type is <code>TYPE_FORWARD_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1121
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1122
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1123
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1124
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1125
    void afterLast() throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1126
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1127
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1128
     * Moves the cursor to the first row in
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1129
     * this <code>ResultSet</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1130
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1131
     * @return <code>true</code> if the cursor is on a valid row;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1132
     * <code>false</code> if there are no rows in the result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1133
     * @exception SQLException if a database access error
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1134
     * occurs; this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1135
     * or the result set type is <code>TYPE_FORWARD_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1136
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1137
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1138
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1139
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1140
    boolean first() throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1141
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1142
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1143
     * Moves the cursor to the last row in
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1144
     * this <code>ResultSet</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1145
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1146
     * @return <code>true</code> if the cursor is on a valid row;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1147
     * <code>false</code> if there are no rows in the result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1148
     * @exception SQLException if a database access error
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1149
     * occurs; this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1150
     * or the result set type is <code>TYPE_FORWARD_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1151
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1152
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1153
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1154
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1155
    boolean last() throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1156
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1157
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1158
     * Retrieves the current row number.  The first row is number 1, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1159
     * second number 2, and so on.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1160
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1161
     * <strong>Note:</strong>Support for the <code>getRow</code> method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1162
     * is optional for <code>ResultSet</code>s with a result
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1163
     * set type of <code>TYPE_FORWARD_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1164
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1165
     * @return the current row number; <code>0</code> if there is no current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1166
     * @exception SQLException if a database access error occurs
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1167
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1168
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1169
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1170
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1171
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1172
    int getRow() throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1173
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1174
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1175
     * Moves the cursor to the given row number in
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1176
     * this <code>ResultSet</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1177
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1178
     * <p>If the row number is positive, the cursor moves to
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1179
     * the given row number with respect to the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1180
     * beginning of the result set.  The first row is row 1, the second
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1181
     * is row 2, and so on.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1182
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1183
     * <p>If the given row number is negative, the cursor moves to
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1184
     * an absolute row position with respect to
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1185
     * the end of the result set.  For example, calling the method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1186
     * <code>absolute(-1)</code> positions the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1187
     * cursor on the last row; calling the method <code>absolute(-2)</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1188
     * moves the cursor to the next-to-last row, and so on.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1189
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1190
     * <p>An attempt to position the cursor beyond the first/last row in
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1191
     * the result set leaves the cursor before the first row or after
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1192
     * the last row.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1193
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1194
     * <p><B>Note:</B> Calling <code>absolute(1)</code> is the same
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1195
     * as calling <code>first()</code>. Calling <code>absolute(-1)</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1196
     * is the same as calling <code>last()</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1197
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1198
     * @param row the number of the row to which the cursor should move.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1199
     *        A positive number indicates the row number counting from the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1200
     *        beginning of the result set; a negative number indicates the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1201
     *        row number counting from the end of the result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1202
     * @return <code>true</code> if the cursor is moved to a position in this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1203
     * <code>ResultSet</code> object;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1204
     * <code>false</code> if the cursor is before the first row or after the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1205
     * last row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1206
     * @exception SQLException if a database access error
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1207
     * occurs; this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1208
     * or the result set type is <code>TYPE_FORWARD_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1209
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1210
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1211
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1212
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1213
    boolean absolute( int row ) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1214
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1215
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1216
     * Moves the cursor a relative number of rows, either positive or negative.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1217
     * Attempting to move beyond the first/last row in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1218
     * result set positions the cursor before/after the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1219
     * the first/last row. Calling <code>relative(0)</code> is valid, but does
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1220
     * not change the cursor position.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1221
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1222
     * <p>Note: Calling the method <code>relative(1)</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1223
     * is identical to calling the method <code>next()</code> and
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1224
     * calling the method <code>relative(-1)</code> is identical
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1225
     * to calling the method <code>previous()</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1226
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1227
     * @param rows an <code>int</code> specifying the number of rows to
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1228
     *        move from the current row; a positive number moves the cursor
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1229
     *        forward; a negative number moves the cursor backward
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1230
     * @return <code>true</code> if the cursor is on a row;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1231
     *         <code>false</code> otherwise
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1232
     * @exception SQLException if a database access error occurs;  this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1233
     * is called on a closed result set or the result set type is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1234
     *            <code>TYPE_FORWARD_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1235
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1236
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1237
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1238
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1239
    boolean relative( int rows ) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1240
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1241
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1242
     * Moves the cursor to the previous row in this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1243
     * <code>ResultSet</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1244
     *<p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1245
     * When a call to the <code>previous</code> method returns <code>false</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1246
     * the cursor is positioned before the first row.  Any invocation of a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1247
     * <code>ResultSet</code> method which requires a current row will result in a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1248
     * <code>SQLException</code> being thrown.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1249
     *<p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1250
     * If an input stream is open for the current row, a call to the method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1251
     * <code>previous</code> will implicitly close it.  A <code>ResultSet</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1252
     *  object's warning change is cleared when a new row is read.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1253
     *<p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1254
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1255
     * @return <code>true</code> if the cursor is now positioned on a valid row;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1256
     * <code>false</code> if the cursor is positioned before the first row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1257
     * @exception SQLException if a database access error
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1258
     * occurs; this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1259
     * or the result set type is <code>TYPE_FORWARD_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1260
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1261
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1262
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1263
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1264
    boolean previous() throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1265
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1266
    //---------------------------------------------------------------------
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1267
    // Properties
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1268
    //---------------------------------------------------------------------
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1269
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1270
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1271
     * The constant indicating that the rows in a result set will be
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1272
     * processed in a forward direction; first-to-last.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1273
     * This constant is used by the method <code>setFetchDirection</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1274
     * as a hint to the driver, which the driver may ignore.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1275
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1276
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1277
    int FETCH_FORWARD = 1000;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1278
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1279
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1280
     * The constant indicating that the rows in a result set will be
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1281
     * processed in a reverse direction; last-to-first.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1282
     * This constant is used by the method <code>setFetchDirection</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1283
     * as a hint to the driver, which the driver may ignore.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1284
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1285
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1286
    int FETCH_REVERSE = 1001;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1287
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1288
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1289
     * The constant indicating that the order in which rows in a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1290
     * result set will be processed is unknown.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1291
     * This constant is used by the method <code>setFetchDirection</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1292
     * as a hint to the driver, which the driver may ignore.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1293
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1294
    int FETCH_UNKNOWN = 1002;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1295
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1296
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1297
     * Gives a hint as to the direction in which the rows in this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1298
     * <code>ResultSet</code> object will be processed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1299
     * The initial value is determined by the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1300
     * <code>Statement</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1301
     * that produced this <code>ResultSet</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1302
     * The fetch direction may be changed at any time.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1303
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1304
     * @param direction an <code>int</code> specifying the suggested
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1305
     *        fetch direction; one of <code>ResultSet.FETCH_FORWARD</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1306
     *        <code>ResultSet.FETCH_REVERSE</code>, or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1307
     *        <code>ResultSet.FETCH_UNKNOWN</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1308
     * @exception SQLException if a database access error occurs; this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1309
     * method is called on a closed result set or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1310
     * the result set type is <code>TYPE_FORWARD_ONLY</code> and the fetch
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1311
     * direction is not <code>FETCH_FORWARD</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1312
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1313
     * @see Statement#setFetchDirection
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1314
     * @see #getFetchDirection
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1315
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1316
    void setFetchDirection(int direction) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1317
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1318
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1319
     * Retrieves the fetch direction for this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1320
     * <code>ResultSet</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1321
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1322
     * @return the current fetch direction for this <code>ResultSet</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1323
     * @exception SQLException if a database access error occurs
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1324
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1325
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1326
     * @see #setFetchDirection
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1327
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1328
    int getFetchDirection() throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1329
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1330
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1331
     * Gives the JDBC driver a hint as to the number of rows that should
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1332
     * be fetched from the database when more rows are needed for this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1333
     * <code>ResultSet</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1334
     * If the fetch size specified is zero, the JDBC driver
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1335
     * ignores the value and is free to make its own best guess as to what
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1336
     * the fetch size should be.  The default value is set by the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1337
     * <code>Statement</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1338
     * that created the result set.  The fetch size may be changed at any time.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1339
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1340
     * @param rows the number of rows to fetch
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1341
     * @exception SQLException if a database access error occurs; this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1342
     * is called on a closed result set or the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1343
     * condition <code>rows >= 0 </code> is not satisfied
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1344
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1345
     * @see #getFetchSize
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1346
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1347
    void setFetchSize(int rows) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1348
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1349
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1350
     * Retrieves the fetch size for this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1351
     * <code>ResultSet</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1352
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1353
     * @return the current fetch size for this <code>ResultSet</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1354
     * @exception SQLException if a database access error occurs
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1355
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1356
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1357
     * @see #setFetchSize
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1358
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1359
    int getFetchSize() throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1360
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1361
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1362
     * The constant indicating the type for a <code>ResultSet</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1363
     * whose cursor may move only forward.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1364
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1365
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1366
    int TYPE_FORWARD_ONLY = 1003;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1367
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1368
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1369
     * The constant indicating the type for a <code>ResultSet</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1370
     * that is scrollable but generally not sensitive to changes to the data
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1371
     * that underlies the <code>ResultSet</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1372
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1373
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1374
    int TYPE_SCROLL_INSENSITIVE = 1004;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1375
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1376
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1377
     * The constant indicating the type for a <code>ResultSet</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1378
     * that is scrollable and generally sensitive to changes to the data
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1379
     * that underlies the <code>ResultSet</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1380
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1381
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1382
    int TYPE_SCROLL_SENSITIVE = 1005;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1383
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1384
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1385
     * Retrieves the type of this <code>ResultSet</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1386
     * The type is determined by the <code>Statement</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1387
     * that created the result set.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1388
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1389
     * @return <code>ResultSet.TYPE_FORWARD_ONLY</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1390
     *         <code>ResultSet.TYPE_SCROLL_INSENSITIVE</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1391
     *         or <code>ResultSet.TYPE_SCROLL_SENSITIVE</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1392
     * @exception SQLException if a database access error occurs
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1393
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1394
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1395
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1396
    int getType() throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1397
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1398
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1399
     * The constant indicating the concurrency mode for a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1400
     * <code>ResultSet</code> object that may NOT be updated.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1401
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1402
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1403
    int CONCUR_READ_ONLY = 1007;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1404
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1405
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1406
     * The constant indicating the concurrency mode for a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1407
     * <code>ResultSet</code> object that may be updated.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1408
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1409
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1410
    int CONCUR_UPDATABLE = 1008;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1411
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1412
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1413
     * Retrieves the concurrency mode of this <code>ResultSet</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1414
     * The concurrency used is determined by the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1415
     * <code>Statement</code> object that created the result set.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1416
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1417
     * @return the concurrency type, either
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1418
     *         <code>ResultSet.CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1419
     *         or <code>ResultSet.CONCUR_UPDATABLE</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1420
     * @exception SQLException if a database access error occurs
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1421
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1422
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1423
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1424
    int getConcurrency() throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1425
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1426
    //---------------------------------------------------------------------
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1427
    // Updates
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1428
    //---------------------------------------------------------------------
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1429
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1430
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1431
     * Retrieves whether the current row has been updated.  The value returned
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1432
     * depends on whether or not the result set can detect updates.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1433
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1434
     * <strong>Note:</strong> Support for the <code>rowUpdated</code> method is optional with a result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1435
     * concurrency of <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1436
     * @return <code>true</code> if the current row is detected to
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1437
     * have been visibly updated by the owner or another; <code>false</code> otherwise
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1438
     * @exception SQLException if a database access error occurs
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1439
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1440
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1441
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1442
     * @see DatabaseMetaData#updatesAreDetected
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1443
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1444
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1445
    boolean rowUpdated() throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1446
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1447
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1448
     * Retrieves whether the current row has had an insertion.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1449
     * The value returned depends on whether or not this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1450
     * <code>ResultSet</code> object can detect visible inserts.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1451
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1452
     * <strong>Note:</strong> Support for the <code>rowInserted</code> method is optional with a result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1453
     * concurrency of <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1454
     * @return <code>true</code> if the current row is detected to
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1455
     * have been inserted; <code>false</code> otherwise
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1456
     * @exception SQLException if a database access error occurs
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1457
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1458
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1459
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1460
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1461
     * @see DatabaseMetaData#insertsAreDetected
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1462
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1463
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1464
    boolean rowInserted() throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1465
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1466
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1467
     * Retrieves whether a row has been deleted.  A deleted row may leave
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1468
     * a visible "hole" in a result set.  This method can be used to
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1469
     * detect holes in a result set.  The value returned depends on whether
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1470
     * or not this <code>ResultSet</code> object can detect deletions.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1471
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1472
     * <strong>Note:</strong> Support for the <code>rowDeleted</code> method is optional with a result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1473
     * concurrency of <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1474
     * @return <code>true</code> if the current row is detected to
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1475
     * have been deleted by the owner or another; <code>false</code> otherwise
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1476
     * @exception SQLException if a database access error occurs
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1477
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1478
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1479
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1480
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1481
     * @see DatabaseMetaData#deletesAreDetected
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1482
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1483
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1484
    boolean rowDeleted() throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1485
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1486
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1487
     * Updates the designated column with a <code>null</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1488
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1489
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1490
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1491
     * update the underlying database; instead the <code>updateRow</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1492
     * or <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1493
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1494
     * @param columnIndex the first column is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1495
     * @exception SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1496
     * if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1497
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1498
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1499
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1500
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1501
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1502
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1503
    void updateNull(int columnIndex) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1504
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1505
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1506
     * Updates the designated column with a <code>boolean</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1507
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1508
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1509
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1510
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1511
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1512
     * @param columnIndex the first column is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1513
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1514
     * @exception SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1515
     * if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1516
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1517
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1518
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1519
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1520
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1521
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1522
    void updateBoolean(int columnIndex, boolean x) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1523
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1524
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1525
     * Updates the designated column with a <code>byte</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1526
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1527
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1528
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1529
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1530
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1531
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1532
     * @param columnIndex the first column is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1533
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1534
     * @exception SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1535
     * if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1536
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1537
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1538
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1539
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1540
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1541
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1542
    void updateByte(int columnIndex, byte x) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1543
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1544
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1545
     * Updates the designated column with a <code>short</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1546
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1547
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1548
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1549
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1550
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1551
     * @param columnIndex the first column is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1552
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1553
     * @exception SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1554
     * if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1555
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1556
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1557
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1558
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1559
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1560
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1561
    void updateShort(int columnIndex, short x) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1562
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1563
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1564
     * Updates the designated column with an <code>int</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1565
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1566
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1567
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1568
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1569
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1570
     * @param columnIndex the first column is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1571
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1572
     * @exception SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1573
     * if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1574
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1575
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1576
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1577
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1578
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1579
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1580
    void updateInt(int columnIndex, int x) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1581
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1582
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1583
     * Updates the designated column with a <code>long</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1584
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1585
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1586
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1587
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1588
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1589
     * @param columnIndex the first column is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1590
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1591
     * @exception SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1592
     * if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1593
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1594
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1595
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1596
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1597
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1598
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1599
    void updateLong(int columnIndex, long x) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1600
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1601
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1602
     * Updates the designated column with a <code>float</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1603
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1604
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1605
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1606
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1607
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1608
     * @param columnIndex the first column is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1609
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1610
     * @exception SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1611
     * if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1612
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1613
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1614
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1615
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1616
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1617
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1618
    void updateFloat(int columnIndex, float x) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1619
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1620
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1621
     * Updates the designated column with a <code>double</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1622
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1623
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1624
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1625
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1626
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1627
     * @param columnIndex the first column is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1628
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1629
     * @exception SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1630
     * if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1631
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1632
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1633
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1634
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1635
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1636
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1637
    void updateDouble(int columnIndex, double x) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1638
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1639
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1640
     * Updates the designated column with a <code>java.math.BigDecimal</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1641
     * value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1642
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1643
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1644
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1645
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1646
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1647
     * @param columnIndex the first column is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1648
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1649
     * @exception SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1650
     * if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1651
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1652
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1653
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1654
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1655
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1656
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1657
    void updateBigDecimal(int columnIndex, BigDecimal x) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1658
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1659
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1660
     * Updates the designated column with a <code>String</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1661
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1662
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1663
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1664
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1665
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1666
     * @param columnIndex the first column is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1667
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1668
     * @exception SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1669
     * if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1670
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1671
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1672
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1673
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1674
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1675
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1676
    void updateString(int columnIndex, String x) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1677
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1678
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1679
     * Updates the designated column with a <code>byte</code> array value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1680
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1681
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1682
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1683
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1684
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1685
     * @param columnIndex the first column is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1686
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1687
     * @exception SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1688
     * if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1689
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1690
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1691
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1692
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1693
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1694
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1695
    void updateBytes(int columnIndex, byte x[]) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1696
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1697
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1698
     * Updates the designated column with a <code>java.sql.Date</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1699
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1700
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1701
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1702
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1703
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1704
     * @param columnIndex the first column is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1705
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1706
     * @exception SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1707
     * if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1708
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1709
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1710
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1711
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1712
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1713
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1714
    void updateDate(int columnIndex, java.sql.Date x) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1715
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1716
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1717
     * Updates the designated column with a <code>java.sql.Time</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1718
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1719
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1720
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1721
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1722
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1723
     * @param columnIndex the first column is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1724
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1725
     * @exception SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1726
     * if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1727
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1728
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1729
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1730
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1731
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1732
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1733
    void updateTime(int columnIndex, java.sql.Time x) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1734
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1735
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1736
     * Updates the designated column with a <code>java.sql.Timestamp</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1737
     * value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1738
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1739
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1740
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1741
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1742
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1743
     * @param columnIndex the first column is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1744
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1745
     * @exception SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1746
     * if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1747
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1748
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1749
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1750
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1751
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1752
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1753
    void updateTimestamp(int columnIndex, java.sql.Timestamp x)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1754
      throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1755
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1756
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1757
     * Updates the designated column with an ascii stream value, which will have
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1758
     * the specified number of bytes.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1759
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1760
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1761
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1762
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1763
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1764
     * @param columnIndex the first column is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1765
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1766
     * @param length the length of the stream
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1767
     * @exception SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1768
     * if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1769
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1770
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1771
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1772
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1773
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1774
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1775
    void updateAsciiStream(int columnIndex,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1776
                           java.io.InputStream x,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1777
                           int length) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1778
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1779
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1780
     * Updates the designated column with a binary stream value, which will have
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1781
     * the specified number of bytes.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1782
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1783
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1784
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1785
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1786
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1787
     * @param columnIndex the first column is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1788
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1789
     * @param length the length of the stream
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1790
     * @exception SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1791
     * if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1792
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1793
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1794
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1795
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1796
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1797
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1798
    void updateBinaryStream(int columnIndex,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1799
                            java.io.InputStream x,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1800
                            int length) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1801
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1802
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1803
     * Updates the designated column with a character stream value, which will have
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1804
     * the specified number of bytes.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1805
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1806
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1807
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1808
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1809
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1810
     * @param columnIndex the first column is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1811
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1812
     * @param length the length of the stream
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1813
     * @exception SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1814
     * if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1815
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1816
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1817
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1818
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1819
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1820
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1821
    void updateCharacterStream(int columnIndex,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1822
                             java.io.Reader x,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1823
                             int length) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1824
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1825
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1826
     * Updates the designated column with an <code>Object</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1827
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1828
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1829
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1830
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1831
     *<p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1832
     * If the second argument is an <code>InputStream</code> then the stream must contain
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1833
     * the number of bytes specified by scaleOrLength.  If the second argument is a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1834
     * <code>Reader</code> then the reader must contain the number of characters specified
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1835
     * by scaleOrLength. If these conditions are not true the driver will generate a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1836
     * <code>SQLException</code> when the statement is executed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1837
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1838
     * @param columnIndex the first column is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1839
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1840
     * @param scaleOrLength for an object of <code>java.math.BigDecimal</code> ,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1841
     *          this is the number of digits after the decimal point. For
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1842
     *          Java Object types <code>InputStream</code> and <code>Reader</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1843
     *          this is the length
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1844
     *          of the data in the stream or reader.  For all other types,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1845
     *          this value will be ignored.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1846
     * @exception SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1847
     * if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1848
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1849
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1850
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1851
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1852
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1853
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1854
    void updateObject(int columnIndex, Object x, int scaleOrLength)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1855
      throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1856
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1857
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1858
     * Updates the designated column with an <code>Object</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1859
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1860
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1861
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1862
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1863
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1864
     * @param columnIndex the first column is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1865
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1866
     * @exception SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1867
     * if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1868
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1869
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1870
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1871
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1872
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1873
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1874
    void updateObject(int columnIndex, Object x) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1875
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1876
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1877
     * Updates the designated column with a <code>null</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1878
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1879
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1880
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1881
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1882
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1883
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1884
     * @exception SQLException if the columnLabel is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1885
     * if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1886
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1887
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1888
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1889
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1890
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1891
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1892
    void updateNull(String columnLabel) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1893
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1894
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1895
     * Updates the designated column with a <code>boolean</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1896
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1897
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1898
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1899
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1900
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1901
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1902
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1903
     * @exception SQLException if the columnLabel is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1904
     * if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1905
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1906
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1907
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1908
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1909
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1910
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1911
    void updateBoolean(String columnLabel, boolean x) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1912
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1913
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1914
     * Updates the designated column with a <code>byte</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1915
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1916
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1917
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1918
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1919
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1920
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1921
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1922
     * @exception SQLException if the columnLabel is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1923
     * if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1924
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1925
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1926
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1927
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1928
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1929
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1930
    void updateByte(String columnLabel, byte x) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1931
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1932
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1933
     * Updates the designated column with a <code>short</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1934
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1935
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1936
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1937
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1938
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1939
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1940
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1941
     * @exception SQLException if the columnLabel is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1942
     * if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1943
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1944
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1945
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1946
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1947
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1948
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1949
    void updateShort(String columnLabel, short x) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1950
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1951
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1952
     * Updates the designated column with an <code>int</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1953
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1954
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1955
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1956
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1957
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1958
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1959
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1960
     * @exception SQLException if the columnLabel is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1961
     * if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1962
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1963
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1964
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1965
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1966
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1967
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1968
    void updateInt(String columnLabel, int x) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1969
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1970
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1971
     * Updates the designated column with a <code>long</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1972
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1973
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1974
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1975
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1976
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1977
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1978
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1979
     * @exception SQLException if the columnLabel is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1980
     * if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1981
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1982
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1983
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1984
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1985
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1986
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1987
    void updateLong(String columnLabel, long x) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1988
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1989
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1990
     * Updates the designated column with a <code>float </code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1991
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1992
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1993
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1994
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1995
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1996
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1997
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1998
     * @exception SQLException if the columnLabel is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1999
     * if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2000
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2001
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2002
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2003
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2004
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2005
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2006
    void updateFloat(String columnLabel, float x) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2007
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2008
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2009
     * Updates the designated column with a <code>double</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2010
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2011
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2012
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2013
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2014
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2015
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2016
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2017
     * @exception SQLException if the columnLabel is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2018
     * if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2019
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2020
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2021
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2022
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2023
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2024
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2025
    void updateDouble(String columnLabel, double x) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2026
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2027
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2028
     * Updates the designated column with a <code>java.sql.BigDecimal</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2029
     * value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2030
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2031
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2032
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2033
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2034
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2035
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2036
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2037
     * @exception SQLException if the columnLabel is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2038
     * if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2039
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2040
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2041
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2042
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2043
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2044
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2045
    void updateBigDecimal(String columnLabel, BigDecimal x) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2046
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2047
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2048
     * Updates the designated column with a <code>String</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2049
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2050
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2051
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2052
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2053
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2054
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2055
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2056
     * @exception SQLException if the columnLabel is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2057
     * if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2058
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2059
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2060
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2061
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2062
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2063
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2064
    void updateString(String columnLabel, String x) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2065
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2066
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2067
     * Updates the designated column with a byte array value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2068
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2069
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2070
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2071
     * update the underlying database; instead the <code>updateRow</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2072
     * or <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2073
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2074
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2075
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2076
     * @exception SQLException if the columnLabel is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2077
     * if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2078
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2079
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2080
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2081
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2082
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2083
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2084
    void updateBytes(String columnLabel, byte x[]) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2085
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2086
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2087
     * Updates the designated column with a <code>java.sql.Date</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2088
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2089
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2090
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2091
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2092
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2093
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2094
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2095
     * @exception SQLException if the columnLabel is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2096
     * if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2097
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2098
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2099
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2100
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2101
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2102
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2103
    void updateDate(String columnLabel, java.sql.Date x) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2104
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2105
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2106
     * Updates the designated column with a <code>java.sql.Time</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2107
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2108
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2109
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2110
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2111
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2112
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2113
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2114
     * @exception SQLException if the columnLabel is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2115
     * if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2116
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2117
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2118
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2119
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2120
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2121
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2122
    void updateTime(String columnLabel, java.sql.Time x) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2123
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2124
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2125
     * Updates the designated column with a <code>java.sql.Timestamp</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2126
     * value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2127
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2128
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2129
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2130
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2131
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2132
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2133
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2134
     * @exception SQLException if the columnLabel is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2135
     * if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2136
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2137
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2138
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2139
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2140
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2141
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2142
    void updateTimestamp(String columnLabel, java.sql.Timestamp x)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2143
      throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2144
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2145
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2146
     * Updates the designated column with an ascii stream value, which will have
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2147
     * the specified number of bytes.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2148
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2149
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2150
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2151
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2152
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2153
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2154
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2155
     * @param length the length of the stream
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2156
     * @exception SQLException if the columnLabel is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2157
     * if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2158
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2159
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2160
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2161
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2162
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2163
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2164
    void updateAsciiStream(String columnLabel,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2165
                           java.io.InputStream x,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2166
                           int length) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2167
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2168
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2169
     * Updates the designated column with a binary stream value, which will have
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2170
     * the specified number of bytes.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2171
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2172
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2173
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2174
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2175
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2176
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2177
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2178
     * @param length the length of the stream
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2179
     * @exception SQLException if the columnLabel is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2180
     * if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2181
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2182
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2183
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2184
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2185
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2186
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2187
    void updateBinaryStream(String columnLabel,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2188
                            java.io.InputStream x,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2189
                            int length) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2190
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2191
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2192
     * Updates the designated column with a character stream value, which will have
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2193
     * the specified number of bytes.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2194
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2195
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2196
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2197
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2198
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2199
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2200
     * @param reader the <code>java.io.Reader</code> object containing
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2201
     *        the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2202
     * @param length the length of the stream
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2203
     * @exception SQLException if the columnLabel is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2204
     * if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2205
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2206
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2207
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2208
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2209
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2210
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2211
    void updateCharacterStream(String columnLabel,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2212
                             java.io.Reader reader,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2213
                             int length) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2214
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2215
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2216
     * Updates the designated column with an <code>Object</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2217
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2218
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2219
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2220
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2221
     *<p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2222
     * If the second argument is an <code>InputStream</code> then the stream must contain
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2223
     * the number of bytes specified by scaleOrLength.  If the second argument is a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2224
     * <code>Reader</code> then the reader must contain the number of characters specified
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2225
     * by scaleOrLength. If these conditions are not true the driver will generate a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2226
     * <code>SQLException</code> when the statement is executed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2227
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2228
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2229
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2230
     * @param scaleOrLength for an object of <code>java.math.BigDecimal</code> ,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2231
     *          this is the number of digits after the decimal point. For
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2232
     *          Java Object types <code>InputStream</code> and <code>Reader</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2233
     *          this is the length
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2234
     *          of the data in the stream or reader.  For all other types,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2235
     *          this value will be ignored.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2236
     * @exception SQLException if the columnLabel is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2237
     * if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2238
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2239
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2240
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2241
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2242
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2243
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2244
    void updateObject(String columnLabel, Object x, int scaleOrLength)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2245
      throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2246
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2247
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2248
     * Updates the designated column with an <code>Object</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2249
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2250
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2251
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2252
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2253
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2254
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2255
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2256
     * @exception SQLException if the columnLabel is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2257
     * if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2258
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2259
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2260
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2261
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2262
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2263
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2264
    void updateObject(String columnLabel, Object x) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2265
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2266
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2267
     * Inserts the contents of the insert row into this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2268
     * <code>ResultSet</code> object and into the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2269
     * The cursor must be on the insert row when this method is called.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2270
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2271
     * @exception SQLException if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2272
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2273
     * this method is called on a closed result set,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2274
     * if this method is called when the cursor is not on the insert row,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2275
     * or if not all of non-nullable columns in
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2276
     * the insert row have been given a non-null value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2277
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2278
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2279
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2280
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2281
    void insertRow() throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2282
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2283
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2284
     * Updates the underlying database with the new contents of the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2285
     * current row of this <code>ResultSet</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2286
     * This method cannot be called when the cursor is on the insert row.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2287
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2288
     * @exception SQLException if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2289
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2290
     *  this method is called on a closed result set or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2291
     * if this method is called when the cursor is on the insert row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2292
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2293
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2294
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2295
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2296
    void updateRow() throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2297
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2298
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2299
     * Deletes the current row from this <code>ResultSet</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2300
     * and from the underlying database.  This method cannot be called when
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2301
     * the cursor is on the insert row.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2302
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2303
     * @exception SQLException if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2304
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2305
     * this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2306
     * or if this method is called when the cursor is on the insert row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2307
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2308
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2309
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2310
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2311
    void deleteRow() throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2312
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2313
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2314
     * Refreshes the current row with its most recent value in
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2315
     * the database.  This method cannot be called when
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2316
     * the cursor is on the insert row.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2317
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2318
     * <P>The <code>refreshRow</code> method provides a way for an
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2319
     * application to
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2320
     * explicitly tell the JDBC driver to refetch a row(s) from the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2321
     * database.  An application may want to call <code>refreshRow</code> when
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2322
     * caching or prefetching is being done by the JDBC driver to
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2323
     * fetch the latest value of a row from the database.  The JDBC driver
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2324
     * may actually refresh multiple rows at once if the fetch size is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2325
     * greater than one.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2326
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2327
     * <P> All values are refetched subject to the transaction isolation
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2328
     * level and cursor sensitivity.  If <code>refreshRow</code> is called after
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2329
     * calling an updater method, but before calling
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2330
     * the method <code>updateRow</code>, then the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2331
     * updates made to the row are lost.  Calling the method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2332
     * <code>refreshRow</code> frequently will likely slow performance.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2333
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2334
     * @exception SQLException if a database access error
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2335
     * occurs; this method is called on a closed result set;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2336
     * the result set type is <code>TYPE_FORWARD_ONLY</code> or if this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2337
     * method is called when the cursor is on the insert row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2338
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2339
     * this method or this method is not supported for the specified result
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2340
     * set type and result set concurrency.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2341
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2342
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2343
    void refreshRow() throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2344
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2345
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2346
     * Cancels the updates made to the current row in this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2347
     * <code>ResultSet</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2348
     * This method may be called after calling an
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2349
     * updater method(s) and before calling
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2350
     * the method <code>updateRow</code> to roll back
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2351
     * the updates made to a row.  If no updates have been made or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2352
     * <code>updateRow</code> has already been called, this method has no
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2353
     * effect.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2354
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2355
     * @exception SQLException if a database access error
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2356
     *            occurs; this method is called on a closed result set;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2357
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2358
     * or if this method is called when the cursor is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2359
     *            on the insert row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2360
      * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2361
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2362
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2363
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2364
    void cancelRowUpdates() throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2365
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2366
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2367
     * Moves the cursor to the insert row.  The current cursor position is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2368
     * remembered while the cursor is positioned on the insert row.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2369
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2370
     * The insert row is a special row associated with an updatable
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2371
     * result set.  It is essentially a buffer where a new row may
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2372
     * be constructed by calling the updater methods prior to
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2373
     * inserting the row into the result set.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2374
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2375
     * Only the updater, getter,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2376
     * and <code>insertRow</code> methods may be
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2377
     * called when the cursor is on the insert row.  All of the columns in
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2378
     * a result set must be given a value each time this method is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2379
     * called before calling <code>insertRow</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2380
     * An updater method must be called before a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2381
     * getter method can be called on a column value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2382
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2383
     * @exception SQLException if a database access error occurs; this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2384
     * method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2385
     * or the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2386
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2387
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2388
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2389
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2390
    void moveToInsertRow() throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2391
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2392
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2393
     * Moves the cursor to the remembered cursor position, usually the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2394
     * current row.  This method has no effect if the cursor is not on
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2395
     * the insert row.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2396
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2397
     * @exception SQLException if a database access error occurs; this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2398
     * method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2399
     *  or the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2400
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2401
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2402
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2403
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2404
    void moveToCurrentRow() throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2405
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2406
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2407
     * Retrieves the <code>Statement</code> object that produced this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2408
     * <code>ResultSet</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2409
     * If the result set was generated some other way, such as by a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2410
     * <code>DatabaseMetaData</code> method, this method  may return
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2411
     * <code>null</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2412
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2413
     * @return the <code>Statment</code> object that produced
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2414
     * this <code>ResultSet</code> object or <code>null</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2415
     * if the result set was produced some other way
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2416
     * @exception SQLException if a database access error occurs
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2417
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2418
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2419
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2420
    Statement getStatement() throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2421
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2422
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2423
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2424
     * of this <code>ResultSet</code> object as an <code>Object</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2425
     * in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2426
     * If the value is an SQL <code>NULL</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2427
     * the driver returns a Java <code>null</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2428
     * This method uses the given <code>Map</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2429
     * for the custom mapping of the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2430
     * SQL structured or distinct type that is being retrieved.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2431
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2432
     * @param columnIndex the first column is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2433
     * @param map a <code>java.util.Map</code> object that contains the mapping
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2434
     * from SQL type names to classes in the Java programming language
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2435
     * @return an <code>Object</code> in the Java programming language
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2436
     * representing the SQL value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2437
     * @exception SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2438
     * if a database access error occurs
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2439
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2440
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2441
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2442
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2443
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2444
    Object getObject(int columnIndex, java.util.Map<String,Class<?>> map)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2445
        throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2446
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2447
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2448
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2449
     * of this <code>ResultSet</code> object as a <code>Ref</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2450
     * in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2451
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2452
     * @param columnIndex the first column is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2453
     * @return a <code>Ref</code> object representing an SQL <code>REF</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2454
     *         value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2455
     * @exception SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2456
     * if a database access error occurs
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2457
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2458
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2459
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2460
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2461
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2462
    Ref getRef(int columnIndex) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2463
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2464
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2465
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2466
     * of this <code>ResultSet</code> object as a <code>Blob</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2467
     * in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2468
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2469
     * @param columnIndex the first column is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2470
     * @return a <code>Blob</code> object representing the SQL
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2471
     *         <code>BLOB</code> value in the specified column
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2472
     * @exception SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2473
     * if a database access error occurs
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2474
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2475
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2476
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2477
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2478
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2479
    Blob getBlob(int columnIndex) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2480
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2481
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2482
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2483
     * of this <code>ResultSet</code> object as a <code>Clob</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2484
     * in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2485
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2486
     * @param columnIndex the first column is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2487
     * @return a <code>Clob</code> object representing the SQL
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2488
     *         <code>CLOB</code> value in the specified column
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2489
     * @exception SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2490
     * if a database access error occurs
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2491
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2492
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2493
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2494
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2495
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2496
    Clob getClob(int columnIndex) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2497
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2498
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2499
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2500
     * of this <code>ResultSet</code> object as an <code>Array</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2501
     * in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2502
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2503
     * @param columnIndex the first column is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2504
     * @return an <code>Array</code> object representing the SQL
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2505
     *         <code>ARRAY</code> value in the specified column
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2506
     * @exception SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2507
     * if a database access error occurs
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2508
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2509
      * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2510
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2511
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2512
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2513
    Array getArray(int columnIndex) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2514
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2515
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2516
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2517
     * of this <code>ResultSet</code> object as an <code>Object</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2518
     * in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2519
     * If the value is an SQL <code>NULL</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2520
     * the driver returns a Java <code>null</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2521
     * This method uses the specified <code>Map</code> object for
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2522
     * custom mapping if appropriate.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2523
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2524
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2525
     * @param map a <code>java.util.Map</code> object that contains the mapping
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2526
     * from SQL type names to classes in the Java programming language
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2527
     * @return an <code>Object</code> representing the SQL value in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2528
     *         specified column
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2529
     * @exception SQLException if the columnLabel is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2530
     * if a database access error occurs
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2531
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2532
      * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2533
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2534
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2535
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2536
    Object getObject(String columnLabel, java.util.Map<String,Class<?>> map)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2537
      throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2538
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2539
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2540
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2541
     * of this <code>ResultSet</code> object as a <code>Ref</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2542
     * in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2543
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2544
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2545
     * @return a <code>Ref</code> object representing the SQL <code>REF</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2546
     *         value in the specified column
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2547
     * @exception SQLException if the columnLabel is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2548
     * if a database access error occurs
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2549
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2550
      * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2551
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2552
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2553
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2554
    Ref getRef(String columnLabel) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2555
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2556
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2557
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2558
     * of this <code>ResultSet</code> object as a <code>Blob</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2559
     * in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2560
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2561
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2562
     * @return a <code>Blob</code> object representing the SQL <code>BLOB</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2563
     *         value in the specified column
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2564
     * @exception SQLException if the columnLabel is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2565
     * if a database access error occurs
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2566
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2567
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2568
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2569
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2570
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2571
    Blob getBlob(String columnLabel) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2572
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2573
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2574
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2575
     * of this <code>ResultSet</code> object as a <code>Clob</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2576
     * in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2577
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2578
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2579
     * @return a <code>Clob</code> object representing the SQL <code>CLOB</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2580
     * value in the specified column
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2581
     * @exception SQLException if the columnLabel is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2582
     * if a database access error occurs
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2583
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2584
      * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2585
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2586
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2587
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2588
    Clob getClob(String columnLabel) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2589
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2590
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2591
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2592
     * of this <code>ResultSet</code> object as an <code>Array</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2593
     * in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2594
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2595
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2596
     * @return an <code>Array</code> object representing the SQL <code>ARRAY</code> value in
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2597
     *         the specified column
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2598
     * @exception SQLException if the columnLabel is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2599
     * if a database access error occurs
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2600
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2601
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2602
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2603
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2604
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2605
    Array getArray(String columnLabel) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2606
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2607
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2608
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2609
     * of this <code>ResultSet</code> object as a <code>java.sql.Date</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2610
     * in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2611
     * This method uses the given calendar to construct an appropriate millisecond
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2612
     * value for the date if the underlying database does not store
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2613
     * timezone information.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2614
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2615
     * @param columnIndex the first column is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2616
     * @param cal the <code>java.util.Calendar</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2617
     * to use in constructing the date
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2618
     * @return the column value as a <code>java.sql.Date</code> object;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2619
     * if the value is SQL <code>NULL</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2620
     * the value returned is <code>null</code> in the Java programming language
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2621
     * @exception SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2622
     * if a database access error occurs
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2623
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2624
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2625
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2626
    java.sql.Date getDate(int columnIndex, Calendar cal) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2627
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2628
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2629
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2630
     * of this <code>ResultSet</code> object as a <code>java.sql.Date</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2631
     * in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2632
     * This method uses the given calendar to construct an appropriate millisecond
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2633
     * value for the date if the underlying database does not store
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2634
     * timezone information.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2635
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2636
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2637
     * @param cal the <code>java.util.Calendar</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2638
     * to use in constructing the date
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2639
     * @return the column value as a <code>java.sql.Date</code> object;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2640
     * if the value is SQL <code>NULL</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2641
     * the value returned is <code>null</code> in the Java programming language
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2642
     * @exception SQLException if the columnLabel is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2643
     * if a database access error occurs
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2644
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2645
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2646
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2647
    java.sql.Date getDate(String columnLabel, Calendar cal) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2648
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2649
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2650
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2651
     * of this <code>ResultSet</code> object as a <code>java.sql.Time</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2652
     * in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2653
     * This method uses the given calendar to construct an appropriate millisecond
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2654
     * value for the time if the underlying database does not store
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2655
     * timezone information.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2656
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2657
     * @param columnIndex the first column is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2658
     * @param cal the <code>java.util.Calendar</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2659
     * to use in constructing the time
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2660
     * @return the column value as a <code>java.sql.Time</code> object;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2661
     * if the value is SQL <code>NULL</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2662
     * the value returned is <code>null</code> in the Java programming language
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2663
     * @exception SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2664
     * if a database access error occurs
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2665
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2666
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2667
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2668
    java.sql.Time getTime(int columnIndex, Calendar cal) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2669
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2670
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2671
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2672
     * of this <code>ResultSet</code> object as a <code>java.sql.Time</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2673
     * in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2674
     * This method uses the given calendar to construct an appropriate millisecond
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2675
     * value for the time if the underlying database does not store
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2676
     * timezone information.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2677
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2678
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2679
     * @param cal the <code>java.util.Calendar</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2680
     * to use in constructing the time
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2681
     * @return the column value as a <code>java.sql.Time</code> object;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2682
     * if the value is SQL <code>NULL</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2683
     * the value returned is <code>null</code> in the Java programming language
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2684
     * @exception SQLException if the columnLabel is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2685
     * if a database access error occurs
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2686
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2687
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2688
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2689
    java.sql.Time getTime(String columnLabel, Calendar cal) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2690
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2691
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2692
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2693
     * of this <code>ResultSet</code> object as a <code>java.sql.Timestamp</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2694
     * in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2695
     * This method uses the given calendar to construct an appropriate millisecond
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2696
     * value for the timestamp if the underlying database does not store
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2697
     * timezone information.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2698
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2699
     * @param columnIndex the first column is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2700
     * @param cal the <code>java.util.Calendar</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2701
     * to use in constructing the timestamp
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2702
     * @return the column value as a <code>java.sql.Timestamp</code> object;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2703
     * if the value is SQL <code>NULL</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2704
     * the value returned is <code>null</code> in the Java programming language
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2705
     * @exception SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2706
     * if a database access error occurs
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2707
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2708
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2709
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2710
    java.sql.Timestamp getTimestamp(int columnIndex, Calendar cal)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2711
      throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2712
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2713
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2714
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2715
     * of this <code>ResultSet</code> object as a <code>java.sql.Timestamp</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2716
     * in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2717
     * This method uses the given calendar to construct an appropriate millisecond
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2718
     * value for the timestamp if the underlying database does not store
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2719
     * timezone information.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2720
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2721
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2722
     * @param cal the <code>java.util.Calendar</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2723
     * to use in constructing the date
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2724
     * @return the column value as a <code>java.sql.Timestamp</code> object;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2725
     * if the value is SQL <code>NULL</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2726
     * the value returned is <code>null</code> in the Java programming language
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2727
     * @exception SQLException if the columnLabel is not valid or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2728
     * if a database access error occurs
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2729
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2730
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2731
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2732
    java.sql.Timestamp getTimestamp(String columnLabel, Calendar cal)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2733
      throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2734
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2735
    //-------------------------- JDBC 3.0 ----------------------------------------
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2736
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2737
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2738
     * The constant indicating that open <code>ResultSet</code> objects with this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2739
     * holdability will remain open when the current transaction is commited.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2740
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2741
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2742
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2743
    int HOLD_CURSORS_OVER_COMMIT = 1;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2744
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2745
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2746
     * The constant indicating that open <code>ResultSet</code> objects with this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2747
     * holdability will be closed when the current transaction is commited.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2748
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2749
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2750
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2751
    int CLOSE_CURSORS_AT_COMMIT = 2;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2752
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2753
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2754
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2755
     * of this <code>ResultSet</code> object as a <code>java.net.URL</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2756
     * object in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2757
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2758
     * @param columnIndex the index of the column 1 is the first, 2 is the second,...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2759
     * @return the column value as a <code>java.net.URL</code> object;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2760
     * if the value is SQL <code>NULL</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2761
     * the value returned is <code>null</code> in the Java programming language
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2762
     * @exception SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2763
     * if a database access error occurs; this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2764
     * is called on a closed result set or if a URL is malformed
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2765
      * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2766
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2767
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2768
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2769
    java.net.URL getURL(int columnIndex) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2770
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2771
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2772
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2773
     * of this <code>ResultSet</code> object as a <code>java.net.URL</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2774
     * object in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2775
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2776
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2777
     * @return the column value as a <code>java.net.URL</code> object;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2778
     * if the value is SQL <code>NULL</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2779
     * the value returned is <code>null</code> in the Java programming language
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2780
     * @exception SQLException if the columnLabel is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2781
     * if a database access error occurs; this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2782
     * is called on a closed result set or if a URL is malformed
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2783
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2784
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2785
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2786
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2787
    java.net.URL getURL(String columnLabel) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2788
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2789
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2790
     * Updates the designated column with a <code>java.sql.Ref</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2791
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2792
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2793
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2794
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2795
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2796
     * @param columnIndex the first column is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2797
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2798
     * @exception SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2799
     * if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2800
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2801
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2802
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2803
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2804
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2805
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2806
    void updateRef(int columnIndex, java.sql.Ref x) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2807
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2808
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2809
     * Updates the designated column with a <code>java.sql.Ref</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2810
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2811
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2812
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2813
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2814
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2815
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2816
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2817
     * @exception SQLException if the columnLabel is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2818
     * if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2819
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2820
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2821
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2822
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2823
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2824
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2825
    void updateRef(String columnLabel, java.sql.Ref x) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2826
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2827
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2828
     * Updates the designated column with a <code>java.sql.Blob</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2829
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2830
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2831
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2832
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2833
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2834
     * @param columnIndex the first column is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2835
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2836
     * @exception SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2837
     * if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2838
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2839
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2840
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2841
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2842
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2843
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2844
    void updateBlob(int columnIndex, java.sql.Blob x) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2845
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2846
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2847
     * Updates the designated column with a <code>java.sql.Blob</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2848
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2849
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2850
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2851
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2852
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2853
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2854
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2855
     * @exception SQLException if the columnLabel is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2856
     * if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2857
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2858
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2859
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2860
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2861
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2862
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2863
    void updateBlob(String columnLabel, java.sql.Blob x) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2864
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2865
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2866
     * Updates the designated column with a <code>java.sql.Clob</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2867
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2868
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2869
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2870
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2871
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2872
     * @param columnIndex the first column is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2873
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2874
     * @exception SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2875
     * if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2876
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2877
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2878
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2879
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2880
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2881
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2882
    void updateClob(int columnIndex, java.sql.Clob x) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2883
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2884
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2885
     * Updates the designated column with a <code>java.sql.Clob</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2886
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2887
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2888
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2889
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2890
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2891
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2892
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2893
     * @exception SQLException if the columnLabel is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2894
     * if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2895
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2896
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2897
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2898
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2899
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2900
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2901
    void updateClob(String columnLabel, java.sql.Clob x) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2902
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2903
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2904
     * Updates the designated column with a <code>java.sql.Array</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2905
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2906
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2907
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2908
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2909
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2910
     * @param columnIndex the first column is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2911
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2912
     * @exception SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2913
     * if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2914
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2915
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2916
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2917
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2918
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2919
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2920
    void updateArray(int columnIndex, java.sql.Array x) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2921
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2922
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2923
     * Updates the designated column with a <code>java.sql.Array</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2924
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2925
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2926
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2927
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2928
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2929
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2930
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2931
     * @exception SQLException if the columnLabel is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2932
     * if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2933
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2934
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2935
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2936
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2937
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2938
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2939
    void updateArray(String columnLabel, java.sql.Array x) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2940
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2941
    //------------------------- JDBC 4.0 -----------------------------------
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2942
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2943
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2944
     * Retrieves the value of the designated column in the current row of this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2945
     * <code>ResultSet</code> object as a <code>java.sql.RowId</code> object in the Java
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2946
     * programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2947
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2948
     * @param columnIndex the first column is 1, the second 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2949
     * @return the column value; if the value is a SQL <code>NULL</code> the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2950
     *     value returned is <code>null</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2951
     * @throws SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2952
     * if a database access error occurs
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2953
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2954
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2955
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2956
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2957
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2958
    RowId getRowId(int columnIndex) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2959
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2960
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2961
     * Retrieves the value of the designated column in the current row of this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2962
     * <code>ResultSet</code> object as a <code>java.sql.RowId</code> object in the Java
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2963
     * programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2964
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2965
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2966
     * @return the column value ; if the value is a SQL <code>NULL</code> the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2967
     *     value returned is <code>null</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2968
     * @throws SQLException if the columnLabel is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2969
     * if a database access error occurs
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2970
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2971
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2972
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2973
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2974
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2975
    RowId getRowId(String columnLabel) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2976
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2977
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2978
     * Updates the designated column with a <code>RowId</code> value. The updater
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2979
     * methods are used to update column values in the current row or the insert
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2980
     * row. The updater methods do not update the underlying database; instead
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2981
     * the <code>updateRow</code> or <code>insertRow</code> methods are called
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2982
     * to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2983
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2984
     * @param columnIndex the first column is 1, the second 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2985
     * @param x the column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2986
     * @exception SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2987
     * if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2988
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2989
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2990
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2991
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2992
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2993
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2994
    void updateRowId(int columnIndex, RowId x) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2995
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2996
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2997
     * Updates the designated column with a <code>RowId</code> value. The updater
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2998
     * methods are used to update column values in the current row or the insert
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2999
     * row. The updater methods do not update the underlying database; instead
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3000
     * the <code>updateRow</code> or <code>insertRow</code> methods are called
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3001
     * to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3002
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3003
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3004
     * @param x the column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3005
     * @exception SQLException if the columnLabel is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3006
     * if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3007
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3008
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3009
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3010
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3011
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3012
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3013
    void updateRowId(String columnLabel, RowId x) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3014
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3015
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3016
     * Retrieves the holdability of this <code>ResultSet</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3017
     * @return  either <code>ResultSet.HOLD_CURSORS_OVER_COMMIT</code> or <code>ResultSet.CLOSE_CURSORS_AT_COMMIT</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3018
     * @throws SQLException if a database access error occurs
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3019
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3020
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3021
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3022
    int getHoldability() throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3023
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3024
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3025
     * Retrieves whether this <code>ResultSet</code> object has been closed. A <code>ResultSet</code> is closed if the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3026
     * method close has been called on it, or if it is automatically closed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3027
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3028
     * @return true if this <code>ResultSet</code> object is closed; false if it is still open
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3029
     * @throws SQLException if a database access error occurs
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3030
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3031
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3032
    boolean isClosed() throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3033
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3034
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3035
     * Updates the designated column with a <code>String</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3036
     * It is intended for use when updating <code>NCHAR</code>,<code>NVARCHAR</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3037
     * and <code>LONGNVARCHAR</code> columns.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3038
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3039
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3040
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3041
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3042
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3043
     * @param columnIndex the first column is 1, the second 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3044
     * @param nString the value for the column to be updated
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3045
     * @throws SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3046
     * if the driver does not support national
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3047
     *         character sets;  if the driver can detect that a data conversion
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3048
     *  error could occur; this method is called on a closed result set;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3049
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3050
     * or if a database access error occurs
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3051
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3052
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3053
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3054
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3055
    void updateNString(int columnIndex, String nString) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3056
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3057
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3058
     * Updates the designated column with a <code>String</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3059
     * It is intended for use when updating <code>NCHAR</code>,<code>NVARCHAR</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3060
     * and <code>LONGNVARCHAR</code> columns.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3061
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3062
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3063
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3064
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3065
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3066
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3067
     * @param nString the value for the column to be updated
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3068
     * @throws SQLException if the columnLabel is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3069
     * if the driver does not support national
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3070
     *         character sets;  if the driver can detect that a data conversion
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3071
     *  error could occur; this method is called on a closed result set;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3072
     * the result set concurrency is <CODE>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3073
     *  or if a database access error occurs
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3074
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3075
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3076
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3077
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3078
    void updateNString(String columnLabel, String nString) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3079
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3080
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3081
     * Updates the designated column with a <code>java.sql.NClob</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3082
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3083
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3084
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3085
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3086
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3087
     * @param columnIndex the first column is 1, the second 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3088
     * @param nClob the value for the column to be updated
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3089
     * @throws SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3090
     * if the driver does not support national
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3091
     *         character sets;  if the driver can detect that a data conversion
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3092
     *  error could occur; this method is called on a closed result set;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3093
     * if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3094
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3095
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3096
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3097
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3098
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3099
    void updateNClob(int columnIndex, NClob nClob) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3100
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3101
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3102
     * Updates the designated column with a <code>java.sql.NClob</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3103
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3104
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3105
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3106
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3107
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3108
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3109
     * @param nClob the value for the column to be updated
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3110
     * @throws SQLException if the columnLabel is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3111
     * if the driver does not support national
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3112
     *         character sets;  if the driver can detect that a data conversion
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3113
     *  error could occur; this method is called on a closed result set;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3114
     *  if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3115
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3116
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3117
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3118
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3119
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3120
    void updateNClob(String columnLabel, NClob nClob) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3121
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3122
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3123
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3124
     * of this <code>ResultSet</code> object as a <code>NClob</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3125
     * in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3126
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3127
     * @param columnIndex the first column is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3128
     * @return a <code>NClob</code> object representing the SQL
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3129
     *         <code>NCLOB</code> value in the specified column
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3130
     * @exception SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3131
     * if the driver does not support national
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3132
     *         character sets;  if the driver can detect that a data conversion
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3133
     *  error could occur; this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3134
     * or if a database access error occurs
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3135
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3136
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3137
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3138
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3139
    NClob getNClob(int columnIndex) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3140
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3141
  /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3142
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3143
     * of this <code>ResultSet</code> object as a <code>NClob</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3144
     * in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3145
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3146
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3147
     * @return a <code>NClob</code> object representing the SQL <code>NCLOB</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3148
     * value in the specified column
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3149
     * @exception SQLException if the columnLabel is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3150
   * if the driver does not support national
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3151
     *         character sets;  if the driver can detect that a data conversion
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3152
     *  error could occur; this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3153
     * or if a database access error occurs
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3154
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3155
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3156
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3157
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3158
    NClob getNClob(String columnLabel) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3159
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3160
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3161
     * Retrieves the value of the designated column in  the current row of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3162
     *  this <code>ResultSet</code> as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3163
     * <code>java.sql.SQLXML</code> object in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3164
     * @param columnIndex the first column is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3165
     * @return a <code>SQLXML</code> object that maps an <code>SQL XML</code> value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3166
     * @throws SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3167
     * if a database access error occurs
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3168
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3169
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3170
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3171
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3172
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3173
    SQLXML getSQLXML(int columnIndex) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3174
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3175
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3176
     * Retrieves the value of the designated column in  the current row of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3177
     *  this <code>ResultSet</code> as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3178
     * <code>java.sql.SQLXML</code> object in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3179
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3180
     * @return a <code>SQLXML</code> object that maps an <code>SQL XML</code> value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3181
     * @throws SQLException if the columnLabel is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3182
     * if a database access error occurs
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3183
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3184
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3185
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3186
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3187
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3188
    SQLXML getSQLXML(String columnLabel) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3189
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3190
     * Updates the designated column with a <code>java.sql.SQLXML</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3191
     * The updater
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3192
     * methods are used to update column values in the current row or the insert
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3193
     * row. The updater methods do not update the underlying database; instead
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3194
     * the <code>updateRow</code> or <code>insertRow</code> methods are called
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3195
     * to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3196
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3197
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3198
     * @param columnIndex the first column is 1, the second 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3199
     * @param xmlObject the value for the column to be updated
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3200
     * @throws SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3201
     * if a database access error occurs; this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3202
     *  is called on a closed result set;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3203
     * the <code>java.xml.transform.Result</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3204
     *  <code>Writer</code> or <code>OutputStream</code> has not been closed
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3205
     * for the <code>SQLXML</code> object;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3206
     *  if there is an error processing the XML value or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3207
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>.  The <code>getCause</code> method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3208
     *  of the exception may provide a more detailed exception, for example, if the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3209
     *  stream does not contain valid XML.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3210
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3211
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3212
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3213
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3214
    void updateSQLXML(int columnIndex, SQLXML xmlObject) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3215
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3216
     * Updates the designated column with a <code>java.sql.SQLXML</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3217
     * The updater
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3218
     * methods are used to update column values in the current row or the insert
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3219
     * row. The updater methods do not update the underlying database; instead
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3220
     * the <code>updateRow</code> or <code>insertRow</code> methods are called
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3221
     * to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3222
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3223
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3224
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3225
     * @param xmlObject the column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3226
     * @throws SQLException if the columnLabel is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3227
     * if a database access error occurs; this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3228
     *  is called on a closed result set;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3229
     * the <code>java.xml.transform.Result</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3230
     *  <code>Writer</code> or <code>OutputStream</code> has not been closed
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3231
     * for the <code>SQLXML</code> object;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3232
     *  if there is an error processing the XML value or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3233
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>.  The <code>getCause</code> method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3234
     *  of the exception may provide a more detailed exception, for example, if the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3235
     *  stream does not contain valid XML.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3236
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3237
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3238
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3239
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3240
    void updateSQLXML(String columnLabel, SQLXML xmlObject) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3241
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3242
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3243
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3244
     * of this <code>ResultSet</code> object as
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3245
     * a <code>String</code> in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3246
     * It is intended for use when
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3247
     * accessing  <code>NCHAR</code>,<code>NVARCHAR</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3248
     * and <code>LONGNVARCHAR</code> columns.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3249
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3250
     * @param columnIndex the first column is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3251
     * @return the column value; if the value is SQL <code>NULL</code>, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3252
     * value returned is <code>null</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3253
     * @exception SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3254
     * if a database access error occurs
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3255
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3256
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3257
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3258
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3259
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3260
    String getNString(int columnIndex) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3261
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3262
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3263
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3264
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3265
     * of this <code>ResultSet</code> object as
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3266
     * a <code>String</code> in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3267
     * It is intended for use when
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3268
     * accessing  <code>NCHAR</code>,<code>NVARCHAR</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3269
     * and <code>LONGNVARCHAR</code> columns.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3270
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3271
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3272
     * @return the column value; if the value is SQL <code>NULL</code>, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3273
     * value returned is <code>null</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3274
     * @exception SQLException if the columnLabel is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3275
     * if a database access error occurs
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3276
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3277
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3278
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3279
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3280
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3281
    String getNString(String columnLabel) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3282
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3283
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3284
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3285
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3286
     * of this <code>ResultSet</code> object as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3287
     * <code>java.io.Reader</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3288
     * It is intended for use when
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3289
     * accessing  <code>NCHAR</code>,<code>NVARCHAR</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3290
     * and <code>LONGNVARCHAR</code> columns.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3291
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3292
     * @return a <code>java.io.Reader</code> object that contains the column
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3293
     * value; if the value is SQL <code>NULL</code>, the value returned is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3294
     * <code>null</code> in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3295
     * @param columnIndex the first column is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3296
     * @exception SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3297
     * if a database access error occurs
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3298
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3299
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3300
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3301
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3302
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3303
    java.io.Reader getNCharacterStream(int columnIndex) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3304
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3305
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3306
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3307
     * of this <code>ResultSet</code> object as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3308
     * <code>java.io.Reader</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3309
     * It is intended for use when
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3310
     * accessing  <code>NCHAR</code>,<code>NVARCHAR</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3311
     * and <code>LONGNVARCHAR</code> columns.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3312
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3313
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3314
     * @return a <code>java.io.Reader</code> object that contains the column
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3315
     * value; if the value is SQL <code>NULL</code>, the value returned is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3316
     * <code>null</code> in the Java programming language
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3317
     * @exception SQLException if the columnLabel is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3318
     * if a database access error occurs
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3319
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3320
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3321
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3322
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3323
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3324
    java.io.Reader getNCharacterStream(String columnLabel) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3325
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3326
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3327
     * Updates the designated column with a character stream value, which will have
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3328
     * the specified number of bytes.   The
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3329
     * driver does the necessary conversion from Java character format to
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3330
     * the national character set in the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3331
     * It is intended for use when
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3332
     * updating  <code>NCHAR</code>,<code>NVARCHAR</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3333
     * and <code>LONGNVARCHAR</code> columns.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3334
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3335
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3336
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3337
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3338
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3339
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3340
     * @param columnIndex the first column is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3341
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3342
     * @param length the length of the stream
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3343
     * @exception SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3344
     * if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3345
     * the result set concurrency is <code>CONCUR_READ_ONLY</code> or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3346
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3347
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3348
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3349
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3350
    void updateNCharacterStream(int columnIndex,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3351
                             java.io.Reader x,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3352
                             long length) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3353
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3354
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3355
     * Updates the designated column with a character stream value, which will have
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3356
     * the specified number of bytes.  The
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3357
     * driver does the necessary conversion from Java character format to
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3358
     * the national character set in the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3359
     * It is intended for use when
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3360
     * updating  <code>NCHAR</code>,<code>NVARCHAR</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3361
     * and <code>LONGNVARCHAR</code> columns.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3362
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3363
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3364
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3365
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3366
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3367
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3368
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3369
     * @param reader the <code>java.io.Reader</code> object containing
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3370
     *        the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3371
     * @param length the length of the stream
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3372
     * @exception SQLException if the columnLabel is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3373
     * if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3374
     * the result set concurrency is <code>CONCUR_READ_ONLY</code> or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3375
      * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3376
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3377
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3378
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3379
    void updateNCharacterStream(String columnLabel,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3380
                             java.io.Reader reader,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3381
                             long length) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3382
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3383
     * Updates the designated column with an ascii stream value, which will have
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3384
     * the specified number of bytes.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3385
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3386
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3387
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3388
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3389
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3390
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3391
     * @param columnIndex the first column is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3392
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3393
     * @param length the length of the stream
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3394
     * @exception SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3395
     * if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3396
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3397
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3398
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3399
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3400
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3401
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3402
    void updateAsciiStream(int columnIndex,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3403
                           java.io.InputStream x,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3404
                           long length) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3405
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3406
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3407
     * Updates the designated column with a binary stream value, which will have
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3408
     * the specified number of bytes.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3409
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3410
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3411
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3412
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3413
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3414
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3415
     * @param columnIndex the first column is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3416
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3417
     * @param length the length of the stream
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3418
     * @exception SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3419
     * if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3420
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3421
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3422
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3423
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3424
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3425
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3426
    void updateBinaryStream(int columnIndex,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3427
                            java.io.InputStream x,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3428
                            long length) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3429
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3430
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3431
     * Updates the designated column with a character stream value, which will have
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3432
     * the specified number of bytes.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3433
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3434
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3435
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3436
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3437
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3438
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3439
     * @param columnIndex the first column is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3440
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3441
     * @param length the length of the stream
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3442
     * @exception SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3443
     * if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3444
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3445
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3446
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3447
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3448
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3449
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3450
    void updateCharacterStream(int columnIndex,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3451
                             java.io.Reader x,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3452
                             long length) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3453
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3454
     * Updates the designated column with an ascii stream value, which will have
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3455
     * the specified number of bytes.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3456
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3457
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3458
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3459
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3460
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3461
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3462
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3463
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3464
     * @param length the length of the stream
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3465
     * @exception SQLException if the columnLabel is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3466
     * if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3467
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3468
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3469
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3470
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3471
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3472
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3473
    void updateAsciiStream(String columnLabel,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3474
                           java.io.InputStream x,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3475
                           long length) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3476
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3477
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3478
     * Updates the designated column with a binary stream value, which will have
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3479
     * the specified number of bytes.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3480
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3481
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3482
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3483
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3484
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3485
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3486
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3487
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3488
     * @param length the length of the stream
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3489
     * @exception SQLException if the columnLabel is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3490
     * if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3491
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3492
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3493
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3494
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3495
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3496
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3497
    void updateBinaryStream(String columnLabel,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3498
                            java.io.InputStream x,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3499
                            long length) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3500
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3501
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3502
     * Updates the designated column with a character stream value, which will have
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3503
     * the specified number of bytes.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3504
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3505
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3506
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3507
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3508
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3509
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3510
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3511
     * @param reader the <code>java.io.Reader</code> object containing
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3512
     *        the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3513
     * @param length the length of the stream
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3514
     * @exception SQLException if the columnLabel is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3515
     * if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3516
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3517
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3518
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3519
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3520
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3521
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3522
    void updateCharacterStream(String columnLabel,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3523
                             java.io.Reader reader,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3524
                             long length) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3525
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3526
     * Updates the designated column using the given input stream, which
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3527
     * will have the specified number of bytes.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3528
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3529
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3530
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3531
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3532
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3533
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3534
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3535
     * @param columnIndex the first column is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3536
     * @param inputStream An object that contains the data to set the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3537
     * value to.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3538
     * @param length the number of bytes in the parameter data.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3539
     * @exception SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3540
     * if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3541
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3542
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3543
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3544
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3545
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3546
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3547
    void updateBlob(int columnIndex, InputStream inputStream, long length) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3548
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3549
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3550
     * Updates the designated column using the given input stream, which
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3551
     * will have the specified number of bytes.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3552
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3553
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3554
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3555
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3556
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3557
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3558
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3559
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3560
     * @param inputStream An object that contains the data to set the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3561
     * value to.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3562
     * @param length the number of bytes in the parameter data.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3563
     * @exception SQLException if the columnLabel is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3564
     * if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3565
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3566
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3567
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3568
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3569
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3570
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3571
    void updateBlob(String columnLabel, InputStream inputStream, long length) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3572
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3573
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3574
     * Updates the designated column using the given <code>Reader</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3575
     * object, which is the given number of characters long.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3576
     * When a very large UNICODE value is input to a <code>LONGVARCHAR</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3577
     * parameter, it may be more practical to send it via a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3578
     * <code>java.io.Reader</code> object. The JDBC driver will
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3579
     * do any necessary conversion from UNICODE to the database char format.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3580
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3581
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3582
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3583
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3584
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3585
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3586
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3587
     * @param columnIndex the first column is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3588
     * @param reader An object that contains the data to set the parameter value to.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3589
     * @param length the number of characters in the parameter data.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3590
     * @exception SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3591
     * if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3592
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3593
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3594
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3595
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3596
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3597
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3598
    void updateClob(int columnIndex,  Reader reader, long length) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3599
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3600
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3601
     * Updates the designated column using the given <code>Reader</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3602
     * object, which is the given number of characters long.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3603
     * When a very large UNICODE value is input to a <code>LONGVARCHAR</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3604
     * parameter, it may be more practical to send it via a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3605
     * <code>java.io.Reader</code> object.  The JDBC driver will
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3606
     * do any necessary conversion from UNICODE to the database char format.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3607
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3608
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3609
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3610
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3611
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3612
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3613
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3614
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3615
     * @param reader An object that contains the data to set the parameter value to.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3616
     * @param length the number of characters in the parameter data.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3617
     * @exception SQLException if the columnLabel is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3618
     * if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3619
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3620
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3621
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3622
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3623
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3624
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3625
    void updateClob(String columnLabel,  Reader reader, long length) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3626
   /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3627
     * Updates the designated column using the given <code>Reader</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3628
     * object, which is the given number of characters long.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3629
     * When a very large UNICODE value is input to a <code>LONGVARCHAR</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3630
     * parameter, it may be more practical to send it via a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3631
     * <code>java.io.Reader</code> object. The JDBC driver will
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3632
     * do any necessary conversion from UNICODE to the database char format.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3633
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3634
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3635
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3636
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3637
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3638
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3639
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3640
     * @param columnIndex the first column is 1, the second 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3641
     * @param reader An object that contains the data to set the parameter value to.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3642
     * @param length the number of characters in the parameter data.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3643
     * @throws SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3644
    * if the driver does not support national
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3645
     *         character sets;  if the driver can detect that a data conversion
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3646
     *  error could occur; this method is called on a closed result set,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3647
     * if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3648
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3649
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3650
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3651
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3652
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3653
    void updateNClob(int columnIndex,  Reader reader, long length) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3654
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3655
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3656
     * Updates the designated column using the given <code>Reader</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3657
     * object, which is the given number of characters long.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3658
     * When a very large UNICODE value is input to a <code>LONGVARCHAR</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3659
     * parameter, it may be more practical to send it via a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3660
     * <code>java.io.Reader</code> object. The JDBC driver will
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3661
     * do any necessary conversion from UNICODE to the database char format.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3662
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3663
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3664
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3665
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3666
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3667
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3668
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3669
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3670
     * @param reader An object that contains the data to set the parameter value to.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3671
     * @param length the number of characters in the parameter data.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3672
     * @throws SQLException if the columnLabel is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3673
     * if the driver does not support national
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3674
     *         character sets;  if the driver can detect that a data conversion
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3675
     *  error could occur; this method is called on a closed result set;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3676
     *  if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3677
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3678
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3679
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3680
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3681
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3682
    void updateNClob(String columnLabel,  Reader reader, long length) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3683
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3684
    //---
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3685
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3686
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3687
     * Updates the designated column with a character stream value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3688
     * The data will be read from the stream
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3689
     * as needed until end-of-stream is reached.  The
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3690
     * driver does the necessary conversion from Java character format to
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3691
     * the national character set in the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3692
     * It is intended for use when
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3693
     * updating  <code>NCHAR</code>,<code>NVARCHAR</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3694
     * and <code>LONGNVARCHAR</code> columns.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3695
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3696
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3697
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3698
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3699
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3700
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3701
     * <P><B>Note:</B> Consult your JDBC driver documentation to determine if
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3702
     * it might be more efficient to use a version of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3703
     * <code>updateNCharacterStream</code> which takes a length parameter.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3704
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3705
     * @param columnIndex the first column is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3706
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3707
     * @exception SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3708
     * if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3709
     * the result set concurrency is <code>CONCUR_READ_ONLY</code> or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3710
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3711
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3712
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3713
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3714
    void updateNCharacterStream(int columnIndex,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3715
                             java.io.Reader x) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3716
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3717
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3718
     * Updates the designated column with a character stream value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3719
     * The data will be read from the stream
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3720
     * as needed until end-of-stream is reached.  The
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3721
     * driver does the necessary conversion from Java character format to
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3722
     * the national character set in the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3723
     * It is intended for use when
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3724
     * updating  <code>NCHAR</code>,<code>NVARCHAR</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3725
     * and <code>LONGNVARCHAR</code> columns.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3726
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3727
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3728
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3729
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3730
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3731
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3732
     * <P><B>Note:</B> Consult your JDBC driver documentation to determine if
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3733
     * it might be more efficient to use a version of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3734
     * <code>updateNCharacterStream</code> which takes a length parameter.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3735
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3736
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3737
     * @param reader the <code>java.io.Reader</code> object containing
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3738
     *        the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3739
     * @exception SQLException if the columnLabel is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3740
     * if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3741
     * the result set concurrency is <code>CONCUR_READ_ONLY</code> or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3742
      * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3743
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3744
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3745
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3746
    void updateNCharacterStream(String columnLabel,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3747
                             java.io.Reader reader) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3748
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3749
     * Updates the designated column with an ascii stream value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3750
     * The data will be read from the stream
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3751
     * as needed until end-of-stream is reached.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3752
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3753
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3754
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3755
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3756
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3757
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3758
     * <P><B>Note:</B> Consult your JDBC driver documentation to determine if
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3759
     * it might be more efficient to use a version of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3760
     * <code>updateAsciiStream</code> which takes a length parameter.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3761
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3762
     * @param columnIndex the first column is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3763
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3764
     * @exception SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3765
     * if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3766
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3767
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3768
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3769
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3770
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3771
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3772
    void updateAsciiStream(int columnIndex,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3773
                           java.io.InputStream x) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3774
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3775
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3776
     * Updates the designated column with a binary stream value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3777
     * The data will be read from the stream
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3778
     * as needed until end-of-stream is reached.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3779
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3780
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3781
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3782
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3783
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3784
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3785
     * <P><B>Note:</B> Consult your JDBC driver documentation to determine if
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3786
     * it might be more efficient to use a version of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3787
     * <code>updateBinaryStream</code> which takes a length parameter.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3788
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3789
     * @param columnIndex the first column is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3790
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3791
     * @exception SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3792
     * if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3793
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3794
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3795
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3796
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3797
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3798
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3799
    void updateBinaryStream(int columnIndex,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3800
                            java.io.InputStream x) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3801
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3802
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3803
     * Updates the designated column with a character stream value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3804
     * The data will be read from the stream
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3805
     * as needed until end-of-stream is reached.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3806
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3807
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3808
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3809
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3810
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3811
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3812
     * <P><B>Note:</B> Consult your JDBC driver documentation to determine if
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3813
     * it might be more efficient to use a version of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3814
     * <code>updateCharacterStream</code> which takes a length parameter.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3815
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3816
     * @param columnIndex the first column is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3817
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3818
     * @exception SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3819
     * if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3820
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3821
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3822
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3823
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3824
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3825
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3826
    void updateCharacterStream(int columnIndex,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3827
                             java.io.Reader x) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3828
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3829
     * Updates the designated column with an ascii stream value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3830
     * The data will be read from the stream
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3831
     * as needed until end-of-stream is reached.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3832
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3833
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3834
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3835
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3836
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3837
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3838
     * <P><B>Note:</B> Consult your JDBC driver documentation to determine if
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3839
     * it might be more efficient to use a version of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3840
     * <code>updateAsciiStream</code> which takes a length parameter.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3841
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3842
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3843
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3844
     * @exception SQLException if the columnLabel is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3845
     * if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3846
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3847
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3848
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3849
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3850
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3851
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3852
    void updateAsciiStream(String columnLabel,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3853
                           java.io.InputStream x) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3854
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3855
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3856
     * Updates the designated column with a binary stream value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3857
     * The data will be read from the stream
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3858
     * as needed until end-of-stream is reached.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3859
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3860
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3861
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3862
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3863
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3864
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3865
     * <P><B>Note:</B> Consult your JDBC driver documentation to determine if
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3866
     * it might be more efficient to use a version of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3867
     * <code>updateBinaryStream</code> which takes a length parameter.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3868
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3869
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3870
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3871
     * @exception SQLException if the columnLabel is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3872
     * if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3873
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3874
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3875
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3876
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3877
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3878
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3879
    void updateBinaryStream(String columnLabel,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3880
                            java.io.InputStream x) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3881
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3882
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3883
     * Updates the designated column with a character stream value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3884
     * The data will be read from the stream
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3885
     * as needed until end-of-stream is reached.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3886
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3887
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3888
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3889
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3890
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3891
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3892
     * <P><B>Note:</B> Consult your JDBC driver documentation to determine if
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3893
     * it might be more efficient to use a version of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3894
     * <code>updateCharacterStream</code> which takes a length parameter.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3895
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3896
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3897
     * @param reader the <code>java.io.Reader</code> object containing
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3898
     *        the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3899
     * @exception SQLException if the columnLabel is not valid; if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3900
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3901
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3902
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3903
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3904
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3905
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3906
    void updateCharacterStream(String columnLabel,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3907
                             java.io.Reader reader) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3908
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3909
     * Updates the designated column using the given input stream. The data will be read from the stream
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3910
     * as needed until end-of-stream is reached.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3911
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3912
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3913
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3914
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3915
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3916
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3917
     * <P><B>Note:</B> Consult your JDBC driver documentation to determine if
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3918
     * it might be more efficient to use a version of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3919
     * <code>updateBlob</code> which takes a length parameter.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3920
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3921
     * @param columnIndex the first column is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3922
     * @param inputStream An object that contains the data to set the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3923
     * value to.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3924
     * @exception SQLException if the columnIndex is not valid; if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3925
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3926
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3927
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3928
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3929
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3930
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3931
    void updateBlob(int columnIndex, InputStream inputStream) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3932
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3933
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3934
     * Updates the designated column using the given input stream. The data will be read from the stream
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3935
     * as needed until end-of-stream is reached.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3936
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3937
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3938
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3939
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3940
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3941
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3942
     *   <P><B>Note:</B> Consult your JDBC driver documentation to determine if
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3943
     * it might be more efficient to use a version of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3944
     * <code>updateBlob</code> which takes a length parameter.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3945
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3946
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3947
     * @param inputStream An object that contains the data to set the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3948
     * value to.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3949
     * @exception SQLException if the columnLabel is not valid; if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3950
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3951
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3952
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3953
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3954
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3955
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3956
    void updateBlob(String columnLabel, InputStream inputStream) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3957
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3958
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3959
     * Updates the designated column using the given <code>Reader</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3960
     * object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3961
     *  The data will be read from the stream
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3962
     * as needed until end-of-stream is reached.  The JDBC driver will
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3963
     * do any necessary conversion from UNICODE to the database char format.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3964
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3965
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3966
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3967
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3968
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3969
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3970
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3971
     *   <P><B>Note:</B> Consult your JDBC driver documentation to determine if
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3972
     * it might be more efficient to use a version of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3973
     * <code>updateClob</code> which takes a length parameter.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3974
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3975
     * @param columnIndex the first column is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3976
     * @param reader An object that contains the data to set the parameter value to.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3977
     * @exception SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3978
     * if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3979
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3980
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3981
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3982
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3983
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3984
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3985
    void updateClob(int columnIndex,  Reader reader) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3986
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3987
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3988
     * Updates the designated column using the given <code>Reader</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3989
     * object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3990
     *  The data will be read from the stream
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3991
     * as needed until end-of-stream is reached.  The JDBC driver will
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3992
     * do any necessary conversion from UNICODE to the database char format.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3993
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3994
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3995
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3996
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3997
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3998
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3999
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4000
     * <P><B>Note:</B> Consult your JDBC driver documentation to determine if
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4001
     * it might be more efficient to use a version of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4002
     * <code>updateClob</code> which takes a length parameter.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4003
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4004
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4005
     * @param reader An object that contains the data to set the parameter value to.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4006
     * @exception SQLException if the columnLabel is not valid; if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4007
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4008
     * or this method is called on a closed result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4009
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4010
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4011
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4012
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4013
    void updateClob(String columnLabel,  Reader reader) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4014
   /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4015
     * Updates the designated column using the given <code>Reader</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4016
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4017
     * The data will be read from the stream
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4018
     * as needed until end-of-stream is reached.  The JDBC driver will
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4019
     * do any necessary conversion from UNICODE to the database char format.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4020
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4021
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4022
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4023
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4024
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4025
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4026
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4027
     * <P><B>Note:</B> Consult your JDBC driver documentation to determine if
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4028
     * it might be more efficient to use a version of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4029
     * <code>updateNClob</code> which takes a length parameter.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4030
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4031
     * @param columnIndex the first column is 1, the second 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4032
     * @param reader An object that contains the data to set the parameter value to.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4033
     * @throws SQLException if the columnIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4034
    * if the driver does not support national
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4035
     *         character sets;  if the driver can detect that a data conversion
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4036
     *  error could occur; this method is called on a closed result set,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4037
     * if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4038
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4039
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4040
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4041
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4042
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4043
    void updateNClob(int columnIndex,  Reader reader) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4044
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4045
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4046
     * Updates the designated column using the given <code>Reader</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4047
     * object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4048
     * The data will be read from the stream
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4049
     * as needed until end-of-stream is reached.  The JDBC driver will
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4050
     * do any necessary conversion from UNICODE to the database char format.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4051
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4052
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4053
     * The updater methods are used to update column values in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4054
     * current row or the insert row.  The updater methods do not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4055
     * update the underlying database; instead the <code>updateRow</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4056
     * <code>insertRow</code> methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4057
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4058
     * <P><B>Note:</B> Consult your JDBC driver documentation to determine if
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4059
     * it might be more efficient to use a version of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4060
     * <code>updateNClob</code> which takes a length parameter.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4061
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4062
     * @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
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4063
     * @param reader An object that contains the data to set the parameter value to.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4064
     * @throws SQLException if the columnLabel is not valid; if the driver does not support national
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4065
     *         character sets;  if the driver can detect that a data conversion
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4066
     *  error could occur; this method is called on a closed result set;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4067
     *  if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4068
     * the result set concurrency is <code>CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4069
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4070
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4071
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4072
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4073
    void updateNClob(String columnLabel,  Reader reader) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4074
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4075
}