jdk/src/java.sql.rowset/share/classes/com/sun/rowset/internal/SyncResolverImpl.java
author martin
Thu, 30 Oct 2014 07:31:41 -0700
changeset 28059 e576535359cc
parent 25859 3317bb8137f4
child 31061 fead7d86d75f
permissions -rw-r--r--
8067377: My hobby: caning, then then canning, the the can-can Summary: Fix ALL the stutters! Reviewed-by: rriggs, mchung, lancea
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
23010
6dadb192ad81 8029235: Update copyright year to match last edit in jdk8 jdk repository for 2013
lana
parents: 21278
diff changeset
     2
 * Copyright (c) 2004, 2013, Oracle and/or its affiliates. All rights reserved.
2
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
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
2
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
 *
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    23
 * questions.
2
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 com.sun.rowset.internal;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
import java.sql.*;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
import javax.sql.*;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
import java.util.*;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
import java.math.BigDecimal;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
import javax.sql.rowset.*;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
import javax.sql.rowset.spi.*;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
import com.sun.rowset.*;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
import java.io.IOException;
6530
bfb7b294dd14 6680198: UnmarshalException caused by incompatible serialVersionUID
lancea
parents: 5506
diff changeset
    38
import java.io.ObjectInputStream;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
 * There will be two sets of data which will be maintained by the rowset at the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
 * time of synchronization. The <code>SyncProvider</code> will utilize the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
 * <code>SyncResolver</code> to synchronize the changes back to database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
public class SyncResolverImpl extends CachedRowSetImpl implements SyncResolver {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
     * This CachedRowSet object will encapsulate a rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
     * which will be sync'ed with the datasource but will
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
     * contain values in rows where there is conflict.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
     * For rows other than conflict, it will *not* contain
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
     * any data. For rows containing conflict it will
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
     * return either of the three values set by SyncResolver.*_CONFLICT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
     * from getStatus()
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
    private CachedRowSetImpl crsRes;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
     * This is the actual CachedRowSet object
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
     * which is being synchronized back to
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
     * datasource.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
    private CachedRowSetImpl crsSync;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
     *  This ArrayList will contain the status of a row
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
     *  from the SyncResolver.* values else it will be null.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
     */
11129
f9ad1aadf3fa 7116445: Miscellaneous warnings in the JDBC/RowSet classes
lancea
parents: 6530
diff changeset
    68
    private ArrayList<?> stats;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
     * The RowSetWriter associated with the original
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
     * CachedRowSet object which is being synchronized.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
    private CachedRowSetWriter crw;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
     * Row number identifier
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
    private int rowStatus;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
     * This will contain the size of the <code>CachedRowSet</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
    private int sz;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
     * The <code>Connection</code> handle used to synchronize the changes
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
     * back to datasource. This is the same connection handle as was passed
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
     * to the CachedRowSet while fetching the data.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
    private transient Connection con;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
     * The <code>CachedRowSet</code> object which will encapsulate
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
     * a row at any time. This will be built from CachedRowSet and
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
     * SyncResolver values. Synchronization takes place on a row by
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
     * row basis encapsulated as a CahedRowSet.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
    private CachedRowSet row;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
    private JdbcRowSetResourceBundle resBundle;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
     * Public constructor
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
    public SyncResolverImpl() throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
        try {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
            crsSync = new CachedRowSetImpl();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
            crsRes = new CachedRowSetImpl();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
            crw = new CachedRowSetWriter();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
            row = new CachedRowSetImpl();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
            rowStatus = 1;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
            try {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
                resBundle = JdbcRowSetResourceBundle.getJdbcRowSetResourceBundle();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
            } catch(IOException ioe) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
                throw new RuntimeException(ioe);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
        } catch(SQLException sqle) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
     }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
     * Retrieves the conflict status of the current row of this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
     * <code>SyncResolver</code>, which indicates the operationthe <code>RowSet</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
     * object was attempting when the conflict occurred.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
     * @return one of the following constants:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
     *         <code>SyncResolver.UPDATE_ROW_CONFLICT</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
     *         <code>SyncResolver.DELETE_ROW_CONFLICT</code>, or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
     *         <code>SyncResolver.INSERT_ROW_CONFLICT</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
    public int getStatus() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
        return ((Integer)stats.get(rowStatus-1)).intValue();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
     * Retrieves the value in the designated column in the current row of this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
     * <code>SyncResolver</code> object, which is the value that caused a conflict.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
     * @param index <code>int</code> designating the column in this row of this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
     *        <code>SyncResolver</code> object from which to retrieve the value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
     *        causing a conflict
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
    public Object getConflictValue(int index) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
        try {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
             return crsRes.getObject(index);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
        } catch(SQLException sqle) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
            throw new SQLException(sqle.getMessage());
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
     * Retrieves the value in the designated column in the current row of this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
     * <code>SyncResolver</code> object, which is the value that caused a conflict.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
     * @param columnName a <code>String</code> object designating the column in this row of this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
     *        <code>SyncResolver</code> object from which to retrieve the value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
     *        causing a conflict
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
    public Object getConflictValue(String columnName) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
        try {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
             return crsRes.getObject(columnName);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
        } catch(SQLException sqle) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
             throw new SQLException(sqle.getMessage());
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
     * Sets <i>obj</i> as the value in column <i>index</i> in the current row of the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
     * <code>RowSet</code> object. This value is the resolved value that is to be
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
     * persisted in the data source.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
     * @param index an <code>int</code> giving the number of the column into which to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
     *        set the value to be persisted
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
     * @param obj an <code>Object</code> that is the value to be set in the data source
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
    public void setResolvedValue(int index, Object obj) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
        // modify method to throw SQLException in spec
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
         * When a value is resolved properly make it to null
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
         * inside crsRes for that column.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
         *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
         * For more than one conflicts in the row,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
         * check for the last resolved value of the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
         * (Note: it can be resolved randomly for same row)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
         * then sync back immediately.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
         **/
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
        try {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
            // check whether the index is in range
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
            if(index<=0 || index > crsSync.getMetaData().getColumnCount() ) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
                throw new SQLException(resBundle.handleGetObject("syncrsimpl.indexval").toString()+ index);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
             // check whether index col is in conflict
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
            if(crsRes.getObject(index) == null) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
                throw new SQLException(resBundle.handleGetObject("syncrsimpl.noconflict").toString());
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
        } catch (SQLException sqle) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
            // modify method to throw for SQLException
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
            throw new SQLException(sqle.getMessage());
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
        try {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
             boolean bool = true;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
             /** Check resolved value to be either of conflict
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
               * or in rowset else throw sql exception.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
               * If we allow a value other than that in CachedRowSet or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
               * datasource we will end up in looping the loop of exceptions.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
              **/
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
             if( ((crsSync.getObject(index)).toString()).equals(obj.toString()) ||
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
                     ((crsRes.getObject(index)).toString()).equals(obj.toString()) ) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
                /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
                 * Check whether this is the only conflict in the row.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
                 * If yes, synchronize this row back
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
                 * which has been resolved, else wait
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
                 * for all conflicts of current row to be resolved
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
                 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
                 * Step 1: Update crsRes and make the index col as null
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
                 * i.e. resolved
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
                 * crsRes.updateObject(index, obj);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
                 **/
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
                  crsRes.updateNull(index);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
                  crsRes.updateRow();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
                 /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
                  * Step 2: Change the value in the CachedRowSetImpl object
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
                  * crsSync.updateObject(index, obj);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
                  * crsSync.updateRow();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
                  **/
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
                 if(row.size() != 1) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
                    row = buildCachedRow();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
                 }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
                 row.updateObject(index, obj);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
                 row.updateRow();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
                 for(int j=1; j < crsRes.getMetaData().getColumnCount(); j++) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
                     if(crsRes.getObject(j) != null) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
                        bool = false;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
                        break;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
                         // break out of loop and wait for other cols
90ce3da70b43 Initial load
duke
parents:
diff changeset
   245
                         // in same row to get resolved
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
                     } //end if
90ce3da70b43 Initial load
duke
parents:
diff changeset
   247
90ce3da70b43 Initial load
duke
parents:
diff changeset
   248
                  } //end for
90ce3da70b43 Initial load
duke
parents:
diff changeset
   249
90ce3da70b43 Initial load
duke
parents:
diff changeset
   250
                  if(bool) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   251
                     /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   252
                      * sync data back using CachedRowSetWriter
90ce3da70b43 Initial load
duke
parents:
diff changeset
   253
                      * construct the present row and pass it to the writer
90ce3da70b43 Initial load
duke
parents:
diff changeset
   254
                      * to write back to db.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   255
                      **/
90ce3da70b43 Initial load
duke
parents:
diff changeset
   256
                     try {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   257
                           /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   258
                            * Note : The use of CachedRowSetWriter to get *same* Connection handle.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   259
                            * The CachedRowSetWriter uses the connection handle
90ce3da70b43 Initial load
duke
parents:
diff changeset
   260
                            * from the reader, Hence will use the same connection handle
90ce3da70b43 Initial load
duke
parents:
diff changeset
   261
                            * as of original CachedRowSetImpl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   262
                            **/
90ce3da70b43 Initial load
duke
parents:
diff changeset
   263
90ce3da70b43 Initial load
duke
parents:
diff changeset
   264
                          writeData(row);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   265
90ce3da70b43 Initial load
duke
parents:
diff changeset
   266
                          //crw.writeData( (RowSetInternal)crsRow);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   267
                          //System.out.printlnt.println("12");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   268
90ce3da70b43 Initial load
duke
parents:
diff changeset
   269
                     } catch(SyncProviderException spe) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   270
                         /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   271
                          * This will occur if db is not allowing
90ce3da70b43 Initial load
duke
parents:
diff changeset
   272
                          * even after resolving the conflicts
90ce3da70b43 Initial load
duke
parents:
diff changeset
   273
                          * due to some reasons.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   274
                          * Also will prevent from going into a loop of SPE's
90ce3da70b43 Initial load
duke
parents:
diff changeset
   275
                          **/
90ce3da70b43 Initial load
duke
parents:
diff changeset
   276
                         throw new SQLException(resBundle.handleGetObject("syncrsimpl.syncnotpos").toString());
90ce3da70b43 Initial load
duke
parents:
diff changeset
   277
                     }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   278
                  } //end if(bool)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   279
90ce3da70b43 Initial load
duke
parents:
diff changeset
   280
             } else {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   281
                 throw new SQLException(resBundle.handleGetObject("syncrsimpl.valtores").toString());
90ce3da70b43 Initial load
duke
parents:
diff changeset
   282
             } //end if (crs.getObject ...) block
90ce3da70b43 Initial load
duke
parents:
diff changeset
   283
90ce3da70b43 Initial load
duke
parents:
diff changeset
   284
90ce3da70b43 Initial load
duke
parents:
diff changeset
   285
        } catch(SQLException sqle) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   286
           throw new SQLException(sqle.getMessage());
90ce3da70b43 Initial load
duke
parents:
diff changeset
   287
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   288
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   289
90ce3da70b43 Initial load
duke
parents:
diff changeset
   290
    /**
28059
e576535359cc 8067377: My hobby: caning, then then canning, the the can-can
martin
parents: 25859
diff changeset
   291
     * This passes a CachedRowSet as a row to the CachedRowSetWriter
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   292
     * after the values have been resolved, back to the datasource.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   293
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   294
     * @param row a <code>CachedRowSet</code> object which will hold the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   295
     *        values of a particular row after they have been resolved by
90ce3da70b43 Initial load
duke
parents:
diff changeset
   296
     *        the user to synchronize back to datasource.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   297
     * @throws SQLException if synchronization does not happen properly
90ce3da70b43 Initial load
duke
parents:
diff changeset
   298
     *         maybe beacuse <code>Connection</code> has timed out.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   299
     **/
90ce3da70b43 Initial load
duke
parents:
diff changeset
   300
     private void writeData(CachedRowSet row) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   301
        crw.updateResolvedConflictToDB(row, crw.getReader().connect((RowSetInternal)crsSync));
90ce3da70b43 Initial load
duke
parents:
diff changeset
   302
     }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   303
90ce3da70b43 Initial load
duke
parents:
diff changeset
   304
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   305
     * This function builds a row  as a <code>CachedRowSet</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
   306
     * which has been resolved and is ready to be synchrinized to the datasource
90ce3da70b43 Initial load
duke
parents:
diff changeset
   307
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   308
     * @throws SQLException if there is problem in building
90ce3da70b43 Initial load
duke
parents:
diff changeset
   309
     *         the metadata of the row.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   310
     **/
90ce3da70b43 Initial load
duke
parents:
diff changeset
   311
     private CachedRowSet buildCachedRow() throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   312
       int iColCount;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   313
       CachedRowSetImpl crsRow = new CachedRowSetImpl();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   314
90ce3da70b43 Initial load
duke
parents:
diff changeset
   315
       RowSetMetaDataImpl rsmd = new RowSetMetaDataImpl();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   316
       RowSetMetaDataImpl rsmdWrite = (RowSetMetaDataImpl)crsSync.getMetaData();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   317
       RowSetMetaDataImpl rsmdRow = new RowSetMetaDataImpl();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   318
90ce3da70b43 Initial load
duke
parents:
diff changeset
   319
       iColCount = rsmdWrite.getColumnCount();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   320
       rsmdRow.setColumnCount(iColCount);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   321
90ce3da70b43 Initial load
duke
parents:
diff changeset
   322
       for(int i =1;i<=iColCount;i++) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   323
          rsmdRow.setColumnType(i,rsmdWrite.getColumnType(i));
90ce3da70b43 Initial load
duke
parents:
diff changeset
   324
          rsmdRow.setColumnName(i,rsmdWrite.getColumnName(i));
90ce3da70b43 Initial load
duke
parents:
diff changeset
   325
          rsmdRow.setNullable(i,ResultSetMetaData.columnNullableUnknown);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   326
90ce3da70b43 Initial load
duke
parents:
diff changeset
   327
          try {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   328
             rsmdRow.setCatalogName(i, rsmdWrite.getCatalogName(i));
90ce3da70b43 Initial load
duke
parents:
diff changeset
   329
             rsmdRow.setSchemaName(i, rsmdWrite.getSchemaName(i));
90ce3da70b43 Initial load
duke
parents:
diff changeset
   330
          } catch(SQLException e) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   331
               e.printStackTrace();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   332
          }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   333
        } //end for
90ce3da70b43 Initial load
duke
parents:
diff changeset
   334
90ce3da70b43 Initial load
duke
parents:
diff changeset
   335
       crsRow.setMetaData(rsmdRow);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   336
90ce3da70b43 Initial load
duke
parents:
diff changeset
   337
       crsRow.moveToInsertRow();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   338
90ce3da70b43 Initial load
duke
parents:
diff changeset
   339
       for(int col=1;col<=crsSync.getMetaData().getColumnCount();col++) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   340
           crsRow.updateObject(col, crsSync.getObject(col));
90ce3da70b43 Initial load
duke
parents:
diff changeset
   341
       }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   342
90ce3da70b43 Initial load
duke
parents:
diff changeset
   343
       crsRow.insertRow();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   344
       crsRow.moveToCurrentRow();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   345
90ce3da70b43 Initial load
duke
parents:
diff changeset
   346
       crsRow.absolute(1);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   347
       crsRow.setOriginalRow();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   348
90ce3da70b43 Initial load
duke
parents:
diff changeset
   349
      try {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   350
          crsRow.setUrl(crsSync.getUrl());
90ce3da70b43 Initial load
duke
parents:
diff changeset
   351
      } catch(SQLException sqle) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   352
90ce3da70b43 Initial load
duke
parents:
diff changeset
   353
      }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   354
90ce3da70b43 Initial load
duke
parents:
diff changeset
   355
      try {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   356
          crsRow.setDataSourceName(crsSync.getCommand());
90ce3da70b43 Initial load
duke
parents:
diff changeset
   357
       } catch(SQLException sqle) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   358
90ce3da70b43 Initial load
duke
parents:
diff changeset
   359
       }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   360
90ce3da70b43 Initial load
duke
parents:
diff changeset
   361
       try {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   362
           if(crsSync.getTableName()!= null){
90ce3da70b43 Initial load
duke
parents:
diff changeset
   363
              crsRow.setTableName(crsSync.getTableName());
90ce3da70b43 Initial load
duke
parents:
diff changeset
   364
           }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   365
        } catch(SQLException sqle) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   366
90ce3da70b43 Initial load
duke
parents:
diff changeset
   367
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   368
90ce3da70b43 Initial load
duke
parents:
diff changeset
   369
       try {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   370
            if(crsSync.getCommand() != null)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   371
                crsRow.setCommand(crsSync.getCommand());
90ce3da70b43 Initial load
duke
parents:
diff changeset
   372
       } catch(SQLException sqle) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   373
90ce3da70b43 Initial load
duke
parents:
diff changeset
   374
       }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   375
90ce3da70b43 Initial load
duke
parents:
diff changeset
   376
       try {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   377
            crsRow.setKeyColumns(crsSync.getKeyColumns());
90ce3da70b43 Initial load
duke
parents:
diff changeset
   378
       } catch(SQLException sqle) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   379
90ce3da70b43 Initial load
duke
parents:
diff changeset
   380
       }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   381
       return crsRow;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   382
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   383
90ce3da70b43 Initial load
duke
parents:
diff changeset
   384
90ce3da70b43 Initial load
duke
parents:
diff changeset
   385
90ce3da70b43 Initial load
duke
parents:
diff changeset
   386
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   387
     * Sets <i>obj</i> as the value in column <i>columnName</i> in the current row of the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   388
     * <code>RowSet</code> object. This value is the resolved value that is to be
90ce3da70b43 Initial load
duke
parents:
diff changeset
   389
     * persisted in the data source.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   390
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   391
     * @param columnName a <code>String</code> object giving the name of the column
90ce3da70b43 Initial load
duke
parents:
diff changeset
   392
     *        into which to set the value to be persisted
90ce3da70b43 Initial load
duke
parents:
diff changeset
   393
     * @param obj an <code>Object</code> that is the value to be set in the data source
90ce3da70b43 Initial load
duke
parents:
diff changeset
   394
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   395
    public void setResolvedValue(String columnName, Object obj) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   396
       // modify method to throw SQLException in spec
90ce3da70b43 Initial load
duke
parents:
diff changeset
   397
       // %%% Missing implementation!
90ce3da70b43 Initial load
duke
parents:
diff changeset
   398
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   399
90ce3da70b43 Initial load
duke
parents:
diff changeset
   400
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   401
     * This function is package private,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   402
     * i.e. cannot be accesses outside this package.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   403
     * This is used to set the actual CachedRowSet
90ce3da70b43 Initial load
duke
parents:
diff changeset
   404
     * which is being synchronized to the database
90ce3da70b43 Initial load
duke
parents:
diff changeset
   405
     **/
90ce3da70b43 Initial load
duke
parents:
diff changeset
   406
   void setCachedRowSet(CachedRowSet crs) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   407
           crsSync = (CachedRowSetImpl)crs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   408
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   409
90ce3da70b43 Initial load
duke
parents:
diff changeset
   410
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   411
     * This function is package private,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   412
     * i.e. cannot be accesses outside this package.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   413
     * This is used to set the CachedRowSet formed
90ce3da70b43 Initial load
duke
parents:
diff changeset
   414
     * with conflict values.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   415
     **/
90ce3da70b43 Initial load
duke
parents:
diff changeset
   416
    void setCachedRowSetResolver(CachedRowSet crs){
90ce3da70b43 Initial load
duke
parents:
diff changeset
   417
         try {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   418
              crsRes = (CachedRowSetImpl)crs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   419
              crsRes.afterLast();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   420
              sz = crsRes.size();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   421
         } catch (SQLException sqle) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   422
            // do nothing
90ce3da70b43 Initial load
duke
parents:
diff changeset
   423
         }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   424
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   425
90ce3da70b43 Initial load
duke
parents:
diff changeset
   426
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   427
     * This function is package private,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   428
     * i.e. cannot be accesses outside this package.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   429
     * This is used to set the status of each row
90ce3da70b43 Initial load
duke
parents:
diff changeset
   430
     * to either of the values SyncResolver.*_CONFLICT
90ce3da70b43 Initial load
duke
parents:
diff changeset
   431
     **/
11129
f9ad1aadf3fa 7116445: Miscellaneous warnings in the JDBC/RowSet classes
lancea
parents: 6530
diff changeset
   432
    @SuppressWarnings("rawtypes")
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   433
    void setStatus(ArrayList status){
90ce3da70b43 Initial load
duke
parents:
diff changeset
   434
             stats = status;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   435
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   436
90ce3da70b43 Initial load
duke
parents:
diff changeset
   437
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   438
     * This function is package private,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   439
     * i.e. cannot be accesses outside this package.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   440
     * This is used to set the handle to the writer object
90ce3da70b43 Initial load
duke
parents:
diff changeset
   441
     * which will write the resolved values back to datasource
90ce3da70b43 Initial load
duke
parents:
diff changeset
   442
     **/
90ce3da70b43 Initial load
duke
parents:
diff changeset
   443
    void setCachedRowSetWriter(CachedRowSetWriter CRWriter) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   444
         crw = CRWriter;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   445
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   446
90ce3da70b43 Initial load
duke
parents:
diff changeset
   447
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   448
     * Moves the cursor down one row from its current position. A <code>SyncResolver</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   449
     * cursor is initially positioned before the first conflict row; the first call to the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   450
     * method <code>nextConflict()</code> makes the first conflict row the current row;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   451
     * the second call makes the second conflict row the current row, and so on.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   452
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   453
     * If an input stream is open for the current row, a call to the method next will
90ce3da70b43 Initial load
duke
parents:
diff changeset
   454
     * implicitly close it. A <code>SyncResolver</code> object's warning chain is cleared
90ce3da70b43 Initial load
duke
parents:
diff changeset
   455
     * when a new row
90ce3da70b43 Initial load
duke
parents:
diff changeset
   456
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   457
     * @return true if the new current row is valid; false if there are no more rows
90ce3da70b43 Initial load
duke
parents:
diff changeset
   458
     * @throws SQLException if a database access occurs
90ce3da70b43 Initial load
duke
parents:
diff changeset
   459
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   460
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   461
    public boolean nextConflict() throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   462
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   463
          * The next() method will hop from
90ce3da70b43 Initial load
duke
parents:
diff changeset
   464
          * one conflict to another
90ce3da70b43 Initial load
duke
parents:
diff changeset
   465
          *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   466
          * Internally do a crs.next() until
90ce3da70b43 Initial load
duke
parents:
diff changeset
   467
          * next conflict.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   468
          **/
90ce3da70b43 Initial load
duke
parents:
diff changeset
   469
      boolean bool = false;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   470
90ce3da70b43 Initial load
duke
parents:
diff changeset
   471
      crsSync.setShowDeleted(true);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   472
      while(crsSync.next()) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   473
           crsRes.previous();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   474
           rowStatus++;  //sz--;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   475
90ce3da70b43 Initial load
duke
parents:
diff changeset
   476
          if((rowStatus-1) >= stats.size()) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   477
             bool = false;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   478
             break;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   479
          }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   480
90ce3da70b43 Initial load
duke
parents:
diff changeset
   481
          if(((Integer)stats.get(rowStatus-1)).intValue() == SyncResolver.NO_ROW_CONFLICT) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   482
              // do nothing
90ce3da70b43 Initial load
duke
parents:
diff changeset
   483
              // bool remains as false
90ce3da70b43 Initial load
duke
parents:
diff changeset
   484
             ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   485
           } else {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   486
             bool = true;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   487
             break;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   488
           } //end if
90ce3da70b43 Initial load
duke
parents:
diff changeset
   489
90ce3da70b43 Initial load
duke
parents:
diff changeset
   490
      } //end while
90ce3da70b43 Initial load
duke
parents:
diff changeset
   491
90ce3da70b43 Initial load
duke
parents:
diff changeset
   492
        crsSync.setShowDeleted(false);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   493
        return bool;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   494
   } // end next() method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   495
90ce3da70b43 Initial load
duke
parents:
diff changeset
   496
90ce3da70b43 Initial load
duke
parents:
diff changeset
   497
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   498
     * Moves the cursor to the previous conflict row in this <code>SyncResolver</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   499
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   500
     * @return <code>true</code> if the cursor is on a valid row; <code>false</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   501
     *     if it is off the result set
90ce3da70b43 Initial load
duke
parents:
diff changeset
   502
     * @throws SQLException if a database access error occurs or the result set type
90ce3da70b43 Initial load
duke
parents:
diff changeset
   503
     *     is TYPE_FORWARD_ONLY
90ce3da70b43 Initial load
duke
parents:
diff changeset
   504
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   505
   public boolean previousConflict() throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   506
       throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   507
   }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   508
90ce3da70b43 Initial load
duke
parents:
diff changeset
   509
    //-----------------------------------------------------------------------
90ce3da70b43 Initial load
duke
parents:
diff changeset
   510
    // Properties
90ce3da70b43 Initial load
duke
parents:
diff changeset
   511
    //-----------------------------------------------------------------------
90ce3da70b43 Initial load
duke
parents:
diff changeset
   512
90ce3da70b43 Initial load
duke
parents:
diff changeset
   513
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   514
     * Sets this <code>CachedRowSetImpl</code> object's command property
90ce3da70b43 Initial load
duke
parents:
diff changeset
   515
     * to the given <code>String</code> object and clears the parameters,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   516
     * if any, that were set for the previous command.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   517
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   518
     * The command property may not be needed
90ce3da70b43 Initial load
duke
parents:
diff changeset
   519
     * if the rowset is produced by a data source, such as a spreadsheet,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   520
     * that does not support commands. Thus, this property is optional
90ce3da70b43 Initial load
duke
parents:
diff changeset
   521
     * and may be <code>null</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   522
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   523
     * @param cmd a <code>String</code> object containing an SQL query
90ce3da70b43 Initial load
duke
parents:
diff changeset
   524
     *            that will be set as the command; may be <code>null</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   525
     * @throws SQLException if an error occurs
90ce3da70b43 Initial load
duke
parents:
diff changeset
   526
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   527
    public void setCommand(String cmd) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   528
         throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   529
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   530
90ce3da70b43 Initial load
duke
parents:
diff changeset
   531
90ce3da70b43 Initial load
duke
parents:
diff changeset
   532
    //---------------------------------------------------------------------
90ce3da70b43 Initial load
duke
parents:
diff changeset
   533
    // Reading and writing data
90ce3da70b43 Initial load
duke
parents:
diff changeset
   534
    //---------------------------------------------------------------------
90ce3da70b43 Initial load
duke
parents:
diff changeset
   535
90ce3da70b43 Initial load
duke
parents:
diff changeset
   536
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   537
     * Populates this <code>CachedRowSetImpl</code> object with data from
90ce3da70b43 Initial load
duke
parents:
diff changeset
   538
     * the given <code>ResultSet</code> object.  This
90ce3da70b43 Initial load
duke
parents:
diff changeset
   539
     * method is an alternative to the method <code>execute</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   540
     * for filling the rowset with data.  The method <code>populate</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   541
     * does not require that the properties needed by the method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   542
     * <code>execute</code>, such as the <code>command</code> property,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   543
     * be set. This is true because the method <code>populate</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   544
     * is given the <code>ResultSet</code> object from
90ce3da70b43 Initial load
duke
parents:
diff changeset
   545
     * which to get data and thus does not need to use the properties
90ce3da70b43 Initial load
duke
parents:
diff changeset
   546
     * required for setting up a connection and executing this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   547
     * <code>CachedRowSetImpl</code> object's command.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   548
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   549
     * After populating this rowset with data, the method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   550
     * <code>populate</code> sets the rowset's metadata and
90ce3da70b43 Initial load
duke
parents:
diff changeset
   551
     * then sends a <code>RowSetChangedEvent</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
   552
     * to all registered listeners prior to returning.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   553
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   554
     * @param data the <code>ResultSet</code> object containing the data
90ce3da70b43 Initial load
duke
parents:
diff changeset
   555
     *             to be read into this <code>CachedRowSetImpl</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
   556
     * @throws SQLException if an error occurs; or the max row setting is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   557
     *          violated while populating the RowSet
90ce3da70b43 Initial load
duke
parents:
diff changeset
   558
     * @see #execute
90ce3da70b43 Initial load
duke
parents:
diff changeset
   559
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   560
    public void populate(ResultSet data) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   561
         throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   562
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   563
90ce3da70b43 Initial load
duke
parents:
diff changeset
   564
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   565
     * Populates this <code>CachedRowSetImpl</code> object with data,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   566
     * using the given connection to produce the result set from
90ce3da70b43 Initial load
duke
parents:
diff changeset
   567
     * which data will be read.  A second form of this method,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   568
     * which takes no arguments, uses the values from this rowset's
90ce3da70b43 Initial load
duke
parents:
diff changeset
   569
     * user, password, and either url or data source properties to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   570
     * create a new database connection. The form of <code>execute</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   571
     * that is given a connection ignores these properties.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   572
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   573
     * @param conn A standard JDBC <code>Connection</code> object that this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   574
     * <code>CachedRowSet</code> object can pass to a synchronization provider
90ce3da70b43 Initial load
duke
parents:
diff changeset
   575
     * to establish a connection to the data source
90ce3da70b43 Initial load
duke
parents:
diff changeset
   576
     * @throws SQLException if an invalid <code>Connection</code> is supplied
90ce3da70b43 Initial load
duke
parents:
diff changeset
   577
     *           or an error occurs in establishing the connection to the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   578
     *           data source
90ce3da70b43 Initial load
duke
parents:
diff changeset
   579
     * @see #populate
90ce3da70b43 Initial load
duke
parents:
diff changeset
   580
     * @see java.sql.Connection
90ce3da70b43 Initial load
duke
parents:
diff changeset
   581
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   582
    public void execute(Connection conn) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   583
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   584
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   585
90ce3da70b43 Initial load
duke
parents:
diff changeset
   586
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   587
     * Propagates all row update, insert, and delete changes to the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   588
     * underlying data source backing this <code>CachedRowSetImpl</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   589
     * object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   590
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   591
     * <b>Note</b>In the reference implementation an optimistic concurrency implementation
90ce3da70b43 Initial load
duke
parents:
diff changeset
   592
     * is provided as a sample implementation of a the <code>SyncProvider</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   593
     * abstract class.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   594
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   595
     * This method fails if any of the updates cannot be propagated back
90ce3da70b43 Initial load
duke
parents:
diff changeset
   596
     * to the data source.  When it fails, the caller can assume that
90ce3da70b43 Initial load
duke
parents:
diff changeset
   597
     * none of the updates are reflected in the data source.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   598
     * When an exception is thrown, the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
   599
     * is set to the first "updated" row that resulted in an exception
90ce3da70b43 Initial load
duke
parents:
diff changeset
   600
     * unless the row that caused the exception is a "deleted" row.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   601
     * In that case, when deleted rows are not shown, which is usually true,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   602
     * the current row is not affected.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   603
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   604
     * If no <code>SyncProvider</code> is configured, the reference implementation
90ce3da70b43 Initial load
duke
parents:
diff changeset
   605
     * leverages the <code>RIOptimisticProvider</code> available which provides the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   606
     * default and reference synchronization capabilities for disconnected
90ce3da70b43 Initial load
duke
parents:
diff changeset
   607
     * <code>RowSets</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   608
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   609
     * @throws SQLException if the cursor is on the insert row or the underlying
90ce3da70b43 Initial load
duke
parents:
diff changeset
   610
     *          reference synchronization provider fails to commit the updates
90ce3da70b43 Initial load
duke
parents:
diff changeset
   611
     *          to the datasource
90ce3da70b43 Initial load
duke
parents:
diff changeset
   612
     * @throws SyncProviderException if an internal error occurs within the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   613
     *          <code>SyncProvider</code> instance during either during the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   614
     *          process or at any time when the <code>SyncProvider</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   615
     *          instance touches the data source.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   616
     * @see #acceptChanges(java.sql.Connection)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   617
     * @see javax.sql.RowSetWriter
90ce3da70b43 Initial load
duke
parents:
diff changeset
   618
     * @see javax.sql.rowset.spi.SyncProvider
90ce3da70b43 Initial load
duke
parents:
diff changeset
   619
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   620
    public void acceptChanges() throws SyncProviderException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   621
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   622
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   623
90ce3da70b43 Initial load
duke
parents:
diff changeset
   624
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   625
     * Propagates all row update, insert, and delete changes to the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   626
     * data source backing this <code>CachedRowSetImpl</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
   627
     * using the given <code>Connection</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   628
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   629
     * The reference implementation <code>RIOptimisticProvider</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   630
     * modifies its synchronization to a write back function given
90ce3da70b43 Initial load
duke
parents:
diff changeset
   631
     * the updated connection
90ce3da70b43 Initial load
duke
parents:
diff changeset
   632
     * The reference implementation modifies its synchronization behaviour
90ce3da70b43 Initial load
duke
parents:
diff changeset
   633
     * via the <code>SyncProvider</code> to ensure the synchronization
90ce3da70b43 Initial load
duke
parents:
diff changeset
   634
     * occurs according to the updated JDBC <code>Connection</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   635
     * properties.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   636
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   637
     * @param con a standard JDBC <code>Connection</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
   638
     * @throws SQLException if the cursor is on the insert row or the underlying
90ce3da70b43 Initial load
duke
parents:
diff changeset
   639
     *                   synchronization provider fails to commit the updates
90ce3da70b43 Initial load
duke
parents:
diff changeset
   640
     *                   back to the data source
90ce3da70b43 Initial load
duke
parents:
diff changeset
   641
     * @see #acceptChanges
90ce3da70b43 Initial load
duke
parents:
diff changeset
   642
     * @see javax.sql.RowSetWriter
90ce3da70b43 Initial load
duke
parents:
diff changeset
   643
     * @see javax.sql.rowset.spi.SyncFactory
90ce3da70b43 Initial load
duke
parents:
diff changeset
   644
     * @see javax.sql.rowset.spi.SyncProvider
90ce3da70b43 Initial load
duke
parents:
diff changeset
   645
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   646
    public void acceptChanges(Connection con) throws SyncProviderException{
90ce3da70b43 Initial load
duke
parents:
diff changeset
   647
     throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   648
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   649
90ce3da70b43 Initial load
duke
parents:
diff changeset
   650
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   651
     * Restores this <code>CachedRowSetImpl</code> object to its original state,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   652
     * that is, its state before the last set of changes.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   653
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   654
     * Before returning, this method moves the cursor before the first row
90ce3da70b43 Initial load
duke
parents:
diff changeset
   655
     * and sends a <code>rowSetChanged</code> event to all registered
90ce3da70b43 Initial load
duke
parents:
diff changeset
   656
     * listeners.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   657
     * @throws SQLException if an error is occurs rolling back the RowSet
90ce3da70b43 Initial load
duke
parents:
diff changeset
   658
     *           state to the definied original value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   659
     * @see javax.sql.RowSetListener#rowSetChanged
90ce3da70b43 Initial load
duke
parents:
diff changeset
   660
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   661
    public void restoreOriginal() throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   662
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   663
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   664
90ce3da70b43 Initial load
duke
parents:
diff changeset
   665
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   666
     * Releases the current contents of this <code>CachedRowSetImpl</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   667
     * object and sends a <code>rowSetChanged</code> event object to all
90ce3da70b43 Initial load
duke
parents:
diff changeset
   668
     * registered listeners.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   669
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   670
     * @throws SQLException if an error occurs flushing the contents of
90ce3da70b43 Initial load
duke
parents:
diff changeset
   671
     *           RowSet.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   672
     * @see javax.sql.RowSetListener#rowSetChanged
90ce3da70b43 Initial load
duke
parents:
diff changeset
   673
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   674
    public void release() throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   675
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   676
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   677
90ce3da70b43 Initial load
duke
parents:
diff changeset
   678
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   679
     * Cancels deletion of the current row and notifies listeners that
90ce3da70b43 Initial load
duke
parents:
diff changeset
   680
     * a row has changed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   681
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   682
     * Note:  This method can be ignored if deleted rows are not being shown,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   683
     * which is the normal case.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   684
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   685
     * @throws SQLException if the cursor is not on a valid row
90ce3da70b43 Initial load
duke
parents:
diff changeset
   686
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   687
    public void undoDelete() throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   688
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   689
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   690
90ce3da70b43 Initial load
duke
parents:
diff changeset
   691
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   692
     * Immediately removes the current row from this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   693
     * <code>CachedRowSetImpl</code> object if the row has been inserted, and
90ce3da70b43 Initial load
duke
parents:
diff changeset
   694
     * also notifies listeners the a row has changed.  An exception is thrown
90ce3da70b43 Initial load
duke
parents:
diff changeset
   695
     * if the row is not a row that has been inserted or the cursor is before
90ce3da70b43 Initial load
duke
parents:
diff changeset
   696
     * the first row, after the last row, or on the insert row.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   697
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   698
     * This operation cannot be undone.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   699
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   700
     * @throws SQLException if an error occurs,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   701
     *                         the cursor is not on a valid row,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   702
     *                         or the row has not been inserted
90ce3da70b43 Initial load
duke
parents:
diff changeset
   703
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   704
    public void undoInsert() throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   705
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   706
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   707
90ce3da70b43 Initial load
duke
parents:
diff changeset
   708
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   709
     * Immediately reverses the last update operation if the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   710
     * row has been modified. This method can be
90ce3da70b43 Initial load
duke
parents:
diff changeset
   711
     * called to reverse updates on a all columns until all updates in a row have
90ce3da70b43 Initial load
duke
parents:
diff changeset
   712
     * been rolled back to their originating state since the last synchronization
90ce3da70b43 Initial load
duke
parents:
diff changeset
   713
     * (<code>acceptChanges</code>) or population. This method may also be called
90ce3da70b43 Initial load
duke
parents:
diff changeset
   714
     * while performing updates to the insert row.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   715
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   716
     * <code>undoUpdate</code may be called at any time during the life-time of a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   717
     * rowset, however after a synchronization has occurs this method has no
90ce3da70b43 Initial load
duke
parents:
diff changeset
   718
     * affect until further modification to the RowSet data occurs.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   719
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   720
     * @throws SQLException if cursor is before the first row, after the last
90ce3da70b43 Initial load
duke
parents:
diff changeset
   721
     *     row in rowset.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   722
     * @see #undoDelete
90ce3da70b43 Initial load
duke
parents:
diff changeset
   723
     * @see #undoInsert
90ce3da70b43 Initial load
duke
parents:
diff changeset
   724
     * @see java.sql.ResultSet#cancelRowUpdates
90ce3da70b43 Initial load
duke
parents:
diff changeset
   725
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   726
    public void undoUpdate() throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   727
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   728
90ce3da70b43 Initial load
duke
parents:
diff changeset
   729
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   730
90ce3da70b43 Initial load
duke
parents:
diff changeset
   731
    //--------------------------------------------------------------------
90ce3da70b43 Initial load
duke
parents:
diff changeset
   732
    // Views
90ce3da70b43 Initial load
duke
parents:
diff changeset
   733
    //--------------------------------------------------------------------
90ce3da70b43 Initial load
duke
parents:
diff changeset
   734
90ce3da70b43 Initial load
duke
parents:
diff changeset
   735
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   736
     * Returns a new <code>RowSet</code> object backed by the same data as
90ce3da70b43 Initial load
duke
parents:
diff changeset
   737
     * that of this <code>CachedRowSetImpl</code> object and sharing a set of cursors
90ce3da70b43 Initial load
duke
parents:
diff changeset
   738
     * with it. This allows cursors to interate over a shared set of rows, providing
90ce3da70b43 Initial load
duke
parents:
diff changeset
   739
     * multiple views of the underlying data.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   740
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   741
     * @return a <code>RowSet</code> object that is a copy of this <code>CachedRowSetImpl</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   742
     * object and shares a set of cursors with it
90ce3da70b43 Initial load
duke
parents:
diff changeset
   743
     * @throws SQLException if an error occurs or cloning is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   744
     *                         not supported
90ce3da70b43 Initial load
duke
parents:
diff changeset
   745
     * @see javax.sql.RowSetEvent
90ce3da70b43 Initial load
duke
parents:
diff changeset
   746
     * @see javax.sql.RowSetListener
90ce3da70b43 Initial load
duke
parents:
diff changeset
   747
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   748
    public RowSet createShared() throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   749
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   750
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   751
90ce3da70b43 Initial load
duke
parents:
diff changeset
   752
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   753
     * Returns a new <code>RowSet</code> object containing by the same data
90ce3da70b43 Initial load
duke
parents:
diff changeset
   754
     * as this <code>CachedRowSetImpl</code> object.  This method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   755
     * differs from the method <code>createCopy</code> in that it throws a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   756
     * <code>CloneNotSupportedException</code> object instead of an
90ce3da70b43 Initial load
duke
parents:
diff changeset
   757
     * <code>SQLException</code> object, as the method <code>createShared</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   758
     * does.  This <code>clone</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   759
     * method is called internally by the method <code>createShared</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   760
     * which catches the <code>CloneNotSupportedException</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
   761
     * and in turn throws a new <code>SQLException</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   762
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   763
     * @return a copy of this <code>CachedRowSetImpl</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
   764
     * @throws CloneNotSupportedException if an error occurs when
90ce3da70b43 Initial load
duke
parents:
diff changeset
   765
     * attempting to clone this <code>CachedRowSetImpl</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
   766
     * @see #createShared
90ce3da70b43 Initial load
duke
parents:
diff changeset
   767
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   768
    protected Object clone() throws CloneNotSupportedException  {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   769
       throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   770
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   771
90ce3da70b43 Initial load
duke
parents:
diff changeset
   772
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   773
     * Creates a <code>RowSet</code> object that is a deep copy of
90ce3da70b43 Initial load
duke
parents:
diff changeset
   774
     * this <code>CachedRowSetImpl</code> object's data, including
90ce3da70b43 Initial load
duke
parents:
diff changeset
   775
     * constraints.  Updates made
90ce3da70b43 Initial load
duke
parents:
diff changeset
   776
     * on a copy are not visible to the original rowset;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   777
     * a copy of a rowset is completely independent from the original.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   778
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   779
     * Making a copy saves the cost of creating an identical rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
   780
     * from first principles, which can be quite expensive.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   781
     * For example, it can eliminate the need to query a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   782
     * remote database server.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   783
     * @return a new <code>CachedRowSet</code> object that is a deep copy
90ce3da70b43 Initial load
duke
parents:
diff changeset
   784
     *           of this <code>CachedRowSet</code> object and is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   785
     *           completely independent from this <code>CachedRowSetImpl</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   786
     *           object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   787
     * @throws SQLException if an error occurs in generating the copy of this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   788
     *           of the <code>CachedRowSetImpl</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   789
     * @see #createShared
90ce3da70b43 Initial load
duke
parents:
diff changeset
   790
     * @see javax.sql.RowSetEvent
90ce3da70b43 Initial load
duke
parents:
diff changeset
   791
     * @see javax.sql.RowSetListener
90ce3da70b43 Initial load
duke
parents:
diff changeset
   792
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   793
    public CachedRowSet createCopy() throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   794
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   795
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   796
90ce3da70b43 Initial load
duke
parents:
diff changeset
   797
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   798
     * Creates a <code>RowSet</code> object that is a copy of
90ce3da70b43 Initial load
duke
parents:
diff changeset
   799
     * this <code>CachedRowSetImpl</code> object's table structure
90ce3da70b43 Initial load
duke
parents:
diff changeset
   800
     * and the constraints only.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   801
     * There will be no data in the object being returned.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   802
     * Updates made on a copy are not visible to the original rowset.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   803
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   804
     * This helps in getting the underlying XML schema which can
90ce3da70b43 Initial load
duke
parents:
diff changeset
   805
     * be used as the basis for populating a <code>WebRowSet</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   806
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   807
     * @return a new <code>CachedRowSet</code> object that is a copy
90ce3da70b43 Initial load
duke
parents:
diff changeset
   808
     * of this <code>CachedRowSetImpl</code> object's schema and
90ce3da70b43 Initial load
duke
parents:
diff changeset
   809
     * retains all the constraints on the original rowset but contains
90ce3da70b43 Initial load
duke
parents:
diff changeset
   810
     * no data
90ce3da70b43 Initial load
duke
parents:
diff changeset
   811
     * @throws SQLException if an error occurs in generating the copy
90ce3da70b43 Initial load
duke
parents:
diff changeset
   812
     * of the <code>CachedRowSet</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
   813
     * @see #createShared
90ce3da70b43 Initial load
duke
parents:
diff changeset
   814
     * @see #createCopy
90ce3da70b43 Initial load
duke
parents:
diff changeset
   815
     * @see #createCopyNoConstraints
90ce3da70b43 Initial load
duke
parents:
diff changeset
   816
     * @see javax.sql.RowSetEvent
90ce3da70b43 Initial load
duke
parents:
diff changeset
   817
     * @see javax.sql.RowSetListener
90ce3da70b43 Initial load
duke
parents:
diff changeset
   818
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   819
    public CachedRowSet createCopySchema() throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   820
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   821
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   822
90ce3da70b43 Initial load
duke
parents:
diff changeset
   823
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   824
     * Creates a <code>CachedRowSet</code> object that is a copy of
90ce3da70b43 Initial load
duke
parents:
diff changeset
   825
     * this <code>CachedRowSetImpl</code> object's data only.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   826
     * All constraints set in this object will not be there
90ce3da70b43 Initial load
duke
parents:
diff changeset
   827
     * in the returning object.  Updates made
90ce3da70b43 Initial load
duke
parents:
diff changeset
   828
     * on a copy are not visible to the original rowset.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   829
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   830
     * @return a new <code>CachedRowSet</code> object that is a deep copy
90ce3da70b43 Initial load
duke
parents:
diff changeset
   831
     * of this <code>CachedRowSetImpl</code> object and is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   832
     * completely independent from this <code>CachedRowSetImpl</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
   833
     * @throws SQLException if an error occurs in generating the copy of the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   834
     * of the <code>CachedRowSet</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   835
     * @see #createShared
90ce3da70b43 Initial load
duke
parents:
diff changeset
   836
     * @see #createCopy
90ce3da70b43 Initial load
duke
parents:
diff changeset
   837
     * @see #createCopySchema
90ce3da70b43 Initial load
duke
parents:
diff changeset
   838
     * @see javax.sql.RowSetEvent
90ce3da70b43 Initial load
duke
parents:
diff changeset
   839
     * @see javax.sql.RowSetListener
90ce3da70b43 Initial load
duke
parents:
diff changeset
   840
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   841
    public CachedRowSet createCopyNoConstraints() throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   842
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   843
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   844
90ce3da70b43 Initial load
duke
parents:
diff changeset
   845
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   846
     * Converts this <code>CachedRowSetImpl</code> object to a collection
90ce3da70b43 Initial load
duke
parents:
diff changeset
   847
     * of tables. The sample implementation utilitizes the <code>TreeMap</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   848
     * collection type.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   849
     * This class guarantees that the map will be in ascending key order,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   850
     * sorted according to the natural order for the key's class.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   851
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   852
     * @return a <code>Collection</code> object consisting of tables,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   853
     *         each of which is a copy of a row in this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   854
     *         <code>CachedRowSetImpl</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
   855
     * @throws SQLException if an error occurs in generating the collection
90ce3da70b43 Initial load
duke
parents:
diff changeset
   856
     * @see #toCollection(int)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   857
     * @see #toCollection(String)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   858
     * @see java.util.TreeMap
90ce3da70b43 Initial load
duke
parents:
diff changeset
   859
     */
11129
f9ad1aadf3fa 7116445: Miscellaneous warnings in the JDBC/RowSet classes
lancea
parents: 6530
diff changeset
   860
    @SuppressWarnings("rawtypes")
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   861
    public Collection toCollection() throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   862
       throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   863
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   864
90ce3da70b43 Initial load
duke
parents:
diff changeset
   865
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   866
     * Returns the specified column of this <code>CachedRowSetImpl</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
   867
     * as a <code>Collection</code> object.  This method makes a copy of the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   868
     * column's data and utilitizes the <code>Vector</code> to establish the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   869
     * collection. The <code>Vector</code> class implements a growable array
90ce3da70b43 Initial load
duke
parents:
diff changeset
   870
     * objects allowing the individual components to be accessed using an
90ce3da70b43 Initial load
duke
parents:
diff changeset
   871
     * an integer index similar to that of an array.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   872
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   873
     * @return a <code>Collection</code> object that contains the value(s)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   874
     *         stored in the specified column of this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   875
     *         <code>CachedRowSetImpl</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   876
     *         object
90ce3da70b43 Initial load
duke
parents:
diff changeset
   877
     * @throws SQLException if an error occurs generated the collection; or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   878
     *          an invalid column is provided.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   879
     * @see #toCollection()
90ce3da70b43 Initial load
duke
parents:
diff changeset
   880
     * @see #toCollection(String)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   881
     * @see java.util.Vector
90ce3da70b43 Initial load
duke
parents:
diff changeset
   882
     */
11129
f9ad1aadf3fa 7116445: Miscellaneous warnings in the JDBC/RowSet classes
lancea
parents: 6530
diff changeset
   883
    @SuppressWarnings("rawtypes")
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   884
    public Collection toCollection(int column) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   885
       throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   886
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   887
90ce3da70b43 Initial load
duke
parents:
diff changeset
   888
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   889
     * Returns the specified column of this <code>CachedRowSetImpl</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
   890
     * as a <code>Collection</code> object.  This method makes a copy of the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   891
     * column's data and utilitizes the <code>Vector</code> to establish the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   892
     * collection. The <code>Vector</code> class implements a growable array
90ce3da70b43 Initial load
duke
parents:
diff changeset
   893
     * objects allowing the individual components to be accessed using an
90ce3da70b43 Initial load
duke
parents:
diff changeset
   894
     * an integer index similar to that of an array.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   895
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   896
     * @return a <code>Collection</code> object that contains the value(s)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   897
     *         stored in the specified column of this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   898
     *         <code>CachedRowSetImpl</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   899
     *         object
90ce3da70b43 Initial load
duke
parents:
diff changeset
   900
     * @throws SQLException if an error occurs generated the collection; or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   901
     *          an invalid column is provided.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   902
     * @see #toCollection()
90ce3da70b43 Initial load
duke
parents:
diff changeset
   903
     * @see #toCollection(int)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   904
     * @see java.util.Vector
90ce3da70b43 Initial load
duke
parents:
diff changeset
   905
     */
11129
f9ad1aadf3fa 7116445: Miscellaneous warnings in the JDBC/RowSet classes
lancea
parents: 6530
diff changeset
   906
    @SuppressWarnings("rawtypes")
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   907
    public Collection toCollection(String column) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   908
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   909
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   910
90ce3da70b43 Initial load
duke
parents:
diff changeset
   911
    //--------------------------------------------------------------------
90ce3da70b43 Initial load
duke
parents:
diff changeset
   912
    // Advanced features
90ce3da70b43 Initial load
duke
parents:
diff changeset
   913
    //--------------------------------------------------------------------
90ce3da70b43 Initial load
duke
parents:
diff changeset
   914
90ce3da70b43 Initial load
duke
parents:
diff changeset
   915
90ce3da70b43 Initial load
duke
parents:
diff changeset
   916
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   917
     * Returns the <code>SyncProvider</code> implementation being used
90ce3da70b43 Initial load
duke
parents:
diff changeset
   918
     * with this <code>CachedRowSetImpl</code> implementation rowset.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   919
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   920
     * @return the SyncProvider used by the rowset. If not provider was
90ce3da70b43 Initial load
duke
parents:
diff changeset
   921
     *          set when the rowset was instantiated, the reference
90ce3da70b43 Initial load
duke
parents:
diff changeset
   922
     *          implementation (default) provider is returned.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   923
     * @throws SQLException if error occurs while return the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   924
     *          <code>SyncProvider</code> instance.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   925
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   926
    public SyncProvider getSyncProvider() throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   927
      throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   928
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   929
90ce3da70b43 Initial load
duke
parents:
diff changeset
   930
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   931
     * Sets the active <code>SyncProvider</code> and attempts to load
90ce3da70b43 Initial load
duke
parents:
diff changeset
   932
     * load the new provider using the <code>SyncFactory</code> SPI.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   933
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   934
     * @throws SQLException if an error occurs while resetting the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   935
     *          <code>SyncProvider</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   936
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   937
    public void setSyncProvider(String providerStr) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   938
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   939
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   940
90ce3da70b43 Initial load
duke
parents:
diff changeset
   941
90ce3da70b43 Initial load
duke
parents:
diff changeset
   942
    //-----------------
90ce3da70b43 Initial load
duke
parents:
diff changeset
   943
    // methods inherited from RowSet
90ce3da70b43 Initial load
duke
parents:
diff changeset
   944
    //-----------------
90ce3da70b43 Initial load
duke
parents:
diff changeset
   945
90ce3da70b43 Initial load
duke
parents:
diff changeset
   946
90ce3da70b43 Initial load
duke
parents:
diff changeset
   947
90ce3da70b43 Initial load
duke
parents:
diff changeset
   948
90ce3da70b43 Initial load
duke
parents:
diff changeset
   949
90ce3da70b43 Initial load
duke
parents:
diff changeset
   950
90ce3da70b43 Initial load
duke
parents:
diff changeset
   951
    //---------------------------------------------------------------------
90ce3da70b43 Initial load
duke
parents:
diff changeset
   952
    // Reading and writing data
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
     * Populates this <code>CachedRowSetImpl</code> object with data.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   957
     * This form of the method uses the rowset's user, password, and url or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   958
     * data source name properties to create a database
90ce3da70b43 Initial load
duke
parents:
diff changeset
   959
     * connection.  If properties that are needed
90ce3da70b43 Initial load
duke
parents:
diff changeset
   960
     * have not been set, this method will throw an exception.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   961
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   962
     * Another form of this method uses an existing JDBC <code>Connection</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   963
     * object instead of creating a new one; therefore, it ignores the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   964
     * properties used for establishing a new connection.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   965
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   966
     * The query specified by the command property is executed to create a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   967
     * <code>ResultSet</code> object from which to retrieve data.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   968
     * The current contents of the rowset are discarded, and the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   969
     * rowset's metadata is also (re)set.  If there are outstanding updates,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   970
     * they are also ignored.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   971
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   972
     * The method <code>execute</code> closes any database connections that it
90ce3da70b43 Initial load
duke
parents:
diff changeset
   973
     * creates.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   974
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   975
     * @throws SQLException if an error occurs or the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   976
     *                         necessary properties have not been set
90ce3da70b43 Initial load
duke
parents:
diff changeset
   977
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   978
    public void execute() throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   979
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   980
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   981
90ce3da70b43 Initial load
duke
parents:
diff changeset
   982
90ce3da70b43 Initial load
duke
parents:
diff changeset
   983
90ce3da70b43 Initial load
duke
parents:
diff changeset
   984
    //-----------------------------------
90ce3da70b43 Initial load
duke
parents:
diff changeset
   985
    // Methods inherited from ResultSet
90ce3da70b43 Initial load
duke
parents:
diff changeset
   986
    //-----------------------------------
90ce3da70b43 Initial load
duke
parents:
diff changeset
   987
90ce3da70b43 Initial load
duke
parents:
diff changeset
   988
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   989
     * Moves the cursor down one row from its current position and
90ce3da70b43 Initial load
duke
parents:
diff changeset
   990
     * returns <code>true</code> if the new cursor position is a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   991
     * valid row.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   992
     * The cursor for a new <code>ResultSet</code> object is initially
90ce3da70b43 Initial load
duke
parents:
diff changeset
   993
     * positioned before the first row. The first call to the method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   994
     * <code>next</code> moves the cursor to the first row, making it
90ce3da70b43 Initial load
duke
parents:
diff changeset
   995
     * the current row; the second call makes the second row the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   996
     * current row, and so on.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   997
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   998
     * <P>If an input stream from the previous row is open, it is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   999
     * implicitly closed. The <code>ResultSet</code> object's warning
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1000
     * chain is cleared when a new row is read.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1001
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1002
     * @return <code>true</code> if the new current row is valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1003
     *         <code>false</code> if there are no more rows
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1004
     * @throws SQLException if an error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1005
     *            the cursor is not positioned in the rowset, before
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1006
     *            the first row, or after the last row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1007
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1008
    public boolean next() throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1009
       throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1010
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1011
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1012
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1013
     * Moves this <code>CachedRowSetImpl</code> object's cursor to the next
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1014
     * row and returns <code>true</code> if the cursor is still in the rowset;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1015
     * returns <code>false</code> if the cursor has moved to the position after
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1016
     * the last row.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1017
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1018
     * This method handles the cases where the cursor moves to a row that
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1019
     * has been deleted.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1020
     * If this rowset shows deleted rows and the cursor moves to a row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1021
     * that has been deleted, this method moves the cursor to the next
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1022
     * row until the cursor is on a row that has not been deleted.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1023
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1024
     * The method <code>internalNext</code> is called by methods such as
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1025
     * <code>next</code>, <code>absolute</code>, and <code>relative</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1026
     * and, as its name implies, is only called internally.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1027
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1028
     * This is a implementation only method and is not required as a standard
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1029
     * implementation of the <code>CachedRowSet</code> interface.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1030
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1031
     * @return <code>true</code> if the cursor is on a valid row in this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1032
     *         rowset; <code>false</code> if it is after the last row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1033
     * @throws SQLException if an error occurs
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1034
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1035
    protected boolean internalNext() throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1036
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1037
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1038
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1039
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1040
     * Closes this <code>CachedRowSetImpl</code> objecy and releases any resources
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1041
     * it was using.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1042
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1043
     * @throws SQLException if an error occurs when releasing any resources in use
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1044
     * by this <code>CachedRowSetImpl</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1045
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1046
    public void close() throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1047
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1048
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1049
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1050
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1051
     * Reports whether the last column read was SQL <code>NULL</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1052
     * Note that you must first call the method <code>getXXX</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1053
     * on a column to try to read its value and then call the method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1054
     * <code>wasNull</code> to determine whether the value was
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1055
     * SQL <code>NULL</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1056
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1057
     * @return <code>true</code> if the value in the last column read
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1058
     *         was SQL <code>NULL</code>; <code>false</code> otherwise
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1059
     * @throws SQLException if an error occurs
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1060
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1061
    public boolean wasNull() throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1062
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1063
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1064
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1065
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1066
     * Returns the insert row or the current row of this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1067
     * <code>CachedRowSetImpl</code>object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1068
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1069
     * @return the <code>Row</code> object on which this <code>CachedRowSetImpl</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1070
     * objects's cursor is positioned
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1071
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1072
    protected BaseRow getCurrentRow() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1073
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1074
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1075
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1076
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1077
     * Removes the row on which the cursor is positioned.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1078
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1079
     * This is a implementation only method and is not required as a standard
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1080
     * implementation of the <code>CachedRowSet</code> interface.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1081
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1082
     * @throws SQLException if the cursor is positioned on the insert
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1083
     *            row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1084
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1085
    protected void removeCurrentRow() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1086
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1087
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1088
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1089
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1090
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1091
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1092
     * of this <code>CachedRowSetImpl</code> object as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1093
     * <code>String</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1094
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1095
     * @param columnIndex the first column is <code>1</code>, the second
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1096
     *        is <code>2</code>, and so on; must be <code>1</code> or larger
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1097
     *        and equal to or less than the number of columns in the rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1098
     * @return the column value; if the value is SQL <code>NULL</code>, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1099
     *         result is <code>null</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1100
     * @throws SQLException if (1) the given column index is out of bounds,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1101
     * (2) the cursor is not on one of this rowset's rows or its
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1102
     * insert row, or (3) the designated column does not store an
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1103
     * SQL <code>TINYINT, SMALLINT, INTEGER, BIGINT, REAL,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1104
     * FLOAT, DOUBLE, DECIMAL, NUMERIC, BIT, <b>CHAR</b>, <b>VARCHAR</b></code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1105
     * or <code>LONGVARCHAR</code> value. The bold SQL type designates the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1106
     * recommended return type.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1107
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1108
    public String getString(int columnIndex) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1109
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1110
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1111
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1112
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1113
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1114
     * of this <code>CachedRowSetImpl</code> object as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1115
     * <code>boolean</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1116
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1117
     * @param columnIndex the first column is <code>1</code>, the second
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1118
     *        is <code>2</code>, and so on; must be <code>1</code> or larger
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1119
     *        and equal to or less than the number of columns in the rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1120
     * @return the column value as a <code>boolean</code> in the Java progamming language;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1121
     *        if the value is SQL <code>NULL</code>, the result is <code>false</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1122
     * @throws SQLException if (1) the given column index is out of bounds,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1123
     *            (2) the cursor is not on one of this rowset's rows or its
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1124
     *            insert row, or (3) the designated column does not store an
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1125
     *            SQL <code>BOOLEAN</code> value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1126
     * @see #getBoolean(String)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1127
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1128
    public boolean getBoolean(int columnIndex) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1129
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1130
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1131
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1132
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1133
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1134
     * of this <code>CachedRowSetImpl</code> object as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1135
     * <code>byte</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1136
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1137
     * @param columnIndex the first column is <code>1</code>, the second
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1138
     *        is <code>2</code>, and so on; must be <code>1</code> or larger
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1139
     *        and equal to or less than the number of columns in the rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1140
     * @return the column value as a <code>byte</code> in the Java programming
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1141
     * language; if the value is SQL <code>NULL</code>, the result is <code>0</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1142
     * @throws SQLException if (1) the given column index is out of bounds,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1143
     *            (2) the cursor is not on one of this rowset's rows or its
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1144
     *            insert row, or (3) the designated column does not store an
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1145
     *            SQL <code><b>TINYINT</b>, SMALLINT, INTEGER, BIGINT, REAL,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1146
     *            FLOAT, DOUBLE, DECIMAL, NUMERIC, BIT, CHAR, VARCHAR</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1147
     *            or <code>LONGVARCHAR</code> value. The bold SQL type
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1148
     *            designates the recommended return type.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1149
     * @see #getByte(String)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1150
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1151
    public byte getByte(int columnIndex) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1152
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1153
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1154
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1155
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1156
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1157
     * of this <code>CachedRowSetImpl</code> object as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1158
     * <code>short</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1159
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1160
     * @param columnIndex the first column is <code>1</code>, the second
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1161
     *        is <code>2</code>, and so on; must be <code>1</code> or larger
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1162
     *        and equal to or less than the number of columns in the rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1163
     * @return the column value; if the value is SQL <code>NULL</code>, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1164
     *         result is <code>0</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1165
     * @throws SQLException if (1) the given column index is out of bounds,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1166
     * (2) the cursor is not on one of this rowset's rows or its
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1167
     * insert row, or (3) the designated column does not store an
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1168
     * SQL <code>TINYINT, <b>SMALLINT</b>, INTEGER, BIGINT, REAL
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1169
     * FLOAT, DOUBLE, DECIMAL, NUMERIC, BIT, CHAR, VARCHAR</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1170
     * or <code>LONGVARCHAR</code> value. The bold SQL type designates the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1171
     * recommended return type.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1172
     * @see #getShort(String)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1173
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1174
    public short getShort(int columnIndex) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1175
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1176
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1177
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1178
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1179
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1180
     * of this <code>CachedRowSetImpl</code> object as an
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1181
     * <code>int</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1182
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1183
     * @param columnIndex the first column is <code>1</code>, the second
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1184
     *        is <code>2</code>, and so on; must be <code>1</code> or larger
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1185
     *        and equal to or less than the number of columns in the rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1186
     * @return the column value; if the value is SQL <code>NULL</code>, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1187
     *         result is <code>0</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1188
     * @throws SQLException if (1) the given column index is out of bounds,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1189
     * (2) the cursor is not on one of this rowset's rows or its
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1190
     * insert row, or (3) the designated column does not store an
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1191
     * SQL <code>TINYINT, SMALLINT, <b>INTEGER</b>, BIGINT, REAL
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1192
     * FLOAT, DOUBLE, DECIMAL, NUMERIC, BIT, CHAR, VARCHAR</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1193
     * or <code>LONGVARCHAR</code> value. The bold SQL type designates the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1194
     * recommended return type.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1195
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1196
    public int getInt(int columnIndex) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1197
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1198
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1199
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1200
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1201
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1202
     * of this <code>CachedRowSetImpl</code> object as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1203
     * <code>long</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1204
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1205
     * @param columnIndex the first column is <code>1</code>, the second
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1206
     *        is <code>2</code>, and so on; must be <code>1</code> or larger
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1207
     *        and equal to or less than the number of columns in the rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1208
     * @return the column value; if the value is SQL <code>NULL</code>, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1209
     *         result is <code>0</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1210
     * @throws SQLException if (1) the given column index is out of bounds,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1211
     * (2) the cursor is not on one of this rowset's rows or its
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1212
     * insert row, or (3) the designated column does not store an
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1213
     * SQL <code>TINYINT, SMALLINT, INTEGER, <b>BIGINT</b>, REAL
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1214
     * FLOAT, DOUBLE, DECIMAL, NUMERIC, BIT, CHAR, VARCHAR</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1215
     * or <code>LONGVARCHAR</code> value. The bold SQL type designates the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1216
     * recommended return type.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1217
     * @see #getLong(String)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1218
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1219
    public long getLong(int columnIndex) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1220
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1221
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1222
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1223
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1224
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1225
     * of this <code>CachedRowSetImpl</code> object as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1226
     * <code>float</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1227
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1228
     * @param columnIndex the first column is <code>1</code>, the second
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1229
     *        is <code>2</code>, and so on; must be <code>1</code> or larger
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1230
     *        and equal to or less than the number of columns in the rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1231
     * @return the column value; if the value is SQL <code>NULL</code>, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1232
     *         result is <code>0</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1233
     * @throws SQLException if (1) the given column index is out of bounds,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1234
     * (2) the cursor is not on one of this rowset's rows or its
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1235
     * insert row, or (3) the designated column does not store an
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1236
     * SQL <code>TINYINT, SMALLINT, INTEGER, BIGINT, <b>REAL</b>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1237
     * FLOAT, DOUBLE, DECIMAL, NUMERIC, BIT, CHAR, VARCHAR</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1238
     * or <code>LONGVARCHAR</code> value. The bold SQL type designates the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1239
     * recommended return type.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1240
     * @see #getFloat(String)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1241
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1242
    public float getFloat(int columnIndex) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1243
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1244
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1245
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1246
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1247
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1248
     * of this <code>CachedRowSetImpl</code> object as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1249
     * <code>double</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1250
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1251
     * @param columnIndex the first column is <code>1</code>, the second
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1252
     *        is <code>2</code>, and so on; must be <code>1</code> or larger
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1253
     *        and equal to or less than the number of columns in the rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1254
     * @return the column value; if the value is SQL <code>NULL</code>, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1255
     *         result is <code>0</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1256
     * @throws SQLException if (1) the given column index is out of bounds,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1257
     * (2) the cursor is not on one of this rowset's rows or its
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1258
     * insert row, or (3) the designated column does not store an
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1259
     * SQL <code>TINYINT, SMALLINT, INTEGER, BIGINT, REAL,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1260
     * <b>FLOAT</b>, <b>DOUBLE</b>, DECIMAL, NUMERIC, BIT, CHAR, VARCHAR</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1261
     * or <code>LONGVARCHAR</code> value. The bold SQL type designates the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1262
     * recommended return type.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1263
     * @see #getDouble(String)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1264
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1265
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1266
    public double getDouble(int columnIndex) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1267
        throw new UnsupportedOperationException();
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
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1272
     * of this <code>CachedRowSetImpl</code> object as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1273
     * <code>java.math.BigDecimal</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1274
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1275
     * This method is deprecated; use the version of <code>getBigDecimal</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1276
     * that does not take a scale parameter and returns a value with full
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1277
     * precision.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1278
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1279
     * @param columnIndex the first column is <code>1</code>, the second
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1280
     *        is <code>2</code>, and so on; must be <code>1</code> or larger
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1281
     *        and equal to or less than the number of columns in the rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1282
     * @param scale the number of digits to the right of the decimal point in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1283
     *        value returned
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1284
     * @return the column value with the specified number of digits to the right
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1285
     *         of the decimal point; if the value is SQL <code>NULL</code>, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1286
     *         result is <code>null</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1287
     * @throws SQLException if the given column index is out of bounds,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1288
     *            the cursor is not on a valid row, or this method fails
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1289
     * @deprecated
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1290
     */
14171
94eb36844bd7 7197395: Add @Deprecated to all deprecated methods to eliminate compiler warnings in JDBC
lancea
parents: 11129
diff changeset
  1291
    @Deprecated
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1292
    public BigDecimal getBigDecimal(int columnIndex, int scale) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1293
       throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1294
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1295
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1296
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1297
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1298
     * of this <code>CachedRowSetImpl</code> object as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1299
     * <code>byte</code> array value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1300
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1301
     * @param columnIndex the first column is <code>1</code>, the second
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1302
     *        is <code>2</code>, and so on; must be <code>1</code> or larger
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1303
     *        and equal to or less than the number of columns in the rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1304
     * @return the column value as a <code>byte</code> array in the Java programming
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1305
     * language; if the value is SQL <code>NULL</code>, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1306
     * result is <code>null</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1307
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1308
     * @throws SQLException if (1) the given column index is out of bounds,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1309
     * (2) the cursor is not on one of this rowset's rows or its
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1310
     * insert row, or (3) the designated column does not store an
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1311
     * SQL <code><b>BINARY</b>, <b>VARBINARY</b> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1312
     * LONGVARBINARY</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1313
     * The bold SQL type designates the recommended return type.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1314
     * @see #getBytes(String)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1315
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1316
    public byte[] getBytes(int columnIndex) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1317
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1318
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1319
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1320
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1321
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1322
     * of this <code>CachedRowSetImpl</code> object as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1323
     * <code>java.sql.Date</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1324
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1325
     * @param columnIndex the first column is <code>1</code>, the second
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1326
     *        is <code>2</code>, and so on; must be <code>1</code> or larger
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1327
     *        and equal to or less than the number of columns in the rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1328
     * @return the column value as a <code>java.sql.Data</code> object; if
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1329
     *        the value is SQL <code>NULL</code>, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1330
     *        result is <code>null</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1331
     * @throws SQLException if the given column index is out of bounds,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1332
     *            the cursor is not on a valid row, or this method fails
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1333
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1334
    public java.sql.Date getDate(int columnIndex) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1335
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1336
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1337
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1338
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1339
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1340
     * of this <code>CachedRowSetImpl</code> object as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1341
     * <code>java.sql.Time</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1342
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1343
     * @param columnIndex the first column is <code>1</code>, the second
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1344
     *        is <code>2</code>, and so on; must be <code>1</code> or larger
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1345
     *        and equal to or less than the number of columns in the rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1346
     * @return the column value; if the value is SQL <code>NULL</code>, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1347
     *         result is <code>null</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1348
     * @throws SQLException if the given column index is out of bounds,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1349
     *         the cursor is not on a valid row, or this method fails
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1350
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1351
    public java.sql.Time getTime(int columnIndex) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1352
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1353
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1354
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1355
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1356
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1357
     * of this <code>CachedRowSetImpl</code> object as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1358
     * <code>java.sql.Timestamp</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1359
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1360
     * @param columnIndex the first column is <code>1</code>, the second
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1361
     *        is <code>2</code>, and so on; must be <code>1</code> or larger
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1362
     *        and equal to or less than the number of columns in the rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1363
     * @return the column value; if the value is SQL <code>NULL</code>, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1364
     *         result is <code>null</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1365
     * @throws SQLException if the given column index is out of bounds,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1366
     *            the cursor is not on a valid row, or this method fails
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1367
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1368
    public java.sql.Timestamp getTimestamp(int columnIndex) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1369
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1370
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1371
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1372
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1373
     * Retrieves the value of the designated column in the current row of this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1374
     * <code>CachedRowSetImpl</code> object as a <code>java.io.InputStream</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1375
     * object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1376
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1377
     * A column value can be retrieved as a stream of ASCII characters
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1378
     * and then read in chunks from the stream.  This method is particularly
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1379
     * suitable for retrieving large <code>LONGVARCHAR</code> values.  The JDBC
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1380
     * driver will do any necessary conversion from the database format into ASCII.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1381
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1382
     * <P><B>Note:</B> All the data in the returned stream must be
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1383
     * read prior to getting the value of any other column. The next
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1384
     * call to a get method implicitly closes the stream. . Also, a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1385
     * stream may return <code>0</code> for <code>CachedRowSetImpl.available()</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1386
     * whether there is data available or not.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1387
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1388
     * @param columnIndex the first column is <code>1</code>, the second
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1389
     *        is <code>2</code>, and so on; must be <code>1</code> or larger
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1390
     *        and equal to or less than the number of columns in this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1391
     * @return a Java input stream that delivers the database column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1392
     *         as a stream of one-byte ASCII characters.  If the value is SQL
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1393
     *         <code>NULL</code>, the result is <code>null</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1394
     * @throws SQLException if (1) the given column index is out of bounds,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1395
     * (2) the cursor is not on one of this rowset's rows or its
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1396
     * insert row, or (3) the designated column does not store an
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1397
     * SQL <code>CHAR, VARCHAR</code>, <code><b>LONGVARCHAR</b></code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1398
     * <code>BINARY, VARBINARY</code> or <code>LONGVARBINARY</code> value. The
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1399
     * bold SQL type designates the recommended return types that this method is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1400
     * used to retrieve.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1401
     * @see #getAsciiStream(String)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1402
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1403
    public java.io.InputStream getAsciiStream(int columnIndex) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1404
       throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1405
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1406
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1407
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1408
     * A column value can be retrieved as a stream of Unicode characters
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1409
     * and then read in chunks from the stream.  This method is particularly
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1410
     * suitable for retrieving large LONGVARCHAR values.  The JDBC driver will
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1411
     * do any necessary conversion from the database format into Unicode.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1412
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1413
     * <P><B>Note:</B> All the data in the returned stream must be
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1414
     * read prior to getting the value of any other column. The next
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1415
     * call to a get method implicitly closes the stream. . Also, a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1416
     * stream may return 0 for available() whether there is data
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1417
     * available or not.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1418
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1419
     * @param columnIndex the first column is <code>1</code>, the second
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1420
     *        is <code>2</code>, and so on; must be <code>1</code> or larger
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1421
     *        and equal to or less than the number of columns in this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1422
     * @return a Java input stream that delivers the database column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1423
     * as a stream of two byte Unicode characters.  If the value is SQL NULL
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1424
     * then the result is null.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1425
     * @throws SQLException if an error occurs
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1426
     * @deprecated
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1427
     */
14171
94eb36844bd7 7197395: Add @Deprecated to all deprecated methods to eliminate compiler warnings in JDBC
lancea
parents: 11129
diff changeset
  1428
    @Deprecated
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1429
    public java.io.InputStream getUnicodeStream(int columnIndex) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1430
       throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1431
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1432
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1433
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1434
     * Retrieves the value of the designated column in the current row of this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1435
     * <code>CachedRowSetImpl</code> object as a <code>java.io.InputStream</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1436
     * object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1437
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1438
     * A column value can be retrieved as a stream of uninterpreted bytes
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1439
     * and then read in chunks from the stream.  This method is particularly
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1440
     * suitable for retrieving large <code>LONGVARBINARY</code> values.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1441
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1442
     * <P><B>Note:</B> All the data in the returned stream must be
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1443
     * read prior to getting the value of any other column. The next
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1444
     * call to a get method implicitly closes the stream. Also, a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1445
     * stream may return <code>0</code> for
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1446
     * <code>CachedRowSetImpl.available()</code> whether there is data
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1447
     * available or not.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1448
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1449
     * @param columnIndex the first column is <code>1</code>, the second
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1450
     * is <code>2</code>, and so on; must be <code>1</code> or larger
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1451
     * and equal to or less than the number of columns in the rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1452
     * @return a Java input stream that delivers the database column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1453
     * as a stream of uninterpreted bytes.  If the value is SQL <code>NULL</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1454
     * then the result is <code>null</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1455
     * @throws SQLException if (1) the given column index is out of bounds,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1456
     * (2) the cursor is not on one of this rowset's rows or its
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1457
     * insert row, or (3) the designated column does not store an
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1458
     * SQL <code>BINARY, VARBINARY</code> or <code><b>LONGVARBINARY</b></code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1459
     * The bold type indicates the SQL type that this method is recommened
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1460
     * to retrieve.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1461
     * @see #getBinaryStream(String)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1462
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1463
    public java.io.InputStream getBinaryStream(int columnIndex) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1464
       throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1465
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1466
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1467
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1468
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1469
    //======================================================================
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1470
    // Methods for accessing results by column name
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1471
    //======================================================================
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1472
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1473
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1474
     * Retrieves the value stored in the designated column
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1475
     * of the current row as a <code>String</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1476
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1477
     * @param columnName a <code>String</code> object giving the SQL name of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1478
     *        a column in this <code>CachedRowSetImpl</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1479
     * @return the column value; if the value is SQL <code>NULL</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1480
     *         the result is <code>null</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1481
     * @throws SQLException if (1) the given column name is not the name of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1482
     * a column in this rowset, (2) the cursor is not on one of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1483
     * this rowset's rows or its insert row, or (3) the designated
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1484
     * column does not store an SQL <code>TINYINT, SMALLINT, INTEGER
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1485
     * BIGINT, REAL, FLOAT, DOUBLE, DECIMAL, NUMERIC, BIT, <b>CHAR</b>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1486
     * <b>VARCHAR</b></code> or <code>LONGVARCHAR<</code> value. The bold SQL type
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1487
     * designates the recommended return type.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1488
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1489
    public String getString(String columnName) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1490
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1491
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1492
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1493
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1494
     * Retrieves the value stored in the designated column
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1495
     * of the current row as a <code>boolean</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1496
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1497
     * @param columnName a <code>String</code> object giving the SQL name of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1498
     *        a column in this <code>CachedRowSetImpl</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1499
     * @return the column value as a <code>boolean</code> in the Java programming
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1500
     *        language; if the value is SQL <code>NULL</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1501
     *        the result is <code>false</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1502
     * @throws SQLException if (1) the given column name is not the name of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1503
     *            a column in this rowset, (2) the cursor is not on one of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1504
     *            this rowset's rows or its insert row, or (3) the designated
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1505
     *            column does not store an SQL <code>BOOLEAN</code> value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1506
     * @see #getBoolean(int)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1507
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1508
    public boolean getBoolean(String columnName) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1509
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1510
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1511
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1512
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1513
     * Retrieves the value stored in the designated column
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1514
     * of the current row as a <code>byte</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1515
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1516
     * @param columnName a <code>String</code> object giving the SQL name of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1517
     *        a column in this <code>CachedRowSetImpl</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1518
     * @return the column value as a <code>byte</code> in the Java programming
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1519
     * language; if the value is SQL <code>NULL</code>, the result is <code>0</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1520
     * @throws SQLException if (1) the given column name is not the name of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1521
     * a column in this rowset, (2) the cursor is not on one of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1522
     * this rowset's rows or its insert row, or (3) the designated
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1523
     * column does not store an SQL <code><B>TINYINT</B>, SMALLINT, INTEGER,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1524
     * BIGINT, REAL, FLOAT, DOUBLE, DECIMAL, NUMERIC, BIT, CHAR,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1525
     * VARCHAR</code> or <code>LONGVARCHAR</code> value. The
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1526
     * bold type designates the recommended return type
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1527
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1528
    public byte getByte(String columnName) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1529
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1530
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1531
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1532
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1533
     * Retrieves the value stored in the designated column
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1534
     * of the current row as a <code>short</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1535
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1536
     * @param columnName a <code>String</code> object giving the SQL name of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1537
     *        a column in this <code>CachedRowSetImpl</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1538
     * @return the column value; if the value is SQL <code>NULL</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1539
     *         the result is <code>0</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1540
     * @throws SQLException if (1) the given column name is not the name of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1541
     * a column in this rowset, (2) the cursor is not on one of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1542
     * this rowset's rows or its insert row, or (3) the designated
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1543
     * column does not store an SQL <code>TINYINT, <b>SMALLINT</b>, INTEGER
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1544
     * BIGINT, REAL, FLOAT, DOUBLE, DECIMAL, NUMERIC, BIT, CHAR,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1545
     * VARCHAR</code> or <code>LONGVARCHAR</code> value. The bold SQL type
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1546
     * designates the recommended return type.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1547
     * @see #getShort(int)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1548
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1549
    public short getShort(String columnName) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1550
       throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1551
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1552
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1553
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1554
     * Retrieves the value stored in the designated column
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1555
     * of the current row as an <code>int</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1556
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1557
     * @param columnName a <code>String</code> object giving the SQL name of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1558
     *        a column in this <code>CachedRowSetImpl</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1559
     * @return the column value; if the value is SQL <code>NULL</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1560
     *         the result is <code>0</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1561
     * @throws SQLException if (1) the given column name is not the name
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1562
     * of a column in this rowset,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1563
     * (2) the cursor is not on one of this rowset's rows or its
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1564
     * insert row, or (3) the designated column does not store an
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1565
     * SQL <code>TINYINT, SMALLINT, <b>INTEGER</b>, BIGINT, REAL
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1566
     * FLOAT, DOUBLE, DECIMAL, NUMERIC, BIT, CHAR, VARCHAR</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1567
     * or <code>LONGVARCHAR</code> value. The bold SQL type designates the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1568
     * recommended return type.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1569
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1570
    public int getInt(String columnName) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1571
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1572
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1573
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1574
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1575
     * Retrieves the value stored in the designated column
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1576
     * of the current row as a <code>long</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1577
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1578
     * @param columnName a <code>String</code> object giving the SQL name of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1579
     *        a column in this <code>CachedRowSetImpl</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1580
     * @return the column value; if the value is SQL <code>NULL</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1581
     *         the result is <code>0</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1582
     * @throws SQLException if (1) the given column name is not the name of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1583
     * a column in this rowset, (2) the cursor is not on one of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1584
     * this rowset's rows or its insert row, or (3) the designated
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1585
     * column does not store an SQL <code>TINYINT, SMALLINT, INTEGER
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1586
     * <b>BIGINT</b>, REAL, FLOAT, DOUBLE, DECIMAL, NUMERIC, BIT, CHAR,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1587
     * VARCHAR</code> or <code>LONGVARCHAR</code> value. The bold SQL type
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1588
     * designates the recommended return type.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1589
     * @see #getLong(int)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1590
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1591
    public long getLong(String columnName) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1592
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1593
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1594
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1595
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1596
     * Retrieves the value stored in the designated column
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1597
     * of the current row as a <code>float</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1598
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1599
     * @param columnName a <code>String</code> object giving the SQL name of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1600
     *        a column in this <code>CachedRowSetImpl</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1601
     * @return the column value; if the value is SQL <code>NULL</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1602
     *         the result is <code>0</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1603
     * @throws SQLException if (1) the given column name is not the name of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1604
     * a column in this rowset, (2) the cursor is not on one of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1605
     * this rowset's rows or its insert row, or (3) the designated
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1606
     * column does not store an SQL <code>TINYINT, SMALLINT, INTEGER
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1607
     * BIGINT, <b>REAL</b>, FLOAT, DOUBLE, DECIMAL, NUMERIC, BIT, CHAR,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1608
     * VARCHAR</code> or <code>LONGVARCHAR</code> value. The bold SQL type
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1609
     * designates the recommended return type.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1610
     * @see #getFloat(String)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1611
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1612
    public float getFloat(String columnName) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1613
       throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1614
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1615
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1616
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1617
     * Retrieves the value stored in the designated column
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1618
     * of the current row of this <code>CachedRowSetImpl</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1619
     * as a <code>double</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1620
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1621
     * @param columnName a <code>String</code> object giving the SQL name of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1622
     *        a column in this <code>CachedRowSetImpl</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1623
     * @return the column value; if the value is SQL <code>NULL</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1624
     *         the result is <code>0</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1625
     * @throws SQLException if (1) the given column name is not the name of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1626
     * a column in this rowset, (2) the cursor is not on one of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1627
     * this rowset's rows or its insert row, or (3) the designated
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1628
     * column does not store an SQL <code>TINYINT, SMALLINT, INTEGER
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1629
     * BIGINT, REAL, <b>FLOAT</b>, <b>DOUBLE</b>, DECIMAL, NUMERIC, BIT, CHAR,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1630
     * VARCHAR</code> or <code>LONGVARCHAR</code> value. The bold SQL type
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1631
     * designates the recommended return types.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1632
     * @see #getDouble(int)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1633
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1634
    public double getDouble(String columnName) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1635
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1636
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1637
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1638
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1639
     * Retrieves the value stored in the designated column
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1640
     * of the current row as a <code>java.math.BigDecimal</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1641
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1642
     * @param columnName a <code>String</code> object giving the SQL name of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1643
     *        a column in this <code>CachedRowSetImpl</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1644
     * @param scale the number of digits to the right of the decimal point
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1645
     * @return a java.math.BugDecimal object with <code><i>scale</i></code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1646
     * number of digits to the right of the decimal point.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1647
     * @throws SQLException if (1) the given column name is not the name of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1648
     * a column in this rowset, (2) the cursor is not on one of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1649
     * this rowset's rows or its insert row, or (3) the designated
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1650
     * column does not store an SQL <code>TINYINT, SMALLINT, INTEGER
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1651
     * BIGINT, REAL, FLOAT, DOUBLE, <b>DECIMAL</b>, <b>NUMERIC</b>, BIT CHAR,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1652
     * VARCHAR</code> or <code>LONGVARCHAR</code> value. The bold SQL type
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1653
     * designates the recommended return type that this method is used to
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1654
     * retrieve.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1655
     * @deprecated Use the <code>getBigDecimal(String columnName)</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1656
     *             method instead
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1657
     */
14171
94eb36844bd7 7197395: Add @Deprecated to all deprecated methods to eliminate compiler warnings in JDBC
lancea
parents: 11129
diff changeset
  1658
    @Deprecated
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1659
    public BigDecimal getBigDecimal(String columnName, int scale) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1660
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1661
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1662
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1663
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1664
     * Retrieves the value stored in the designated column
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1665
     * of the current row as a <code>byte</code> array.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1666
     * The bytes represent the raw values returned by the driver.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1667
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1668
     * @param columnName a <code>String</code> object giving the SQL name of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1669
     *        a column in this <code>CachedRowSetImpl</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1670
     * @return the column value as a <code>byte</code> array in the Java programming
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1671
     * language; if the value is SQL <code>NULL</code>, the result is <code>null</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1672
     * @throws SQLException if (1) the given column name is not the name of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1673
     * a column in this rowset, (2) the cursor is not on one of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1674
     * this rowset's rows or its insert row, or (3) the designated
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1675
     * column does not store an SQL <code><b>BINARY</b>, <b>VARBINARY</b>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1676
     * </code> or <code>LONGVARBINARY</code> values
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1677
     * The bold SQL type designates the recommended return type.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1678
     * @see #getBytes(int)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1679
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1680
    public byte[] getBytes(String columnName) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1681
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1682
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1683
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1684
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1685
     * Retrieves the value stored in the designated column
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1686
     * of the current row as a <code>java.sql.Date</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1687
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1688
     * @param columnName a <code>String</code> object giving the SQL name of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1689
     *        a column in this <code>CachedRowSetImpl</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1690
     * @return the column value; if the value is SQL <code>NULL</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1691
     *         the result is <code>null</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1692
     * @throws SQLException if (1) the given column name is not the name of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1693
     *            a column in this rowset, (2) the cursor is not on one of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1694
     *            this rowset's rows or its insert row, or (3) the designated
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1695
     *            column does not store an SQL <code>DATE</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1696
     *            <code>TIMESTAMP</code> value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1697
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1698
    public java.sql.Date getDate(String columnName) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1699
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1700
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1701
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1702
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1703
     * Retrieves the value stored in the designated column
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1704
     * of the current row as a <code>java.sql.Time</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1705
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1706
     * @param columnName a <code>String</code> object giving the SQL name of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1707
     *        a column in this <code>CachedRowSetImpl</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1708
     * @return the column value; if the value is SQL <code>NULL</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1709
     *         the result is <code>null</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1710
     * @throws SQLException if the given column name does not match one of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1711
     *            this rowset's column names or the cursor is not on one of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1712
     *            this rowset's rows or its insert row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1713
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1714
    public java.sql.Time getTime(String columnName) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1715
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1716
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1717
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1718
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1719
     * Retrieves the value stored in the designated column
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1720
     * of the current row as a <code>java.sql.Timestamp</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1721
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1722
     * @param columnName a <code>String</code> object giving the SQL name of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1723
     *        a column in this <code>CachedRowSetImpl</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1724
     * @return the column value; if the value is SQL <code>NULL</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1725
     *         the result is <code>null</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1726
     * @throws SQLException if the given column name does not match one of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1727
     *            this rowset's column names or the cursor is not on one of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1728
     *            this rowset's rows or its insert row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1729
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1730
    public java.sql.Timestamp getTimestamp(String columnName) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1731
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1732
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1733
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1734
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1735
     * Retrieves the value of the designated column in the current row of this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1736
     * <code>CachedRowSetImpl</code> object as a <code>java.io.InputStream</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1737
     * object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1738
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1739
     * A column value can be retrieved as a stream of ASCII characters
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1740
     * and then read in chunks from the stream. This method is particularly
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1741
     * suitable for retrieving large <code>LONGVARCHAR</code> values. The
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1742
     * <code>SyncProvider</code> will rely on the JDBC driver to do any necessary
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1743
     * conversion from the database format into ASCII format.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1744
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1745
     * <P><B>Note:</B> All the data in the returned stream must
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1746
     * be read prior to getting the value of any other column. The
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1747
     * next call to a <code>getXXX</code> method implicitly closes the stream.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1748
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1749
     * @param columnName a <code>String</code> object giving the SQL name of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1750
     *        a column in this <code>CachedRowSetImpl</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1751
     * @return a Java input stream that delivers the database column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1752
     *         as a stream of one-byte ASCII characters.  If the value is SQL
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1753
     *         <code>NULL</code>, the result is <code>null</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1754
     * @throws SQLException if (1) the given column name is not the name of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1755
     * a column in this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1756
     * (2) the cursor is not on one of this rowset's rows or its
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1757
     * insert row, or (3) the designated column does not store an
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1758
     * SQL <code>CHAR, VARCHAR</code>, <code><b>LONGVARCHAR</b></code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1759
     * <code>BINARY, VARBINARY</code> or <code>LONGVARBINARY</code> value. The
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1760
     * bold SQL type designates the recommended return types that this method is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1761
     * used to retrieve.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1762
     * @see #getAsciiStream(int)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1763
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1764
    public java.io.InputStream getAsciiStream(String columnName) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1765
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1766
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1767
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1768
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1769
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1770
     * A column value can be retrieved as a stream of Unicode characters
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1771
     * and then read in chunks from the stream.  This method is particularly
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1772
     * suitable for retrieving large <code>LONGVARCHAR</code> values.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1773
     * The JDBC driver will do any necessary conversion from the database
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1774
     * format into Unicode.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1775
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1776
     * <P><B>Note:</B> All the data in the returned stream must
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1777
     * be read prior to getting the value of any other column. The
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1778
     * next call to a <code>getXXX</code> method implicitly closes the stream.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1779
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1780
     * @param columnName a <code>String</code> object giving the SQL name of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1781
     *        a column in this <code>CachedRowSetImpl</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1782
     * @return a Java input stream that delivers the database column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1783
     *         as a stream of two-byte Unicode characters.  If the value is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1784
     *         SQL <code>NULL</code>, the result is <code>null</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1785
     * @throws SQLException if the given column name does not match one of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1786
     *            this rowset's column names or the cursor is not on one of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1787
     *            this rowset's rows or its insert row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1788
     * @deprecated use the method <code>getCharacterStream</code> instead
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1789
     */
14171
94eb36844bd7 7197395: Add @Deprecated to all deprecated methods to eliminate compiler warnings in JDBC
lancea
parents: 11129
diff changeset
  1790
    @Deprecated
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1791
    public java.io.InputStream getUnicodeStream(String columnName) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1792
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1793
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1794
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1795
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1796
     * Retrieves the value of the designated column in the current row of this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1797
     * <code>CachedRowSetImpl</code> object as a <code>java.io.InputStream</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1798
     * object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1799
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1800
     * A column value can be retrieved as a stream of uninterpreted bytes
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1801
     * and then read in chunks from the stream.  This method is particularly
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1802
     * suitable for retrieving large <code>LONGVARBINARY</code> values.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1803
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1804
     * <P><B>Note:</B> All the data in the returned stream must be
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1805
     * read prior to getting the value of any other column. The next
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1806
     * call to a get method implicitly closes the stream. Also, a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1807
     * stream may return <code>0</code> for <code>CachedRowSetImpl.available()</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1808
     * whether there is data available or not.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1809
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1810
     * @param columnName a <code>String</code> object giving the SQL name of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1811
     *        a column in this <code>CachedRowSetImpl</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1812
     * @return a Java input stream that delivers the database column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1813
     *         as a stream of uninterpreted bytes.  If the value is SQL
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1814
     *         <code>NULL</code>, the result is <code>null</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1815
     * @throws SQLException if (1) the given column name is unknown,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1816
     * (2) the cursor is not on one of this rowset's rows or its
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1817
     * insert row, or (3) the designated column does not store an
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1818
     * SQL <code>BINARY, VARBINARY</code> or <code><b>LONGVARBINARY</b></code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1819
     * The bold type indicates the SQL type that this method is recommened
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1820
     * to retrieve.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1821
     * @see #getBinaryStream(int)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1822
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1823
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1824
    public java.io.InputStream getBinaryStream(String columnName) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1825
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1826
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1827
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1828
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1829
    //=====================================================================
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1830
    // Advanced features:
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1831
    //=====================================================================
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1832
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1833
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1834
     * The first warning reported by calls on this <code>CachedRowSetImpl</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1835
     * object is returned. Subsequent <code>CachedRowSetImpl</code> warnings will
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1836
     * be chained to this <code>SQLWarning</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1837
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1838
     * <P>The warning chain is automatically cleared each time a new
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1839
     * row is read.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1840
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1841
     * <P><B>Note:</B> This warning chain only covers warnings caused
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1842
     * by <code>ResultSet</code> methods.  Any warning caused by statement
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1843
     * methods (such as reading OUT parameters) will be chained on the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1844
     * <code>Statement</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1845
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1846
     * @return the first SQLWarning or null
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1847
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1848
    public SQLWarning getWarnings() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1849
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1850
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1851
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1852
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1853
     * Clears all the warnings reporeted for the <code>CachedRowSetImpl</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1854
     * object. After a call to this method, the <code>getWarnings</code> method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1855
     * returns <code>null</code> until a new warning is reported for this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1856
     * <code>CachedRowSetImpl</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1857
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1858
    public void clearWarnings() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1859
       throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1860
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1861
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1862
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1863
     * Retrieves the name of the SQL cursor used by this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1864
     * <code>CachedRowSetImpl</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1865
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1866
     * <P>In SQL, a result table is retrieved through a cursor that is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1867
     * named. The current row of a <code>ResultSet</code> can be updated or deleted
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1868
     * using a positioned update/delete statement that references the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1869
     * cursor name. To ensure that the cursor has the proper isolation
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1870
     * level to support an update operation, the cursor's <code>SELECT</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1871
     * statement should be of the form <code>select for update</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1872
     * If the <code>for update</code> clause
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1873
     * is omitted, positioned updates may fail.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1874
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1875
     * <P>JDBC supports this SQL feature by providing the name of the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1876
     * SQL cursor used by a <code>ResultSet</code> object. The current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1877
     * of a result set is also the current row of this SQL cursor.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1878
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1879
     * <P><B>Note:</B> If positioned updates are not supported, an
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1880
     * <code>SQLException</code> is thrown.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1881
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1882
     * @return the SQL cursor name for this <code>CachedRowSetImpl</code> object's
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1883
     *         cursor
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1884
     * @throws SQLException if an error occurs
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1885
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1886
    public String getCursorName() throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1887
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1888
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1889
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1890
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1891
     * Retrieves a <code>ResultSetMetaData</code> object instance that
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1892
     * contains information about the <code>CachedRowSet</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1893
     * However, applications should cast the returned object to a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1894
     * <code>RowSetMetaData</code> interface implementation. In the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1895
     * reference implementation, this cast can be done on the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1896
     * <code>RowSetMetaDataImpl</code> class.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1897
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1898
     * For example:
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1899
     * <pre>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1900
     * CachedRowSet crs = new CachedRowSetImpl();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1901
     * RowSetMetaDataImpl metaData =
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1902
     *     (RowSetMetaDataImpl)crs.getMetaData();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1903
     * // Set the number of columns in the RowSet object for
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1904
     * // which this RowSetMetaDataImpl object was created to the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1905
     * // given number.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1906
     * metaData.setColumnCount(3);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1907
     * crs.setMetaData(metaData);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1908
     * </pre>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1909
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1910
     * @return the <code>ResultSetMetaData</code> object that describes this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1911
     *         <code>CachedRowSetImpl</code> object's columns
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1912
     * @throws SQLException if an error occurs in generating the RowSet
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1913
     * meta data; or if the <code>CachedRowSetImpl</code> is empty.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1914
     * @see javax.sql.RowSetMetaData
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1915
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1916
    public ResultSetMetaData getMetaData() throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1917
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1918
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1919
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1920
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1921
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1922
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1923
     * of this <code>CachedRowSetImpl</code> object as an
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1924
     * <code>Object</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1925
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1926
     * The type of the <code>Object</code> will be the default
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1927
     * Java object type corresponding to the column's SQL type,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1928
     * following the mapping for built-in types specified in the JDBC 3.0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1929
     * specification.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1930
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1931
     * This method may also be used to read datatabase-specific
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1932
     * abstract data types.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1933
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1934
     * This implementation of the method <code>getObject</code> extends its
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1935
     * behavior so that it gets the attributes of an SQL structured type
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1936
     * as an array of <code>Object</code> values.  This method also custom
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1937
     * maps SQL user-defined types to classes in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1938
     * When the specified column contains
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1939
     * a structured or distinct value, the behavior of this method is as
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1940
     * if it were a call to the method <code>getObject(columnIndex,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1941
     * this.getStatement().getConnection().getTypeMap())</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1942
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1943
     * @param columnIndex the first column is <code>1</code>, the second
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1944
     *        is <code>2</code>, and so on; must be <code>1</code> or larger
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1945
     *        and equal to or less than the number of columns in the rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1946
     * @return a <code>java.lang.Object</code> holding the column value;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1947
     *         if the value is SQL <code>NULL</code>, the result is <code>null</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1948
     * @throws SQLException if the given column index is out of bounds,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1949
     *            the cursor is not on a valid row, or there is a problem getting
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1950
     *            the <code>Class</code> object for a custom mapping
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1951
     * @see #getObject(String)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1952
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1953
    public Object getObject(int columnIndex) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1954
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1955
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1956
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1957
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1958
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1959
     * of this <code>CachedRowSetImpl</code> object as an
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1960
     * <code>Object</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1961
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1962
     * The type of the <code>Object</code> will be the default
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1963
     * Java object type corresponding to the column's SQL type,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1964
     * following the mapping for built-in types specified in the JDBC 3.0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1965
     * specification.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1966
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1967
     * This method may also be used to read datatabase-specific
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1968
     * abstract data types.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1969
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1970
     * This implementation of the method <code>getObject</code> extends its
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1971
     * behavior so that it gets the attributes of an SQL structured type
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1972
     * as an array of <code>Object</code> values.  This method also custom
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1973
     * maps SQL user-defined types to classes
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1974
     * in the Java programming language. When the specified column contains
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1975
     * a structured or distinct value, the behavior of this method is as
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1976
     * if it were a call to the method <code>getObject(columnIndex,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1977
     * this.getStatement().getConnection().getTypeMap())</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1978
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1979
     * @param columnName a <code>String</code> object that must match the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1980
     *        SQL name of a column in this rowset, ignoring case
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1981
     * @return a <code>java.lang.Object</code> holding the column value;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1982
     *         if the value is SQL <code>NULL</code>, the result is <code>null</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1983
     * @throws SQLException if (1) the given column name does not match one of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1984
     *            this rowset's column names, (2) the cursor is not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1985
     *            on a valid row, or (3) there is a problem getting
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1986
     *            the <code>Class</code> object for a custom mapping
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1987
     * @see #getObject(int)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1988
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1989
    public Object getObject(String columnName) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1990
       throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1991
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1992
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1993
    //----------------------------------------------------------------
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1994
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1995
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1996
     * Maps the given column name for one of this <code>CachedRowSetImpl</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1997
     * object's columns to its column number.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1998
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1999
     * @param columnName a <code>String</code> object that must match the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2000
     *        SQL name of a column in this rowset, ignoring case
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2001
     * @return the column index of the given column name
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2002
     * @throws SQLException if the given column name does not match one
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2003
     *            of this rowset's column names
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2004
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2005
    public int findColumn(String columnName) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2006
       throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2007
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2008
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2009
    //--------------------------JDBC 2.0-----------------------------------
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2010
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2011
    //---------------------------------------------------------------------
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2012
    // Getter's and Setter's
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2013
    //---------------------------------------------------------------------
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2014
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2015
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2016
     * Retrieves the value stored in the designated column
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2017
     * of the current row as a <code>java.io.Reader</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2018
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2019
     * <P><B>Note:</B> All the data in the returned stream must
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2020
     * be read prior to getting the value of any other column. The
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2021
     * next call to a <code>getXXX</code> method implicitly closes the stream.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2022
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2023
     * @param columnIndex the first column is <code>1</code>, the second
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2024
     *        is <code>2</code>, and so on; must be <code>1</code> or larger
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2025
     *        and equal to or less than the number of columns in the rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2026
     * @return a Java character stream that delivers the database column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2027
     * as a stream of two-byte unicode characters in a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2028
     * <code>java.io.Reader</code> object.  If the value is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2029
     * SQL <code>NULL</code>, the result is <code>null</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2030
     * @throws SQLException if (1) the given column index is out of bounds,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2031
     * (2) the cursor is not on one of this rowset's rows or its
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2032
     * insert row, or (3) the designated column does not store an
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2033
     * SQL <code>CHAR, VARCHAR, <b>LONGVARCHAR</b>, BINARY, VARBINARY</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2034
     * <code>LONGVARBINARY</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2035
     * The bold SQL type designates the recommended return type.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2036
     * @see #getCharacterStream(String)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2037
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2038
    public java.io.Reader getCharacterStream(int columnIndex) throws SQLException{
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2039
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2040
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2041
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2042
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2043
     * Retrieves the value stored in the designated column
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2044
     * of the current row as a <code>java.io.Reader</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2045
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2046
     * <P><B>Note:</B> All the data in the returned stream must
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2047
     * be read prior to getting the value of any other column. The
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2048
     * next call to a <code>getXXX</code> method implicitly closes the stream.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2049
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2050
     * @param columnName a <code>String</code> object giving the SQL name of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2051
     *        a column in this <code>CachedRowSetImpl</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2052
     * @return a Java input stream that delivers the database column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2053
     *         as a stream of two-byte Unicode characters.  If the value is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2054
     *         SQL <code>NULL</code>, the result is <code>null</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2055
     * @throws SQLException if (1) the given column name is not the name of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2056
     * a column in this rowset, (2) the cursor is not on one of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2057
     * this rowset's rows or its insert row, or (3) the designated
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2058
     * column does not store an SQL <code>CHAR, VARCHAR, <b>LONGVARCHAR</b>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2059
     * BINARY, VARYBINARY</code> or <code>LONGVARBINARY</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2060
     * The bold SQL type designates the recommended return type.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2061
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2062
    public java.io.Reader getCharacterStream(String columnName) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2063
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2064
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2065
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2066
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2067
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2068
     * of this <code>CachedRowSetImpl</code> object as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2069
     * <code>java.math.BigDecimal</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2070
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2071
     * @param columnIndex the first column is <code>1</code>, the second
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2072
     *        is <code>2</code>, and so on; must be <code>1</code> or larger
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2073
     *        and equal to or less than the number of columns in the rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2074
     * @return a <code>java.math.BigDecimal</code> value with full precision;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2075
     *         if the value is SQL <code>NULL</code>, the result is <code>null</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2076
     * @throws SQLException if (1) the given column index is out of bounds,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2077
     * (2) the cursor is not on one of this rowset's rows or its
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2078
     * insert row, or (3) the designated column does not store an
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2079
     * SQL <code>TINYINT, SMALLINT, INTEGER, BIGINT, REAL,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2080
     * FLOAT, DOUBLE, <b>DECIMAL</b>, <b>NUMERIC</b>, BIT, CHAR, VARCHAR</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2081
     * or <code>LONGVARCHAR</code> value. The bold SQL type designates the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2082
     * recommended return types that this method is used to retrieve.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2083
     * @see #getBigDecimal(String)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2084
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2085
    public BigDecimal getBigDecimal(int columnIndex) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2086
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2087
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2088
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2089
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2090
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2091
     * of this <code>CachedRowSetImpl</code> object as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2092
     * <code>java.math.BigDecimal</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2093
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2094
     * @param columnName a <code>String</code> object that must match the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2095
     *        SQL name of a column in this rowset, ignoring case
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2096
     * @return a <code>java.math.BigDecimal</code> value with full precision;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2097
     *         if the value is SQL <code>NULL</code>, the result is <code>null</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2098
     * @throws SQLException if (1) the given column name is not the name of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2099
     * a column in this rowset, (2) the cursor is not on one of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2100
     * this rowset's rows or its insert row, or (3) the designated
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2101
     * column does not store an SQL <code>TINYINT, SMALLINT, INTEGER
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2102
     * BIGINT, REAL, FLOAT, DOUBLE, <b>DECIMAL</b>, <b>NUMERIC</b>, BIT CHAR,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2103
     * VARCHAR</code> or <code>LONGVARCHAR</code> value. The bold SQL type
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2104
     * designates the recommended return type that this method is used to
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2105
     * retrieve
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2106
     * @see #getBigDecimal(int)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2107
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2108
    public BigDecimal getBigDecimal(String columnName) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2109
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2110
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2111
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2112
    //---------------------------------------------------------------------
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2113
    // Traversal/Positioning
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2114
    //---------------------------------------------------------------------
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2115
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2116
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2117
     * Returns the number of rows in this <code>CachedRowSetImpl</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2118
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2119
     * @return number of rows in the rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2120
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2121
    public int size() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2122
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2123
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2124
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2125
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2126
     * Indicates whether the cursor is before the first row in this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2127
     * <code>CachedRowSetImpl</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2128
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2129
     * @return <code>true</code> if the cursor is before the first row;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2130
     *         <code>false</code> otherwise or if the rowset contains no rows
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2131
     * @throws SQLException if an error occurs
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2132
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2133
    public boolean isBeforeFirst() throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2134
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2135
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2136
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2137
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2138
     * Indicates whether the cursor is after the last row in this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2139
     * <code>CachedRowSetImpl</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2140
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2141
     * @return <code>true</code> if the cursor is after the last row;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2142
     *         <code>false</code> otherwise or if the rowset contains no rows
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2143
     * @throws SQLException if an error occurs
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2144
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2145
    public boolean isAfterLast() throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2146
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2147
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2148
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2149
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2150
     * Indicates whether the cursor is on the first row in this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2151
     * <code>CachedRowSetImpl</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2152
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2153
     * @return <code>true</code> if the cursor is on the first row;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2154
     *         <code>false</code> otherwise or if the rowset contains no rows
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2155
     * @throws SQLException if an error occurs
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2156
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2157
    public boolean isFirst() throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2158
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2159
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2160
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2161
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2162
     * Indicates whether the cursor is on the last row in this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2163
     * <code>CachedRowSetImpl</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2164
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2165
     * Note: Calling the method <code>isLast</code> may be expensive
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2166
     * because the JDBC driver might need to fetch ahead one row in order
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2167
     * to determine whether the current row is the last row in this rowset.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2168
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2169
     * @return <code>true</code> if the cursor is on the last row;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2170
     *         <code>false</code> otherwise or if this rowset contains no rows
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2171
     * @throws SQLException if an error occurs
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2172
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2173
    public boolean isLast() throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2174
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2175
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2176
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2177
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2178
     * Moves this <code>CachedRowSetImpl</code> object's cursor to the front of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2179
     * the rowset, just before the first row. This method has no effect if
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2180
     * this rowset contains no rows.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2181
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2182
     * @throws SQLException if an error occurs or the type of this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2183
     *            is <code>ResultSet.TYPE_FORWARD_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2184
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2185
    public void beforeFirst() throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2186
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2187
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2188
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2189
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2190
     * Moves this <code>CachedRowSetImpl</code> object's cursor to the end of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2191
     * the rowset, just after the last row. This method has no effect if
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2192
     * this rowset contains no rows.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2193
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2194
     * @throws SQLException if an error occurs
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2195
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2196
    public void afterLast() throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2197
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2198
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2199
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2200
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2201
     * Moves this <code>CachedRowSetImpl</code> object's cursor to the first row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2202
     * and returns <code>true</code> if the operation was successful.  This
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2203
     * method also notifies registered listeners that the cursor has moved.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2204
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2205
     * @return <code>true</code> if the cursor is on a valid row;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2206
     *         <code>false</code> otherwise or if there are no rows in this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2207
     *         <code>CachedRowSetImpl</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2208
     * @throws SQLException if the type of this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2209
     *            is <code>ResultSet.TYPE_FORWARD_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2210
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2211
    public boolean first() throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2212
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2213
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2214
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2215
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2216
     * Moves this <code>CachedRowSetImpl</code> object's cursor to the first
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2217
     * row and returns <code>true</code> if the operation is successful.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2218
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2219
     * This method is called internally by the methods <code>first</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2220
     * <code>isFirst</code>, and <code>absolute</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2221
     * It in turn calls the method <code>internalNext</code> in order to
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2222
     * handle the case where the first row is a deleted row that is not visible.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2223
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2224
     * This is a implementation only method and is not required as a standard
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2225
     * implementation of the <code>CachedRowSet</code> interface.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2226
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2227
     * @return <code>true</code> if the cursor moved to the first row;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2228
     *         <code>false</code> otherwise
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2229
     * @throws SQLException if an error occurs
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2230
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2231
    protected boolean internalFirst() throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2232
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2233
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2234
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2235
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2236
     * Moves this <code>CachedRowSetImpl</code> object's cursor to the last row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2237
     * and returns <code>true</code> if the operation was successful.  This
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2238
     * method also notifies registered listeners that the cursor has moved.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2239
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2240
     * @return <code>true</code> if the cursor is on a valid row;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2241
     *         <code>false</code> otherwise or if there are no rows in this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2242
     *         <code>CachedRowSetImpl</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2243
     * @throws SQLException if the type of this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2244
     *            is <code>ResultSet.TYPE_FORWARD_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2245
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2246
    public boolean last() throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2247
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2248
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2249
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2250
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2251
     * Moves this <code>CachedRowSetImpl</code> object's cursor to the last
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2252
     * row and returns <code>true</code> if the operation is successful.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2253
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2254
     * This method is called internally by the method <code>last</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2255
     * when rows have been deleted and the deletions are not visible.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2256
     * The method <code>internalLast</code> handles the case where the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2257
     * last row is a deleted row that is not visible by in turn calling
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2258
     * the method <code>internalPrevious</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2259
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2260
     * This is a implementation only method and is not required as a standard
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2261
     * implementation of the <code>CachedRowSet</code> interface.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2262
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2263
     * @return <code>true</code> if the cursor moved to the last row;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2264
     *         <code>false</code> otherwise
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2265
     * @throws SQLException if an error occurs
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2266
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2267
    protected boolean internalLast() throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2268
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2269
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2270
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2271
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2272
     * Returns the number of the current row in this <code>CachedRowSetImpl</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2273
     * object. The first row is number 1, the second number 2, and so on.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2274
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2275
     * @return the number of the current row;  <code>0</code> if there is no
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2276
     *         current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2277
     * @throws SQLException if an error occurs; or if the <code>CacheRowSetImpl</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2278
     *         is empty
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2279
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2280
    public int getRow() throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2281
        return crsSync.getRow();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2282
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2283
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2284
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2285
     * Moves this <code>CachedRowSetImpl</code> object's cursor to the row number
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2286
     * specified.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2287
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2288
     * <p>If the number is positive, the cursor moves to an absolute row with
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2289
     * respect to the beginning of the rowset.  The first row is row 1, the second
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2290
     * is row 2, and so on.  For example, the following command, in which
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2291
     * <code>crs</code> is a <code>CachedRowSetImpl</code> object, moves the cursor
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2292
     * to the fourth row, starting from the beginning of the rowset.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2293
     * <PRE><code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2294
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2295
     *    crs.absolute(4);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2296
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2297
     * </code> </PRE>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2298
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2299
     * If the number is negative, the cursor moves to an absolute row position
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2300
     * with respect to the end of the rowset.  For example, calling
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2301
     * <code>absolute(-1)</code> positions the cursor on the last row,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2302
     * <code>absolute(-2)</code> moves it on the next-to-last row, and so on.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2303
     * If the <code>CachedRowSetImpl</code> object <code>crs</code> has five rows,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2304
     * the following command moves the cursor to the fourth-to-last row, which
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2305
     * in the case of a  rowset with five rows, is also the second row, counting
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2306
     * from the beginning.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2307
     * <PRE><code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2308
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2309
     *    crs.absolute(-4);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2310
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2311
     * </code> </PRE>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2312
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2313
     * If the number specified is larger than the number of rows, the cursor
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2314
     * will move to the position after the last row. If the number specified
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2315
     * would move the cursor one or more rows before the first row, the cursor
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2316
     * moves to the position before the first row.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2317
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2318
     * Note: Calling <code>absolute(1)</code> is the same as calling the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2319
     * method <code>first()</code>.  Calling <code>absolute(-1)</code> is the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2320
     * same as calling <code>last()</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2321
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2322
     * @param row a positive number to indicate the row, starting row numbering from
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2323
     *        the first row, which is <code>1</code>; a negative number to indicate
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2324
     *        the row, starting row numbering from the last row, which is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2325
     *        <code>-1</code>; it must not be <code>0</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2326
     * @return <code>true</code> if the cursor is on the rowset; <code>false</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2327
     *         otherwise
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2328
     * @throws SQLException if the given cursor position is <code>0</code> or the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2329
     *            type of this rowset is <code>ResultSet.TYPE_FORWARD_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2330
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2331
    public boolean absolute( int row ) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2332
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2333
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2334
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2335
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2336
     * Moves the cursor the specified number of rows from the current
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2337
     * position, with a positive number moving it forward and a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2338
     * negative number moving it backward.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2339
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2340
     * If the number is positive, the cursor moves the specified number of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2341
     * rows toward the end of the rowset, starting at the current row.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2342
     * For example, the following command, in which
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2343
     * <code>crs</code> is a <code>CachedRowSetImpl</code> object with 100 rows,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2344
     * moves the cursor forward four rows from the current row.  If the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2345
     * current row is 50, the cursor would move to row 54.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2346
     * <PRE><code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2347
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2348
     *    crs.relative(4);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2349
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2350
     * </code> </PRE>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2351
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2352
     * If the number is negative, the cursor moves back toward the beginning
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2353
     * the specified number of rows, starting at the current row.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2354
     * For example, calling the method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2355
     * <code>absolute(-1)</code> positions the cursor on the last row,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2356
     * <code>absolute(-2)</code> moves it on the next-to-last row, and so on.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2357
     * If the <code>CachedRowSetImpl</code> object <code>crs</code> has five rows,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2358
     * the following command moves the cursor to the fourth-to-last row, which
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2359
     * in the case of a  rowset with five rows, is also the second row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2360
     * from the beginning.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2361
     * <PRE><code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2362
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2363
     *    crs.absolute(-4);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2364
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2365
     * </code> </PRE>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2366
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2367
     * If the number specified is larger than the number of rows, the cursor
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2368
     * will move to the position after the last row. If the number specified
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2369
     * would move the cursor one or more rows before the first row, the cursor
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2370
     * moves to the position before the first row. In both cases, this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2371
     * throws an <code>SQLException</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2372
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2373
     * Note: Calling <code>absolute(1)</code> is the same as calling the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2374
     * method <code>first()</code>.  Calling <code>absolute(-1)</code> is the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2375
     * same as calling <code>last()</code>.  Calling <code>relative(0)</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2376
     * is valid, but it does not change the cursor position.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2377
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2378
     * @param rows an <code>int</code> indicating the number of rows to move
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2379
     *             the cursor, starting at the current row; a positive number
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2380
     *             moves the cursor forward; a negative number moves the cursor
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2381
     *             backward; must not move the cursor past the valid
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2382
     *             rows
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2383
     * @return <code>true</code> if the cursor is on a row in this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2384
     *         <code>CachedRowSetImpl</code> object; <code>false</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2385
     *         otherwise
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2386
     * @throws SQLException if there are no rows in this rowset, the cursor is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2387
     *         positioned either before the first row or after the last row, or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2388
     *         the rowset is type <code>ResultSet.TYPE_FORWARD_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2389
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2390
    public boolean relative(int rows) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2391
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2392
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2393
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2394
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2395
     * Moves this <code>CachedRowSetImpl</code> object's cursor to the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2396
     * previous row and returns <code>true</code> if the cursor is on
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2397
     * a valid row or <code>false</code> if it is not.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2398
     * This method also notifies all listeners registered with this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2399
     * <code>CachedRowSetImpl</code> object that its cursor has moved.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2400
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2401
     * Note: calling the method <code>previous()</code> is not the same
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2402
     * as calling the method <code>relative(-1)</code>.  This is true
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2403
     * because it is possible to call <code>previous()</code> from the insert
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2404
     * row, from after the last row, or from the current row, whereas
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2405
     * <code>relative</code> may only be called from the current row.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2406
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2407
     * The method <code>previous</code> may used in a <code>while</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2408
     * loop to iterate through a rowset starting after the last row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2409
     * and moving toward the beginning. The loop ends when <code>previous</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2410
     * returns <code>false</code>, meaning that there are no more rows.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2411
     * For example, the following code fragment retrieves all the data in
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2412
     * the <code>CachedRowSetImpl</code> object <code>crs</code>, which has
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2413
     * three columns.  Note that the cursor must initially be positioned
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2414
     * after the last row so that the first call to the method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2415
     * <code>previous</code> places the cursor on the last line.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2416
     * <PRE> <code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2417
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2418
     *     crs.afterLast();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2419
     *     while (previous()) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2420
     *         String name = crs.getString(1);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2421
     *         int age = crs.getInt(2);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2422
     *         short ssn = crs.getShort(3);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2423
     *         System.out.println(name + "   " + age + "   " + ssn);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2424
     *     }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2425
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2426
     * </code> </PRE>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2427
     * This method throws an <code>SQLException</code> if the cursor is not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2428
     * on a row in the rowset, before the first row, or after the last row.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2429
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2430
     * @return <code>true</code> if the cursor is on a valid row;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2431
     *         <code>false</code> if it is before the first row or after the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2432
     *         last row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2433
     * @throws SQLException if the cursor is not on a valid position or the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2434
     *           type of this rowset is <code>ResultSet.TYPE_FORWARD_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2435
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2436
    public boolean previous() throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2437
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2438
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2439
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2440
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2441
     * Moves the cursor to the previous row in this <code>CachedRowSetImpl</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2442
     * object, skipping past deleted rows that are not visible; returns
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2443
     * <code>true</code> if the cursor is on a row in this rowset and
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2444
     * <code>false</code> when the cursor goes before the first row.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2445
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2446
     * This method is called internally by the method <code>previous</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2447
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2448
     * This is a implementation only method and is not required as a standard
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2449
     * implementation of the <code>CachedRowSet</code> interface.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2450
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2451
     * @return <code>true</code> if the cursor is on a row in this rowset;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2452
     *         <code>false</code> when the cursor reaches the position before
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2453
     *         the first row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2454
     * @throws SQLException if an error occurs
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2455
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2456
    protected boolean internalPrevious() throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2457
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2458
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2459
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2460
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2461
    //---------------------------------------------------------------------
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2462
    // Updates
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2463
    //---------------------------------------------------------------------
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2464
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2465
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2466
     * Indicates whether the current row of this <code>CachedRowSetImpl</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2467
     * object has been updated.  The value returned
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2468
     * depends on whether this rowset can detect updates: <code>false</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2469
     * will always be returned if it does not detect updates.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2470
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2471
     * @return <code>true</code> if the row has been visibly updated
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2472
     *         by the owner or another and updates are detected;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2473
     *         <code>false</code> otherwise
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2474
     * @throws SQLException if the cursor is on the insert row or not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2475
     *            not on a valid row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2476
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2477
     * @see DatabaseMetaData#updatesAreDetected
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2478
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2479
    public boolean rowUpdated() throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2480
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2481
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2482
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2483
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2484
     * Indicates whether the designated column of the current row of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2485
     * this <code>CachedRowSetImpl</code> object has been updated. The
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2486
     * value returned depends on whether this rowset can detcted updates:
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2487
     * <code>false</code> will always be returned if it does not detect updates.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2488
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2489
     * @param idx the index identifier of the column that may be have been updated.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2490
     * @return <code>true</code> is the designated column has been updated
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2491
     * and the rowset detects updates; <code>false</code> if the rowset has not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2492
     * been updated or the rowset does not detect updates
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2493
     * @throws SQLException if the cursor is on the insert row or not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2494
     *          on a valid row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2495
     * @see DatabaseMetaData#updatesAreDetected
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2496
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2497
    public boolean columnUpdated(int idx) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2498
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2499
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2500
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2501
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2502
     * Indicates whether the designated column of the current row of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2503
     * this <code>CachedRowSetImpl</code> object has been updated. The
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2504
     * value returned depends on whether this rowset can detcted updates:
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2505
     * <code>false</code> will always be returned if it does not detect updates.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2506
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2507
     * @param columnName the <code>String</code> column name column that may be have
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2508
     * been updated.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2509
     * @return <code>true</code> is the designated column has been updated
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2510
     * and the rowset detects updates; <code>false</code> if the rowset has not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2511
     * been updated or the rowset does not detect updates
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2512
     * @throws SQLException if the cursor is on the insert row or not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2513
     *          on a valid row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2514
     * @see DatabaseMetaData#updatesAreDetected
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2515
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2516
    public boolean columnUpdated(String columnName) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2517
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2518
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2519
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2520
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2521
     * Indicates whether the current row has been inserted.  The value returned
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2522
     * depends on whether or not the rowset can detect visible inserts.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2523
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2524
     * @return <code>true</code> if a row has been inserted and inserts are detected;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2525
     *         <code>false</code> otherwise
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2526
     * @throws SQLException if the cursor is on the insert row or not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2527
     *            not on a valid row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2528
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2529
     * @see DatabaseMetaData#insertsAreDetected
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2530
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2531
    public boolean rowInserted() throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2532
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2533
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2534
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2535
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2536
     * Indicates whether the current row has been deleted.  A deleted row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2537
     * may leave a visible "hole" in a rowset.  This method can be used to
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2538
     * detect such holes if the rowset can detect deletions. This method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2539
     * will always return <code>false</code> if this rowset cannot detect
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2540
     * deletions.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2541
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2542
     * @return <code>true</code> if (1)the current row is blank, indicating that
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2543
     *         the row has been deleted, and (2)deletions are detected;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2544
     *         <code>false</code> otherwise
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2545
     * @throws SQLException if the cursor is on a valid row in this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2546
     * @see DatabaseMetaData#deletesAreDetected
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2547
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2548
    public boolean rowDeleted() throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2549
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2550
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2551
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2552
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2553
     * Sets the designated nullable column in the current row or the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2554
     * insert row of this <code>CachedRowSetImpl</code> object with
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2555
     * <code>null</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2556
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2557
     * This method updates a column value in the current row or the insert
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2558
     * row of this rowset; however, another method must be called to complete
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2559
     * the update process. If the cursor is on a row in the rowset, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2560
     * method {@link #updateRow} must be called to mark the row as updated
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2561
     * and to notify listeners that the row has changed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2562
     * If the cursor is on the insert row, the method {@link #insertRow}
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2563
     * must be called to insert the new row into this rowset and to notify
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2564
     * listeners that a row has changed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2565
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2566
     * In order to propagate updates in this rowset to the underlying
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2567
     * data source, an application must call the method {@link #acceptChanges}
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2568
     * after it calls either <code>updateRow</code> or <code>insertRow</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2569
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2570
     * @param columnIndex the first column is <code>1</code>, the second
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2571
     *        is <code>2</code>, and so on; must be <code>1</code> or larger
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2572
     *        and equal to or less than the number of columns in this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2573
     * @throws SQLException if (1) the given column index is out of bounds,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2574
     *            (2) the cursor is not on one of this rowset's rows or its
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2575
     *            insert row, or (3) this rowset is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2576
     *            <code>ResultSet.CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2577
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2578
    public void updateNull(int columnIndex) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2579
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2580
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2581
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2582
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2583
     * Sets the designated column in either the current row or the insert
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2584
     * row of this <code>CachedRowSetImpl</code> object with the given
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2585
     * <code>boolean</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2586
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2587
     * This method updates a column value in the current row or the insert
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2588
     * row of this rowset, but it does not update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2589
     * If the cursor is on a row in the rowset, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2590
     * method {@link #updateRow} must be called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2591
     * If the cursor is on the insert row, the method {@link #insertRow}
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2592
     * must be called, which will insert the new row into both this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2593
     * and the database. Both of these methods must be called before the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2594
     * cursor moves to another row.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2595
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2596
     * @param columnIndex the first column is <code>1</code>, the second
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2597
     *        is <code>2</code>, and so on; must be <code>1</code> or larger
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2598
     *        and equal to or less than the number of columns in this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2599
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2600
     * @throws SQLException if (1) the given column index is out of bounds,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2601
     *            (2) the cursor is not on one of this rowset's rows or its
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2602
     *            insert row, or (3) this rowset is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2603
     *            <code>ResultSet.CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2604
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2605
    public void updateBoolean(int columnIndex, boolean x) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2606
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2607
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2608
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2609
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2610
     * Sets the designated column in either the current row or the insert
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2611
     * row of this <code>CachedRowSetImpl</code> object with the given
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2612
     * <code>byte</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2613
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2614
     * This method updates a column value in the current row or the insert
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2615
     * row of this rowset, but it does not update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2616
     * If the cursor is on a row in the rowset, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2617
     * method {@link #updateRow} must be called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2618
     * If the cursor is on the insert row, the method {@link #insertRow}
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2619
     * must be called, which will insert the new row into both this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2620
     * and the database. Both of these methods must be called before the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2621
     * cursor moves to another row.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2622
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2623
     * @param columnIndex the first column is <code>1</code>, the second
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2624
     *        is <code>2</code>, and so on; must be <code>1</code> or larger
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2625
     *        and equal to or less than the number of columns in this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2626
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2627
     * @throws SQLException if (1) the given column index is out of bounds,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2628
     *            (2) the cursor is not on one of this rowset's rows or its
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2629
     *            insert row, or (3) this rowset is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2630
     *            <code>ResultSet.CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2631
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2632
    public void updateByte(int columnIndex, byte x) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2633
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2634
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2635
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2636
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2637
     * Sets the designated column in either the current row or the insert
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2638
     * row of this <code>CachedRowSetImpl</code> object with the given
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2639
     * <code>short</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2640
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2641
     * This method updates a column value in the current row or the insert
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2642
     * row of this rowset, but it does not update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2643
     * If the cursor is on a row in the rowset, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2644
     * method {@link #updateRow} must be called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2645
     * If the cursor is on the insert row, the method {@link #insertRow}
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2646
     * must be called, which will insert the new row into both this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2647
     * and the database. Both of these methods must be called before the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2648
     * cursor moves to another row.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2649
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2650
     * @param columnIndex the first column is <code>1</code>, the second
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2651
     *        is <code>2</code>, and so on; must be <code>1</code> or larger
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2652
     *        and equal to or less than the number of columns in this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2653
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2654
     * @throws SQLException if (1) the given column index is out of bounds,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2655
     *            (2) the cursor is not on one of this rowset's rows or its
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2656
     *            insert row, or (3) this rowset is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2657
     *            <code>ResultSet.CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2658
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2659
    public void updateShort(int columnIndex, short x) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2660
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2661
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2662
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2663
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2664
     * Sets the designated column in either the current row or the insert
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2665
     * row of this <code>CachedRowSetImpl</code> object with the given
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2666
     * <code>int</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2667
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2668
     * This method updates a column value in the current row or the insert
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2669
     * row of this rowset, but it does not update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2670
     * If the cursor is on a row in the rowset, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2671
     * method {@link #updateRow} must be called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2672
     * If the cursor is on the insert row, the method {@link #insertRow}
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2673
     * must be called, which will insert the new row into both this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2674
     * and the database. Both of these methods must be called before the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2675
     * cursor moves to another row.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2676
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2677
     * @param columnIndex the first column is <code>1</code>, the second
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2678
     *        is <code>2</code>, and so on; must be <code>1</code> or larger
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2679
     *        and equal to or less than the number of columns in this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2680
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2681
     * @throws SQLException if (1) the given column index is out of bounds,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2682
     *            (2) the cursor is not on one of this rowset's rows or its
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2683
     *            insert row, or (3) this rowset is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2684
     *            <code>ResultSet.CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2685
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2686
    public void updateInt(int columnIndex, int x) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2687
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2688
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2689
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2690
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2691
     * Sets the designated column in either the current row or the insert
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2692
     * row of this <code>CachedRowSetImpl</code> object with the given
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2693
     * <code>long</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2694
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2695
     * This method updates a column value in the current row or the insert
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2696
     * row of this rowset, but it does not update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2697
     * If the cursor is on a row in the rowset, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2698
     * method {@link #updateRow} must be called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2699
     * If the cursor is on the insert row, the method {@link #insertRow}
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2700
     * must be called, which will insert the new row into both this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2701
     * and the database. Both of these methods must be called before the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2702
     * cursor moves to another row.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2703
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2704
     * @param columnIndex the first column is <code>1</code>, the second
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2705
     *        is <code>2</code>, and so on; must be <code>1</code> or larger
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2706
     *        and equal to or less than the number of columns in this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2707
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2708
     * @throws SQLException if (1) the given column index is out of bounds,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2709
     *            (2) the cursor is not on one of this rowset's rows or its
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2710
     *            insert row, or (3) this rowset is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2711
     *            <code>ResultSet.CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2712
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2713
    public void updateLong(int columnIndex, long x) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2714
       throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2715
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2716
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2717
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2718
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2719
     * Sets the designated column in either the current row or the insert
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2720
     * row of this <code>CachedRowSetImpl</code> object with the given
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2721
     * <code>float</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2722
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2723
     * This method updates a column value in the current row or the insert
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2724
     * row of this rowset, but it does not update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2725
     * If the cursor is on a row in the rowset, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2726
     * method {@link #updateRow} must be called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2727
     * If the cursor is on the insert row, the method {@link #insertRow}
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2728
     * must be called, which will insert the new row into both this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2729
     * and the database. Both of these methods must be called before the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2730
     * cursor moves to another row.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2731
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2732
     * @param columnIndex the first column is <code>1</code>, the second
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2733
     *        is <code>2</code>, and so on; must be <code>1</code> or larger
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2734
     *        and equal to or less than the number of columns in this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2735
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2736
     * @throws SQLException if (1) the given column index is out of bounds,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2737
     *            (2) the cursor is not on one of this rowset's rows or its
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2738
     *            insert row, or (3) this rowset is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2739
     *            <code>ResultSet.CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2740
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2741
    public void updateFloat(int columnIndex, float x) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2742
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2743
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2744
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2745
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2746
     * Sets the designated column in either the current row or the insert
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2747
     * row of this <code>CachedRowSetImpl</code> object with the given
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2748
     * <code>double</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2749
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2750
     * This method updates a column value in either the current row or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2751
     * the insert row of this rowset, but it does not update the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2752
     * database.  If the cursor is on a row in the rowset, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2753
     * method {@link #updateRow} must be called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2754
     * If the cursor is on the insert row, the method {@link #insertRow}
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2755
     * must be called, which will insert the new row into both this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2756
     * and the database. Both of these methods must be called before the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2757
     * cursor moves to another row.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2758
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2759
     * @param columnIndex the first column is <code>1</code>, the second
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2760
     *        is <code>2</code>, and so on; must be <code>1</code> or larger
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2761
     *        and equal to or less than the number of columns in this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2762
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2763
     * @throws SQLException if (1) the given column index is out of bounds,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2764
     *            (2) the cursor is not on one of this rowset's rows or its
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2765
     *            insert row, or (3) this rowset is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2766
     *            <code>ResultSet.CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2767
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2768
    public void updateDouble(int columnIndex, double x) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2769
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2770
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2771
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2772
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2773
     * Sets the designated column in either the current row or the insert
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2774
     * row of this <code>CachedRowSetImpl</code> object with the given
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2775
     * <code>java.math.BigDecimal</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2776
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2777
     * This method updates a column value in the current row or the insert
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2778
     * row of this rowset, but it does not update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2779
     * If the cursor is on a row in the rowset, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2780
     * method {@link #updateRow} must be called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2781
     * If the cursor is on the insert row, the method {@link #insertRow}
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2782
     * must be called, which will insert the new row into both this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2783
     * and the database. Both of these methods must be called before the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2784
     * cursor moves to another row.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2785
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2786
     * @param columnIndex the first column is <code>1</code>, the second
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2787
     *        is <code>2</code>, and so on; must be <code>1</code> or larger
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2788
     *        and equal to or less than the number of columns in this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2789
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2790
     * @throws SQLException if (1) the given column index is out of bounds,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2791
     *            (2) the cursor is not on one of this rowset's rows or its
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2792
     *            insert row, or (3) this rowset is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2793
     *            <code>ResultSet.CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2794
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2795
    public void updateBigDecimal(int columnIndex, BigDecimal x) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2796
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2797
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2798
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2799
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2800
     * Sets the designated column in either the current row or the insert
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2801
     * row of this <code>CachedRowSetImpl</code> object with the given
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2802
     * <code>String</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2803
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2804
     * This method updates a column value in either the current row or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2805
     * the insert row of this rowset, but it does not update the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2806
     * database.  If the cursor is on a row in the rowset, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2807
     * method {@link #updateRow} must be called to mark the row as updated.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2808
     * If the cursor is on the insert row, the method {@link #insertRow}
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2809
     * must be called to insert the new row into this rowset and mark it
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2810
     * as inserted. Both of these methods must be called before the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2811
     * cursor moves to another row.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2812
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2813
     * The method <code>acceptChanges</code> must be called if the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2814
     * updated values are to be written back to the underlying database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2815
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2816
     * @param columnIndex the first column is <code>1</code>, the second
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2817
     *        is <code>2</code>, and so on; must be <code>1</code> or larger
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2818
     *        and equal to or less than the number of columns in this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2819
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2820
     * @throws SQLException if (1) the given column index is out of bounds,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2821
     *            (2) the cursor is not on one of this rowset's rows or its
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2822
     *            insert row, or (3) this rowset is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2823
     *            <code>ResultSet.CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2824
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2825
    public void updateString(int columnIndex, String x) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2826
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2827
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2828
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2829
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2830
     * Sets the designated column in either the current row or the insert
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2831
     * row of this <code>CachedRowSetImpl</code> object with the given
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2832
     * <code>byte</code> array.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2833
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2834
     * This method updates a column value in either the current row or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2835
     * the insert row of this rowset, but it does not update the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2836
     * database.  If the cursor is on a row in the rowset, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2837
     * method {@link #updateRow} must be called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2838
     * If the cursor is on the insert row, the method {@link #insertRow}
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2839
     * must be called, which will insert the new row into both this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2840
     * and the database. Both of these methods must be called before the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2841
     * cursor moves to another row.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2842
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2843
     * @param columnIndex the first column is <code>1</code>, the second
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2844
     *        is <code>2</code>, and so on; must be <code>1</code> or larger
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2845
     *        and equal to or less than the number of columns in this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2846
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2847
     * @throws SQLException if (1) the given column index is out of bounds,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2848
     *            (2) the cursor is not on one of this rowset's rows or its
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2849
     *            insert row, or (3) this rowset is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2850
     *            <code>ResultSet.CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2851
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2852
    public void updateBytes(int columnIndex, byte x[]) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2853
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2854
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2855
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2856
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2857
     * Sets the designated column in either the current row or the insert
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2858
     * row of this <code>CachedRowSetImpl</code> object with the given
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2859
     * <code>Date</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2860
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2861
     * This method updates a column value in either the current row or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2862
     * the insert row of this rowset, but it does not update the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2863
     * database.  If the cursor is on a row in the rowset, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2864
     * method {@link #updateRow} must be called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2865
     * If the cursor is on the insert row, the method {@link #insertRow}
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2866
     * must be called, which will insert the new row into both this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2867
     * and the database. Both of these methods must be called before the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2868
     * cursor moves to another row.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2869
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2870
     * @param columnIndex the first column is <code>1</code>, the second
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2871
     *        is <code>2</code>, and so on; must be <code>1</code> or larger
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2872
     *        and equal to or less than the number of columns in this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2873
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2874
     * @throws SQLException if (1) the given column index is out of bounds,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2875
     *            (2) the cursor is not on one of this rowset's rows or its
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2876
     *            insert row, (3) the type of the designated column is not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2877
     *            an SQL <code>DATE</code> or <code>TIMESTAMP</code>, or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2878
     *            (4) this rowset is <code>ResultSet.CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2879
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2880
    public void updateDate(int columnIndex, java.sql.Date x) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2881
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2882
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2883
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2884
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2885
     * Sets the designated column in either the current row or the insert
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2886
     * row of this <code>CachedRowSetImpl</code> object with the given
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2887
     * <code>Time</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2888
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2889
     * This method updates a column value in either the current row or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2890
     * the insert row of this rowset, but it does not update the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2891
     * database.  If the cursor is on a row in the rowset, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2892
     * method {@link #updateRow} must be called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2893
     * If the cursor is on the insert row, the method {@link #insertRow}
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2894
     * must be called, which will insert the new row into both this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2895
     * and the database. Both of these methods must be called before the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2896
     * cursor moves to another row.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2897
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2898
     * @param columnIndex the first column is <code>1</code>, the second
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2899
     *        is <code>2</code>, and so on; must be <code>1</code> or larger
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2900
     *        and equal to or less than the number of columns in this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2901
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2902
     * @throws SQLException if (1) the given column index is out of bounds,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2903
     *            (2) the cursor is not on one of this rowset's rows or its
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2904
     *            insert row, (3) the type of the designated column is not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2905
     *            an SQL <code>TIME</code> or <code>TIMESTAMP</code>, or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2906
     *            (4) this rowset is <code>ResultSet.CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2907
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2908
    public void updateTime(int columnIndex, java.sql.Time x) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2909
       throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2910
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2911
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2912
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2913
     * Sets the designated column in either the current row or the insert
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2914
     * row of this <code>CachedRowSetImpl</code> object with the given
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2915
     * <code>Timestamp</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2916
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2917
     * This method updates a column value in either the current row or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2918
     * the insert row of this rowset, but it does not update the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2919
     * database.  If the cursor is on a row in the rowset, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2920
     * method {@link #updateRow} must be called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2921
     * If the cursor is on the insert row, the method {@link #insertRow}
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2922
     * must be called, which will insert the new row into both this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2923
     * and the database. Both of these methods must be called before the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2924
     * cursor moves to another row.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2925
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2926
     * @param columnIndex the first column is <code>1</code>, the second
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2927
     *        is <code>2</code>, and so on; must be <code>1</code> or larger
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2928
     *        and equal to or less than the number of columns in this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2929
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2930
     * @throws SQLException if (1) the given column index is out of bounds,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2931
     *            (2) the cursor is not on one of this rowset's rows or its
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2932
     *            insert row, (3) the type of the designated column is not
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2933
     *            an SQL <code>DATE</code>, <code>TIME</code>, or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2934
     *            <code>TIMESTAMP</code>, or (4) this rowset is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2935
     *            <code>ResultSet.CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2936
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2937
    public void updateTimestamp(int columnIndex, java.sql.Timestamp x) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2938
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2939
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2940
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2941
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2942
     * Sets the designated column in either the current row or the insert
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2943
     * row of this <code>CachedRowSetImpl</code> object with the given
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2944
     * ASCII stream value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2945
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2946
     * This method updates a column value in either the current row or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2947
     * the insert row of this rowset, but it does not update the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2948
     * database.  If the cursor is on a row in the rowset, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2949
     * method {@link #updateRow} must be called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2950
     * If the cursor is on the insert row, the method {@link #insertRow}
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2951
     * must be called, which will insert the new row into both this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2952
     * and the database. Both of these methods must be called before the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2953
     * cursor moves to another row.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2954
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2955
     * @param columnIndex the first column is <code>1</code>, the second
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2956
     *        is <code>2</code>, and so on; must be <code>1</code> or larger
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2957
     *        and equal to or less than the number of columns in this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2958
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2959
     * @param length the number of one-byte ASCII characters in the stream
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2960
     * @throws SQLException if this method is invoked
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2961
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2962
    public void updateAsciiStream(int columnIndex, java.io.InputStream x, int length) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2963
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2964
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2965
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2966
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2967
     * Sets the designated column in either the current row or the insert
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2968
     * row of this <code>CachedRowSetImpl</code> object with the given
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2969
     * <code>java.io.InputStream</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2970
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2971
     * This method updates a column value in either the current row or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2972
     * the insert row of this rowset, but it does not update the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2973
     * database.  If the cursor is on a row in the rowset, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2974
     * method {@link #updateRow} must be called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2975
     * If the cursor is on the insert row, the method {@link #insertRow}
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2976
     * must be called, which will insert the new row into both this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2977
     * and the database. Both of these methods must be called before the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2978
     * cursor moves to another row.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2979
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2980
     * @param columnIndex the first column is <code>1</code>, the second
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2981
     *        is <code>2</code>, and so on; must be <code>1</code> or larger
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2982
     *        and equal to or less than the number of columns in this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2983
     * @param x the new column value; must be a <code>java.io.InputStream</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2984
     *          containing <code>BINARY</code>, <code>VARBINARY</code>, or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2985
     *          <code>LONGVARBINARY</code> data
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2986
     * @param length the length of the stream in bytes
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2987
     * @throws SQLException if (1) the given column index is out of bounds,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2988
     *            (2) the cursor is not on one of this rowset's rows or its
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2989
     *            insert row, (3) the data in the stream is not binary, or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2990
     *            (4) this rowset is <code>ResultSet.CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2991
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2992
    public void updateBinaryStream(int columnIndex, java.io.InputStream x,int length) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2993
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2994
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2995
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2996
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2997
     * Sets the designated column in either the current row or the insert
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2998
     * row of this <code>CachedRowSetImpl</code> object with the given
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2999
     * <code>java.io.Reader</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3000
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3001
     * This method updates a column value in either the current row or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3002
     * the insert row of this rowset, but it does not update the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3003
     * database.  If the cursor is on a row in the rowset, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3004
     * method {@link #updateRow} must be called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3005
     * If the cursor is on the insert row, the method {@link #insertRow}
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3006
     * must be called, which will insert the new row into both this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3007
     * and the database. Both of these methods must be called before the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3008
     * cursor moves to another row.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3009
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3010
     * @param columnIndex the first column is <code>1</code>, the second
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3011
     *        is <code>2</code>, and so on; must be <code>1</code> or larger
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3012
     *        and equal to or less than the number of columns in this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3013
     * @param x the new column value; must be a <code>java.io.Reader</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3014
     *          containing <code>BINARY</code>, <code>VARBINARY</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3015
     *          <code>LONGVARBINARY</code>, <code>CHAR</code>, <code>VARCHAR</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3016
     *          or <code>LONGVARCHAR</code> data
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3017
     * @param length the length of the stream in characters
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3018
     * @throws SQLException if (1) the given column index is out of bounds,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3019
     *            (2) the cursor is not on one of this rowset's rows or its
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3020
     *            insert row, (3) the data in the stream is not a binary or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3021
     *            character type, or (4) this rowset is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3022
     *            <code>ResultSet.CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3023
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3024
    public void updateCharacterStream(int columnIndex, java.io.Reader x, int length) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3025
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3026
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3027
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3028
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3029
     * Sets the designated column in either the current row or the insert
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3030
     * row of this <code>CachedRowSetImpl</code> object with the given
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3031
     * <code>Object</code> value.  The <code>scale</code> parameter indicates
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3032
     * the number of digits to the right of the decimal point and is ignored
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3033
     * if the new column value is not a type that will be mapped to an SQL
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3034
     * <code>DECIMAL</code> or <code>NUMERIC</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3035
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3036
     * This method updates a column value in either the current row or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3037
     * the insert row of this rowset, but it does not update the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3038
     * database.  If the cursor is on a row in the rowset, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3039
     * method {@link #updateRow} must be called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3040
     * If the cursor is on the insert row, the method {@link #insertRow}
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3041
     * must be called, which will insert the new row into both this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3042
     * and the database. Both of these methods must be called before the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3043
     * cursor moves to another row.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3044
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3045
     * @param columnIndex the first column is <code>1</code>, the second
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3046
     *        is <code>2</code>, and so on; must be <code>1</code> or larger
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3047
     *        and equal to or less than the number of columns in this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3048
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3049
     * @param scale the number of digits to the right of the decimal point (for
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3050
     *              <code>DECIMAL</code> and <code>NUMERIC</code> types only)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3051
     * @throws SQLException if (1) the given column index is out of bounds,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3052
     *            (2) the cursor is not on one of this rowset's rows or its
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3053
     *            insert row, or (3) this rowset is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3054
     *            <code>ResultSet.CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3055
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3056
    public void updateObject(int columnIndex, Object x, int scale) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3057
       throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3058
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3059
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3060
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3061
     * Sets the designated column in either the current row or the insert
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3062
     * row of this <code>CachedRowSetImpl</code> object with the given
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3063
     * <code>Object</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3064
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3065
     * This method updates a column value in either the current row or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3066
     * the insert row of this rowset, but it does not update the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3067
     * database.  If the cursor is on a row in the rowset, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3068
     * method {@link #updateRow} must be called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3069
     * If the cursor is on the insert row, the method {@link #insertRow}
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3070
     * must be called, which will insert the new row into both this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3071
     * and the database. Both of these methods must be called before the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3072
     * cursor moves to another row.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3073
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3074
     * @param columnIndex the first column is <code>1</code>, the second
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3075
     *        is <code>2</code>, and so on; must be <code>1</code> or larger
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3076
     *        and equal to or less than the number of columns in this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3077
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3078
     * @throws SQLException if (1) the given column index is out of bounds,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3079
     *            (2) the cursor is not on one of this rowset's rows or its
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3080
     *            insert row, or (3) this rowset is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3081
     *            <code>ResultSet.CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3082
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3083
    public void updateObject(int columnIndex, Object x) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3084
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3085
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3086
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3087
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3088
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3089
     * Sets the designated nullable column in the current row or the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3090
     * insert row of this <code>CachedRowSetImpl</code> object with
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3091
     * <code>null</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3092
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3093
     * This method updates a column value in the current row or the insert
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3094
     * row of this rowset, but it does not update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3095
     * If the cursor is on a row in the rowset, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3096
     * method {@link #updateRow} must be called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3097
     * If the cursor is on the insert row, the method {@link #insertRow}
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3098
     * must be called, which will insert the new row into both this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3099
     * and the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3100
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3101
     * @param columnName a <code>String</code> object that must match the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3102
     *        SQL name of a column in this rowset, ignoring case
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3103
     * @throws SQLException if (1) the given column name does not match the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3104
     *            name of a column in this rowset, (2) the cursor is not on
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3105
     *            one of this rowset's rows or its insert row, or (3) this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3106
     *            rowset is <code>ResultSet.CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3107
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3108
    public void updateNull(String columnName) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3109
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3110
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3111
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3112
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3113
     * Sets the designated column in either the current row or the insert
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3114
     * row of this <code>CachedRowSetImpl</code> object with the given
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3115
     * <code>boolean</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3116
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3117
     * This method updates a column value in the current row or the insert
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3118
     * row of this rowset, but it does not update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3119
     * If the cursor is on a row in the rowset, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3120
     * method {@link #updateRow} must be called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3121
     * If the cursor is on the insert row, the method {@link #insertRow}
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3122
     * must be called, which will insert the new row into both this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3123
     * and the database. Both of these methods must be called before the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3124
     * cursor moves to another row.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3125
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3126
     * @param columnName a <code>String</code> object that must match the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3127
     *        SQL name of a column in this rowset, ignoring case
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3128
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3129
     * @throws SQLException if (1) the given column name does not match the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3130
     *            name of a column in this rowset, (2) the cursor is not on
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3131
     *            one of this rowset's rows or its insert row, or (3) this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3132
     *            rowset is <code>ResultSet.CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3133
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3134
    public void updateBoolean(String columnName, boolean x) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3135
       throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3136
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3137
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3138
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3139
     * Sets the designated column in either the current row or the insert
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3140
     * row of this <code>CachedRowSetImpl</code> object with the given
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3141
     * <code>byte</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3142
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3143
     * This method updates a column value in the current row or the insert
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3144
     * row of this rowset, but it does not update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3145
     * If the cursor is on a row in the rowset, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3146
     * method {@link #updateRow} must be called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3147
     * If the cursor is on the insert row, the method {@link #insertRow}
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3148
     * must be called, which will insert the new row into both this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3149
     * and the database. Both of these methods must be called before the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3150
     * cursor moves to another row.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3151
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3152
     * @param columnName a <code>String</code> object that must match the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3153
     *        SQL name of a column in this rowset, ignoring case
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3154
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3155
     * @throws SQLException if (1) the given column name does not match the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3156
     *            name of a column in this rowset, (2) the cursor is not on
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3157
     *            one of this rowset's rows or its insert row, or (3) this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3158
     *            rowset is <code>ResultSet.CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3159
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3160
    public void updateByte(String columnName, byte x) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3161
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3162
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3163
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3164
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3165
     * Sets the designated column in either the current row or the insert
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3166
     * row of this <code>CachedRowSetImpl</code> object with the given
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3167
     * <code>short</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3168
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3169
     * This method updates a column value in the current row or the insert
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3170
     * row of this rowset, but it does not update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3171
     * If the cursor is on a row in the rowset, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3172
     * method {@link #updateRow} must be called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3173
     * If the cursor is on the insert row, the method {@link #insertRow}
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3174
     * must be called, which will insert the new row into both this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3175
     * and the database. Both of these methods must be called before the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3176
     * cursor moves to another row.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3177
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3178
     * @param columnName a <code>String</code> object that must match the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3179
     *        SQL name of a column in this rowset, ignoring case
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3180
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3181
     * @throws SQLException if (1) the given column name does not match the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3182
     *            name of a column in this rowset, (2) the cursor is not on
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3183
     *            one of this rowset's rows or its insert row, or (3) this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3184
     *            rowset is <code>ResultSet.CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3185
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3186
    public void updateShort(String columnName, short x) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3187
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3188
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3189
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3190
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3191
     * Sets the designated column in either the current row or the insert
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3192
     * row of this <code>CachedRowSetImpl</code> object with the given
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3193
     * <code>int</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3194
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3195
     * This method updates a column value in the current row or the insert
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3196
     * row of this rowset, but it does not update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3197
     * If the cursor is on a row in the rowset, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3198
     * method {@link #updateRow} must be called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3199
     * If the cursor is on the insert row, the method {@link #insertRow}
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3200
     * must be called, which will insert the new row into both this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3201
     * and the database. Both of these methods must be called before the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3202
     * cursor moves to another row.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3203
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3204
     * @param columnName a <code>String</code> object that must match the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3205
     *        SQL name of a column in this rowset, ignoring case
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3206
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3207
     * @throws SQLException if (1) the given column name does not match the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3208
     *            name of a column in this rowset, (2) the cursor is not on
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3209
     *            one of this rowset's rows or its insert row, or (3) this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3210
     *            rowset is <code>ResultSet.CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3211
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3212
    public void updateInt(String columnName, int x) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3213
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3214
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3215
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3216
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3217
     * Sets the designated column in either the current row or the insert
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3218
     * row of this <code>CachedRowSetImpl</code> object with the given
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3219
     * <code>long</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3220
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3221
     * This method updates a column value in the current row or the insert
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3222
     * row of this rowset, but it does not update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3223
     * If the cursor is on a row in the rowset, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3224
     * method {@link #updateRow} must be called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3225
     * If the cursor is on the insert row, the method {@link #insertRow}
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3226
     * must be called, which will insert the new row into both this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3227
     * and the database. Both of these methods must be called before the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3228
     * cursor moves to another row.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3229
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3230
     * @param columnName a <code>String</code> object that must match the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3231
     *        SQL name of a column in this rowset, ignoring case
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3232
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3233
     * @throws SQLException if (1) the given column name does not match the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3234
     *            name of a column in this rowset, (2) the cursor is not on
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3235
     *            one of this rowset's rows or its insert row, or (3) this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3236
     *            rowset is <code>ResultSet.CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3237
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3238
    public void updateLong(String columnName, long x) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3239
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3240
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3241
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3242
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3243
     * Sets the designated column in either the current row or the insert
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3244
     * row of this <code>CachedRowSetImpl</code> object with the given
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3245
     * <code>float</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3246
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3247
     * This method updates a column value in the current row or the insert
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3248
     * row of this rowset, but it does not update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3249
     * If the cursor is on a row in the rowset, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3250
     * method {@link #updateRow} must be called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3251
     * If the cursor is on the insert row, the method {@link #insertRow}
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3252
     * must be called, which will insert the new row into both this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3253
     * and the database. Both of these methods must be called before the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3254
     * cursor moves to another row.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3255
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3256
     * @param columnName a <code>String</code> object that must match the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3257
     *        SQL name of a column in this rowset, ignoring case
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3258
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3259
     * @throws SQLException if (1) the given column name does not match the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3260
     *            name of a column in this rowset, (2) the cursor is not on
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3261
     *            one of this rowset's rows or its insert row, or (3) this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3262
     *            rowset is <code>ResultSet.CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3263
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3264
    public void updateFloat(String columnName, float x) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3265
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3266
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3267
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3268
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3269
     * Sets the designated column in either the current row or the insert
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3270
     * row of this <code>CachedRowSetImpl</code> object with the given
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3271
     * <code>double</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3272
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3273
     * This method updates a column value in either the current row or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3274
     * the insert row of this rowset, but it does not update the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3275
     * database.  If the cursor is on a row in the rowset, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3276
     * method {@link #updateRow} must be called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3277
     * If the cursor is on the insert row, the method {@link #insertRow}
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3278
     * must be called, which will insert the new row into both this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3279
     * and the database. Both of these methods must be called before the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3280
     * cursor moves to another row.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3281
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3282
     * @param columnName a <code>String</code> object that must match the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3283
     *        SQL name of a column in this rowset, ignoring case
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3284
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3285
     * @throws SQLException if (1) the given column name does not match the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3286
     *            name of a column in this rowset, (2) the cursor is not on
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3287
     *            one of this rowset's rows or its insert row, or (3) this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3288
     *            rowset is <code>ResultSet.CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3289
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3290
    public void updateDouble(String columnName, double x) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3291
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3292
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3293
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3294
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3295
     * Sets the designated column in either the current row or the insert
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3296
     * row of this <code>CachedRowSetImpl</code> object with the given
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3297
     * <code>java.math.BigDecimal</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3298
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3299
     * This method updates a column value in the current row or the insert
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3300
     * row of this rowset, but it does not update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3301
     * If the cursor is on a row in the rowset, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3302
     * method {@link #updateRow} must be called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3303
     * If the cursor is on the insert row, the method {@link #insertRow}
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3304
     * must be called, which will insert the new row into both this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3305
     * and the database. Both of these methods must be called before the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3306
     * cursor moves to another row.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3307
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3308
     * @param columnName a <code>String</code> object that must match the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3309
     *        SQL name of a column in this rowset, ignoring case
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3310
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3311
     * @throws SQLException if (1) the given column name does not match the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3312
     *            name of a column in this rowset, (2) the cursor is not on
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3313
     *            one of this rowset's rows or its insert row, or (3) this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3314
     *            rowset is <code>ResultSet.CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3315
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3316
    public void updateBigDecimal(String columnName, BigDecimal x) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3317
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3318
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3319
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3320
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3321
     * Sets the designated column in either the current row or the insert
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3322
     * row of this <code>CachedRowSetImpl</code> object with the given
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3323
     * <code>String</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3324
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3325
     * This method updates a column value in either the current row or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3326
     * the insert row of this rowset, but it does not update the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3327
     * database.  If the cursor is on a row in the rowset, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3328
     * method {@link #updateRow} must be called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3329
     * If the cursor is on the insert row, the method {@link #insertRow}
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3330
     * must be called, which will insert the new row into both this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3331
     * and the database. Both of these methods must be called before the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3332
     * cursor moves to another row.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3333
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3334
     * @param columnName a <code>String</code> object that must match the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3335
     *        SQL name of a column in this rowset, ignoring case
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3336
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3337
     * @throws SQLException if (1) the given column name does not match the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3338
     *            name of a column in this rowset, (2) the cursor is not on
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3339
     *            one of this rowset's rows or its insert row, or (3) this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3340
     *            rowset is <code>ResultSet.CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3341
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3342
    public void updateString(String columnName, String x) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3343
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3344
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3345
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3346
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3347
     * Sets the designated column in either the current row or the insert
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3348
     * row of this <code>CachedRowSetImpl</code> object with the given
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3349
     * <code>byte</code> array.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3350
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3351
     * This method updates a column value in either the current row or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3352
     * the insert row of this rowset, but it does not update the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3353
     * database.  If the cursor is on a row in the rowset, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3354
     * method {@link #updateRow} must be called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3355
     * If the cursor is on the insert row, the method {@link #insertRow}
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3356
     * must be called, which will insert the new row into both this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3357
     * and the database. Both of these methods must be called before the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3358
     * cursor moves to another row.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3359
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3360
     * @param columnName a <code>String</code> object that must match the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3361
     *        SQL name of a column in this rowset, ignoring case
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3362
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3363
     * @throws SQLException if (1) the given column name does not match the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3364
     *            name of a column in this rowset, (2) the cursor is not on
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3365
     *            one of this rowset's rows or its insert row, or (3) this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3366
     *            rowset is <code>ResultSet.CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3367
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3368
    public void updateBytes(String columnName, byte x[]) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3369
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3370
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3371
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3372
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3373
     * Sets the designated column in either the current row or the insert
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3374
     * row of this <code>CachedRowSetImpl</code> object with the given
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3375
     * <code>Date</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3376
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3377
     * This method updates a column value in either the current row or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3378
     * the insert row of this rowset, but it does not update the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3379
     * database.  If the cursor is on a row in the rowset, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3380
     * method {@link #updateRow} must be called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3381
     * If the cursor is on the insert row, the method {@link #insertRow}
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3382
     * must be called, which will insert the new row into both this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3383
     * and the database. Both of these methods must be called before the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3384
     * cursor moves to another row.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3385
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3386
     * @param columnName a <code>String</code> object that must match the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3387
     *        SQL name of a column in this rowset, ignoring case
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3388
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3389
     * @throws SQLException if (1) the given column name does not match the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3390
     *            name of a column in this rowset, (2) the cursor is not on
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3391
     *            one of this rowset's rows or its insert row, (3) the type
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3392
     *            of the designated column is not an SQL <code>DATE</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3393
     *            <code>TIMESTAMP</code>, or (4) this rowset is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3394
     *            <code>ResultSet.CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3395
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3396
    public void updateDate(String columnName, java.sql.Date x) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3397
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3398
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3399
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3400
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3401
     * Sets the designated column in either the current row or the insert
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3402
     * row of this <code>CachedRowSetImpl</code> object with the given
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3403
     * <code>Time</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3404
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3405
     * This method updates a column value in either the current row or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3406
     * the insert row of this rowset, but it does not update the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3407
     * database.  If the cursor is on a row in the rowset, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3408
     * method {@link #updateRow} must be called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3409
     * If the cursor is on the insert row, the method {@link #insertRow}
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3410
     * must be called, which will insert the new row into both this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3411
     * and the database. Both of these methods must be called before the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3412
     * cursor moves to another row.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3413
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3414
     * @param columnName a <code>String</code> object that must match the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3415
     *        SQL name of a column in this rowset, ignoring case
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3416
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3417
     * @throws SQLException if (1) the given column name does not match the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3418
     *            name of a column in this rowset, (2) the cursor is not on
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3419
     *            one of this rowset's rows or its insert row, (3) the type
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3420
     *            of the designated column is not an SQL <code>TIME</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3421
     *            <code>TIMESTAMP</code>, or (4) this rowset is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3422
     *            <code>ResultSet.CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3423
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3424
    public void updateTime(String columnName, java.sql.Time x) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3425
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3426
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3427
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3428
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3429
     * Sets the designated column in either the current row or the insert
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3430
     * row of this <code>CachedRowSetImpl</code> object with the given
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3431
     * <code>Timestamp</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3432
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3433
     * This method updates a column value in either the current row or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3434
     * the insert row of this rowset, but it does not update the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3435
     * database.  If the cursor is on a row in the rowset, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3436
     * method {@link #updateRow} must be called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3437
     * If the cursor is on the insert row, the method {@link #insertRow}
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3438
     * must be called, which will insert the new row into both this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3439
     * and the database. Both of these methods must be called before the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3440
     * cursor moves to another row.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3441
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3442
     * @param columnName a <code>String</code> object that must match the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3443
     *        SQL name of a column in this rowset, ignoring case
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3444
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3445
     * @throws SQLException if the given column index is out of bounds or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3446
     *            the cursor is not on one of this rowset's rows or its
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3447
     *            insert row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3448
     * @throws SQLException if (1) the given column name does not match the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3449
     *            name of a column in this rowset, (2) the cursor is not on
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3450
     *            one of this rowset's rows or its insert row, (3) the type
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3451
     *            of the designated column is not an SQL <code>DATE</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3452
     *            <code>TIME</code>, or <code>TIMESTAMP</code>, or (4) this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3453
     *            rowset is <code>ResultSet.CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3454
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3455
    public void updateTimestamp(String columnName, java.sql.Timestamp x) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3456
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3457
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3458
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3459
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3460
     * Sets the designated column in either the current row or the insert
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3461
     * row of this <code>CachedRowSetImpl</code> object with the given
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3462
     * ASCII stream value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3463
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3464
     * This method updates a column value in either the current row or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3465
     * the insert row of this rowset, but it does not update the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3466
     * database.  If the cursor is on a row in the rowset, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3467
     * method {@link #updateRow} must be called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3468
     * If the cursor is on the insert row, the method {@link #insertRow}
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3469
     * must be called, which will insert the new row into both this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3470
     * and the database. Both of these methods must be called before the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3471
     * cursor moves to another row.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3472
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3473
     * @param columnName a <code>String</code> object that must match the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3474
     *        SQL name of a column in this rowset, ignoring case
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3475
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3476
     * @param length the number of one-byte ASCII characters in the stream
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3477
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3478
    public void updateAsciiStream(String columnName,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3479
    java.io.InputStream x,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3480
    int length) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3481
       throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3482
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3483
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3484
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3485
     * Sets the designated column in either the current row or the insert
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3486
     * row of this <code>CachedRowSetImpl</code> object with the given
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3487
     * <code>java.io.InputStream</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3488
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3489
     * This method updates a column value in either the current row or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3490
     * the insert row of this rowset, but it does not update the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3491
     * database.  If the cursor is on a row in the rowset, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3492
     * method {@link #updateRow} must be called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3493
     * If the cursor is on the insert row, the method {@link #insertRow}
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3494
     * must be called, which will insert the new row into both this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3495
     * and the database. Both of these methods must be called before the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3496
     * cursor moves to another row.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3497
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3498
     * @param columnName a <code>String</code> object that must match the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3499
     *        SQL name of a column in this rowset, ignoring case
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3500
     * @param x the new column value; must be a <code>java.io.InputStream</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3501
     *          containing <code>BINARY</code>, <code>VARBINARY</code>, or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3502
     *          <code>LONGVARBINARY</code> data
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3503
     * @param length the length of the stream in bytes
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3504
     * @throws SQLException if (1) the given column name does not match the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3505
     *            name of a column in this rowset, (2) the cursor is not on
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3506
     *            one of this rowset's rows or its insert row, (3) the data
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3507
     *            in the stream is not binary, or (4) this rowset is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3508
     *            <code>ResultSet.CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3509
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3510
    public void updateBinaryStream(String columnName, java.io.InputStream x, int length) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3511
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3512
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3513
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3514
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3515
     * Sets the designated column in either the current row or the insert
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3516
     * row of this <code>CachedRowSetImpl</code> object with the given
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3517
     * <code>java.io.Reader</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3518
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3519
     * This method updates a column value in either the current row or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3520
     * the insert row of this rowset, but it does not update the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3521
     * database.  If the cursor is on a row in the rowset, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3522
     * method {@link #updateRow} must be called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3523
     * If the cursor is on the insert row, the method {@link #insertRow}
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3524
     * must be called, which will insert the new row into both this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3525
     * and the database. Both of these methods must be called before the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3526
     * cursor moves to another row.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3527
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3528
     * @param columnName a <code>String</code> object that must match the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3529
     *        SQL name of a column in this rowset, ignoring case
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3530
     * @param reader the new column value; must be a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3531
     * <code>java.io.Reader</code> containing <code>BINARY</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3532
     * <code>VARBINARY</code>, <code>LONGVARBINARY</code>, <code>CHAR</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3533
     * <code>VARCHAR</code>, or <code>LONGVARCHAR</code> data
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3534
     * @param length the length of the stream in characters
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3535
     * @throws SQLException if (1) the given column name does not match the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3536
     *            name of a column in this rowset, (2) the cursor is not on
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3537
     *            one of this rowset's rows or its insert row, (3) the data
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3538
     *            in the stream is not a binary or character type, or (4) this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3539
     *            rowset is <code>ResultSet.CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3540
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3541
    public void updateCharacterStream(String columnName,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3542
    java.io.Reader reader,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3543
    int length) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3544
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3545
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3546
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3547
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3548
     * Sets the designated column in either the current row or the insert
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3549
     * row of this <code>CachedRowSetImpl</code> object with the given
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3550
     * <code>Object</code> value.  The <code>scale</code> parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3551
     * indicates the number of digits to the right of the decimal point
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3552
     * and is ignored if the new column value is not a type that will be
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3553
     *  mapped to an SQL <code>DECIMAL</code> or <code>NUMERIC</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3554
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3555
     * This method updates a column value in either the current row or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3556
     * the insert row of this rowset, but it does not update the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3557
     * database.  If the cursor is on a row in the rowset, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3558
     * method {@link #updateRow} must be called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3559
     * If the cursor is on the insert row, the method {@link #insertRow}
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3560
     * must be called, which will insert the new row into both this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3561
     * and the database. Both of these methods must be called before the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3562
     * cursor moves to another row.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3563
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3564
     * @param columnName a <code>String</code> object that must match the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3565
     *        SQL name of a column in this rowset, ignoring case
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3566
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3567
     * @param scale the number of digits to the right of the decimal point (for
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3568
     *              <code>DECIMAL</code> and <code>NUMERIC</code> types only)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3569
     * @throws SQLException if (1) the given column name does not match the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3570
     *            name of a column in this rowset, (2) the cursor is not on
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3571
     *            one of this rowset's rows or its insert row, or (3) this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3572
     *            rowset is <code>ResultSet.CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3573
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3574
    public void updateObject(String columnName, Object x, int scale) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3575
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3576
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3577
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3578
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3579
     * Sets the designated column in either the current row or the insert
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3580
     * row of this <code>CachedRowSetImpl</code> object with the given
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3581
     * <code>Object</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3582
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3583
     * This method updates a column value in either the current row or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3584
     * the insert row of this rowset, but it does not update the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3585
     * database.  If the cursor is on a row in the rowset, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3586
     * method {@link #updateRow} must be called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3587
     * If the cursor is on the insert row, the method {@link #insertRow}
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3588
     * must be called, which will insert the new row into both this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3589
     * and the database. Both of these methods must be called before the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3590
     * cursor moves to another row.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3591
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3592
     * @param columnName a <code>String</code> object that must match the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3593
     *        SQL name of a column in this rowset, ignoring case
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3594
     * @param x the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3595
     * @throws SQLException if (1) the given column name does not match the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3596
     *            name of a column in this rowset, (2) the cursor is not on
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3597
     *            one of this rowset's rows or its insert row, or (3) this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3598
     *            rowset is <code>ResultSet.CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3599
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3600
    public void updateObject(String columnName, Object x) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3601
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3602
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3603
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3604
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3605
     * Inserts the contents of this <code>CachedRowSetImpl</code> object's insert
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3606
     * row into this rowset immediately following the current row.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3607
     * If the current row is the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3608
     * position after the last row or before the first row, the new row will
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3609
     * be inserted at the end of the rowset.  This method also notifies
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3610
     * listeners registered with this rowset that the row has changed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3611
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3612
     * The cursor must be on the insert row when this method is called.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3613
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3614
     * @throws SQLException if (1) the cursor is not on the insert row,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3615
     *            (2) one or more of the non-nullable columns in the insert
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3616
     *            row has not been given a value, or (3) this rowset is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3617
     *            <code>ResultSet.CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3618
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3619
    public void insertRow() throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3620
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3621
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3622
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3623
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3624
     * Marks the current row of this <code>CachedRowSetImpl</code> object as
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3625
     * updated and notifies listeners registered with this rowset that the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3626
     * row has changed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3627
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3628
     * This method  cannot be called when the cursor is on the insert row, and
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3629
     * it should be called before the cursor moves to another row.  If it is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3630
     * called after the cursor moves to another row, this method has no effect,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3631
     * and the updates made before the cursor moved will be lost.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3632
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3633
     * @throws SQLException if the cursor is on the insert row or this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3634
     *            rowset is <code>ResultSet.CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3635
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3636
    public void updateRow() throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3637
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3638
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3639
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3640
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3641
     * Deletes the current row from this <code>CachedRowSetImpl</code> object and
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3642
     * notifies listeners registered with this rowset that a row has changed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3643
     * This method cannot be called when the cursor is on the insert row.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3644
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3645
     * This method marks the current row as deleted, but it does not delete
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3646
     * the row from the underlying data source.  The method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3647
     * <code>acceptChanges</code> must be called to delete the row in
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3648
     * the data source.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3649
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3650
     * @throws SQLException if (1) this method is called when the cursor
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3651
     *            is on the insert row, before the first row, or after the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3652
     *            last row or (2) this rowset is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3653
     *            <code>ResultSet.CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3654
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3655
    public void deleteRow() throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3656
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3657
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3658
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3659
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3660
     * Sets the current row with its original value and marks the row as
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3661
     * not updated, thus undoing any changes made to the row since the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3662
     * last call to the methods <code>updateRow</code> or <code>deleteRow</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3663
     * This method should be called only when the cursor is on a row in
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3664
     * this rowset.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3665
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3666
     * @throws SQLException if the cursor is on the insert row, before the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3667
     *            first row, or after the last row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3668
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3669
    public void refreshRow() throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3670
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3671
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3672
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3673
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3674
     * Rolls back any updates made to the current row of this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3675
     * <code>CachedRowSetImpl</code> object and notifies listeners that
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3676
     * a row has changed.  To have an effect, this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3677
     * must be called after an <code>updateXXX</code> method has been
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3678
     * called and before the method <code>updateRow</code> has been called.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3679
     * If no updates have been made or the method <code>updateRow</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3680
     * has already been called, this method has no effect.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3681
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3682
     * @throws SQLException if the cursor is on the insert row, before the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3683
     *            first row, or after the last row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3684
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3685
    public void cancelRowUpdates() throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3686
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3687
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3688
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3689
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3690
     * Moves the cursor for this <code>CachedRowSetImpl</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3691
     * to the insert row.  The current row in the rowset is remembered
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3692
     * while the cursor is on the insert row.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3693
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3694
     * The insert row is a special row associated with an updatable
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3695
     * rowset.  It is essentially a buffer where a new row may
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3696
     * be constructed by calling the appropriate <code>updateXXX</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3697
     * methods to assign a value to each column in the row.  A complete
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3698
     * row must be constructed; that is, every column that is not nullable
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3699
     * must be assigned a value.  In order for the new row to become part
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3700
     * of this rowset, the method <code>insertRow</code> must be called
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3701
     * before the cursor is moved back to the rowset.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3702
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3703
     * Only certain methods may be invoked while the cursor is on the insert
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3704
     * row; many methods throw an exception if they are called while the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3705
     * cursor is there.  In addition to the <code>updateXXX</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3706
     * and <code>insertRow</code> methods, only the <code>getXXX</code> methods
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3707
     * may be called when the cursor is on the insert row.  A <code>getXXX</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3708
     * method should be called on a column only after an <code>updateXXX</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3709
     * method has been called on that column; otherwise, the value returned is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3710
     * undetermined.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3711
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3712
     * @throws SQLException if this <code>CachedRowSetImpl</code> object is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3713
     *            <code>ResultSet.CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3714
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3715
    public void moveToInsertRow() throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3716
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3717
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3718
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3719
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3720
     * Moves the cursor for this <code>CachedRowSetImpl</code> object to
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3721
     * the current row.  The current row is the row the cursor was on
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3722
     * when the method <code>moveToInsertRow</code> was called.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3723
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3724
     * Calling this method has no effect unless it is called while the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3725
     * cursor is on the insert row.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3726
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3727
     * @throws SQLException if an error occurs
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3728
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3729
    public void moveToCurrentRow() throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3730
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3731
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3732
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3733
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3734
     * Returns <code>null</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3735
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3736
     * @return <code>null</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3737
     * @throws SQLException if an error occurs
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3738
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3739
    public Statement getStatement() throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3740
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3741
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3742
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3743
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3744
     * Retrieves the value of the designated column in this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3745
     * <code>CachedRowSetImpl</code> object as an <code>Object</code> in
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3746
     * the Java programming language, using the given
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3747
     * <code>java.util.Map</code> object to custom map the value if
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3748
     * appropriate.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3749
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3750
     * @param columnIndex the first column is <code>1</code>, the second
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3751
     *        is <code>2</code>, and so on; must be <code>1</code> or larger
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3752
     *        and equal to or less than the number of columns in this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3753
     * @param map a <code>java.util.Map</code> object showing the mapping
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3754
     *            from SQL type names to classes in the Java programming
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3755
     *            language
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3756
     * @return an <code>Object</code> representing the SQL value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3757
     * @throws SQLException if the given column index is out of bounds or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3758
     *            the cursor is not on one of this rowset's rows or its
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3759
     *            insert row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3760
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3761
    public Object getObject(int columnIndex,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3762
                            java.util.Map<String,Class<?>> map)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3763
          throws SQLException
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3764
    {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3765
       throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3766
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3767
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3768
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3769
     * Retrieves the value of the designated column in this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3770
     * <code>CachedRowSetImpl</code> object as a <code>Ref</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3771
     * in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3772
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3773
     * @param columnIndex the first column is <code>1</code>, the second
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3774
     *        is <code>2</code>, and so on; must be <code>1</code> or larger
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3775
     *        and equal to or less than the number of columns in this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3776
     * @return a <code>Ref</code> object representing an SQL<code> REF</code> value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3777
     * @throws SQLException if (1) the given column index is out of bounds,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3778
     *            (2) the cursor is not on one of this rowset's rows or its
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3779
     *            insert row, or (3) the designated column does not store an
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3780
     *            SQL <code>REF</code> value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3781
     * @see #getRef(String)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3782
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3783
    public Ref getRef(int columnIndex) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3784
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3785
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3786
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3787
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3788
     * Retrieves the value of the designated column in this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3789
     * <code>CachedRowSetImpl</code> object as a <code>Blob</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3790
     * in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3791
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3792
     * @param columnIndex the first column is <code>1</code>, the second
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3793
     *        is <code>2</code>, and so on; must be <code>1</code> or larger
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3794
     *        and equal to or less than the number of columns in this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3795
     * @return a <code>Blob</code> object representing an SQL <code>BLOB</code> value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3796
     * @throws SQLException if (1) the given column index is out of bounds,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3797
     *            (2) the cursor is not on one of this rowset's rows or its
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3798
     *            insert row, or (3) the designated column does not store an
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3799
     *            SQL <code>BLOB</code> value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3800
     * @see #getBlob(String)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3801
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3802
    public Blob getBlob(int columnIndex) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3803
       throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3804
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3805
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3806
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3807
     * Retrieves the value of the designated column in this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3808
     * <code>CachedRowSetImpl</code> object as a <code>Clob</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3809
     * in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3810
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3811
     * @param columnIndex the first column is <code>1</code>, the second
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3812
     *        is <code>2</code>, and so on; must be <code>1</code> or larger
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3813
     *        and equal to or less than the number of columns in this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3814
     * @return a <code>Clob</code> object representing an SQL <code>CLOB</code> value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3815
     * @throws SQLException if (1) the given column index is out of bounds,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3816
     *            (2) the cursor is not on one of this rowset's rows or its
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3817
     *            insert row, or (3) the designated column does not store an
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3818
     *            SQL <code>CLOB</code> value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3819
     * @see #getClob(String)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3820
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3821
    public Clob getClob(int columnIndex) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3822
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3823
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3824
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3825
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3826
     * Retrieves the value of the designated column in this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3827
     * <code>CachedRowSetImpl</code> object as an <code>Array</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3828
     * in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3829
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3830
     * @param columnIndex the first column is <code>1</code>, the second
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3831
     *        is <code>2</code>, and so on; must be <code>1</code> or larger
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3832
     *        and equal to or less than the number of columns in this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3833
     * @return an <code>Array</code> object representing an SQL
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3834
     *         <code>ARRAY</code> value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3835
     * @throws SQLException if (1) the given column index is out of bounds,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3836
     *            (2) the cursor is not on one of this rowset's rows or its
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3837
     *            insert row, or (3) the designated column does not store an
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3838
     *            SQL <code>ARRAY</code> value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3839
     * @see #getArray(String)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3840
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3841
    public Array getArray(int columnIndex) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3842
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3843
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3844
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3845
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3846
     * Retrieves the value of the designated column in this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3847
     * <code>CachedRowSetImpl</code> object as an <code>Object</code> in
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3848
     * the Java programming language, using the given
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3849
     * <code>java.util.Map</code> object to custom map the value if
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3850
     * appropriate.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3851
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3852
     * @param columnName a <code>String</code> object that must match the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3853
     *        SQL name of a column in this rowset, ignoring case
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3854
     * @param map a <code>java.util.Map</code> object showing the mapping
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3855
     *        from SQL type names to classes in the Java programming
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3856
     *        language
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3857
     * @return an <code>Object</code> representing the SQL value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3858
     * @throws SQLException if the given column name is not the name of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3859
     *         a column in this rowset or the cursor is not on one of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3860
     *         this rowset's rows or its insert row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3861
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3862
    public Object getObject(String columnName,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3863
                            java.util.Map<String,Class<?>> map)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3864
    throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3865
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3866
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3867
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3868
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3869
     * Retrieves the value of the designated column in this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3870
     * <code>CachedRowSetImpl</code> object as a <code>Ref</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3871
     * in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3872
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3873
     * @param colName a <code>String</code> object that must match the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3874
     *        SQL name of a column in this rowset, ignoring case
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3875
     * @return a <code>Ref</code> object representing an SQL<code> REF</code> value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3876
     * @throws SQLException  if (1) the given column name is not the name of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3877
     *            a column in this rowset, (2) the cursor is not on one of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3878
     *            this rowset's rows or its insert row, or (3) the column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3879
     *            is not an SQL <code>REF</code> value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3880
     * @see #getRef(int)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3881
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3882
    public Ref getRef(String colName) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3883
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3884
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3885
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3886
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3887
     * Retrieves the value of the designated column in this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3888
     * <code>CachedRowSetImpl</code> object as a <code>Blob</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3889
     * in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3890
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3891
     * @param colName a <code>String</code> object that must match the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3892
     *        SQL name of a column in this rowset, ignoring case
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3893
     * @return a <code>Blob</code> object representing an SQL <code>BLOB</code> value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3894
     * @throws SQLException if (1) the given column name is not the name of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3895
     *            a column in this rowset, (2) the cursor is not on one of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3896
     *            this rowset's rows or its insert row, or (3) the designated
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3897
     *            column does not store an SQL <code>BLOB</code> value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3898
     * @see #getBlob(int)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3899
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3900
    public Blob getBlob(String colName) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3901
       throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3902
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3903
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3904
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3905
     * Retrieves the value of the designated column in this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3906
     * <code>CachedRowSetImpl</code> object as a <code>Clob</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3907
     * in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3908
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3909
     * @param colName a <code>String</code> object that must match the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3910
     *        SQL name of a column in this rowset, ignoring case
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3911
     * @return a <code>Clob</code> object representing an SQL
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3912
     *         <code>CLOB</code> value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3913
     * @throws SQLException if (1) the given column name is not the name of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3914
     *            a column in this rowset, (2) the cursor is not on one of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3915
     *            this rowset's rows or its insert row, or (3) the designated
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3916
     *            column does not store an SQL <code>CLOB</code> value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3917
     * @see #getClob(int)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3918
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3919
    public Clob getClob(String colName) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3920
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3921
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3922
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3923
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3924
     * Retrieves the value of the designated column in this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3925
     * <code>CachedRowSetImpl</code> object as an <code>Array</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3926
     * in the Java programming langugage.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3927
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3928
     * @param colName a <code>String</code> object that must match the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3929
     *        SQL name of a column in this rowset, ignoring case
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3930
     * @return an <code>Array</code> object representing an SQL
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3931
     *         <code>ARRAY</code> value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3932
     * @throws SQLException if (1) the given column name is not the name of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3933
     *            a column in this rowset, (2) the cursor is not on one of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3934
     *            this rowset's rows or its insert row, or (3) the designated
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3935
     *            column does not store an SQL <code>ARRAY</code> value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3936
     * @see #getArray(int)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3937
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3938
    public Array getArray(String colName) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3939
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3940
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3941
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3942
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3943
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3944
     * of this <code>CachedRowSetImpl</code> object as a <code>java.sql.Date</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3945
     * object, using the given <code>Calendar</code> object to construct an
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3946
     * appropriate millisecond value for the date.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3947
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3948
     * @param columnIndex the first column is <code>1</code>, the second
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3949
     *        is <code>2</code>, and so on; must be <code>1</code> or larger
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3950
     *        and equal to or less than the number of columns in the rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3951
     * @param cal the <code>java.util.Calendar</code> object to use in
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3952
     *            constructing the date
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3953
     * @return the column value; if the value is SQL <code>NULL</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3954
     *         the result is <code>null</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3955
     * @throws SQLException if (1) the given column name is not the name of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3956
     *            a column in this rowset, (2) the cursor is not on one of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3957
     *            this rowset's rows or its insert row, or (3) the designated
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3958
     *            column does not store an SQL <code>DATE</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3959
     *            <code>TIMESTAMP</code> value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3960
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3961
    public java.sql.Date getDate(int columnIndex, Calendar cal) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3962
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3963
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3964
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3965
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3966
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3967
     * of this <code>CachedRowSetImpl</code> object as a <code>java.sql.Date</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3968
     * object, using the given <code>Calendar</code> object to construct an
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3969
     * appropriate millisecond value for the date.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3970
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3971
     * @param columnName a <code>String</code> object that must match the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3972
     *        SQL name of a column in this rowset, ignoring case
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3973
     * @param cal the <code>java.util.Calendar</code> object to use in
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3974
     *            constructing the date
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3975
     * @return the column value; if the value is SQL <code>NULL</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3976
     *         the result is <code>null</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3977
     * @throws SQLException if (1) the given column name is not the name of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3978
     *            a column in this rowset, (2) the cursor is not on one of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3979
     *            this rowset's rows or its insert row, or (3) the designated
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3980
     *            column does not store an SQL <code>DATE</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3981
     *            <code>TIMESTAMP</code> value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3982
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3983
    public java.sql.Date getDate(String columnName, Calendar cal) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3984
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3985
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3986
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3987
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3988
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3989
     * of this <code>CachedRowSetImpl</code> object as a <code>java.sql.Time</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3990
     * object, using the given <code>Calendar</code> object to construct an
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3991
     * appropriate millisecond value for the date.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3992
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3993
     * @param columnIndex the first column is <code>1</code>, the second
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3994
     *        is <code>2</code>, and so on; must be <code>1</code> or larger
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3995
     *        and equal to or less than the number of columns in the rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3996
     * @param cal the <code>java.util.Calendar</code> object to use in
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3997
     *            constructing the date
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3998
     * @return the column value; if the value is SQL <code>NULL</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3999
     *         the result is <code>null</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4000
     * @throws SQLException if (1) the given column name is not the name of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4001
     *            a column in this rowset, (2) the cursor is not on one of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4002
     *            this rowset's rows or its insert row, or (3) the designated
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4003
     *            column does not store an SQL <code>TIME</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4004
     *            <code>TIMESTAMP</code> value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4005
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4006
    public java.sql.Time getTime(int columnIndex, Calendar cal) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4007
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4008
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4009
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4010
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4011
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4012
     * of this <code>CachedRowSetImpl</code> object as a <code>java.sql.Time</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4013
     * object, using the given <code>Calendar</code> object to construct an
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4014
     * appropriate millisecond value for the date.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4015
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4016
     * @param columnName a <code>String</code> object that must match the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4017
     *        SQL name of a column in this rowset, ignoring case
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4018
     * @param cal the <code>java.util.Calendar</code> object to use in
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4019
     *            constructing the date
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4020
     * @return the column value; if the value is SQL <code>NULL</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4021
     *         the result is <code>null</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4022
     * @throws SQLException if (1) the given column name is not the name of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4023
     *            a column in this rowset, (2) the cursor is not on one of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4024
     *            this rowset's rows or its insert row, or (3) the designated
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4025
     *            column does not store an SQL <code>TIME</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4026
     *            <code>TIMESTAMP</code> value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4027
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4028
    public java.sql.Time getTime(String columnName, Calendar cal) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4029
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4030
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4031
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4032
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4033
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4034
     * of this <code>CachedRowSetImpl</code> object as a <code>java.sql.Timestamp</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4035
     * object, using the given <code>Calendar</code> object to construct an
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4036
     * appropriate millisecond value for the date.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4037
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4038
     * @param columnIndex the first column is <code>1</code>, the second
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4039
     *        is <code>2</code>, and so on; must be <code>1</code> or larger
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4040
     *        and equal to or less than the number of columns in the rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4041
     * @param cal the <code>java.util.Calendar</code> object to use in
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4042
     *            constructing the date
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4043
     * @return the column value; if the value is SQL <code>NULL</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4044
     *         the result is <code>null</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4045
     * @throws SQLException if (1) the given column name is not the name of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4046
     *            a column in this rowset, (2) the cursor is not on one of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4047
     *            this rowset's rows or its insert row, or (3) the designated
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4048
     *            column does not store an SQL <code>TIME</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4049
     *            <code>TIMESTAMP</code> value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4050
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4051
    public java.sql.Timestamp getTimestamp(int columnIndex, Calendar cal) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4052
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4053
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4054
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4055
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4056
     * Retrieves the value of the designated column in the current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4057
     * of this <code>CachedRowSetImpl</code> object as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4058
     * <code>java.sql.Timestamp</code> object, using the given
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4059
     * <code>Calendar</code> object to construct an appropriate
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4060
     * millisecond value for the date.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4061
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4062
     * @param columnName a <code>String</code> object that must match the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4063
     *        SQL name of a column in this rowset, ignoring case
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4064
     * @param cal the <code>java.util.Calendar</code> object to use in
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4065
     *            constructing the date
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4066
     * @return the column value; if the value is SQL <code>NULL</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4067
     *         the result is <code>null</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4068
     * @throws SQLException if (1) the given column name is not the name of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4069
     *            a column in this rowset, (2) the cursor is not on one of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4070
     *            this rowset's rows or its insert row, or (3) the designated
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4071
     *            column does not store an SQL <code>DATE</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4072
     *            <code>TIME</code>, or <code>TIMESTAMP</code> value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4073
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4074
    public java.sql.Timestamp getTimestamp(String columnName, Calendar cal) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4075
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4076
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4077
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4078
    /*
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4079
     * RowSetInternal Interface
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4080
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4081
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4082
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4083
     * Retrieves the <code>Connection</code> object passed to this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4084
     * <code>CachedRowSetImpl</code> object.  This connection may be
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4085
     * used to populate this rowset with data or to write data back
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4086
     * to its underlying data source.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4087
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4088
     * @return the <code>Connection</code> object passed to this rowset;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4089
     *         may be <code>null</code> if there is no connection
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4090
     * @throws SQLException if an error occurs
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4091
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4092
    public Connection getConnection() throws SQLException{
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4093
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4094
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4095
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4096
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4097
     * Sets the metadata for this <code>CachedRowSetImpl</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4098
     * with the given <code>RowSetMetaData</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4099
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4100
     * @param md a <code>RowSetMetaData</code> object instance containing
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4101
     *            metadata about the columsn in the rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4102
     * @throws SQLException if invalid meta data is supplied to the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4103
     *            rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4104
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4105
    public void setMetaData(RowSetMetaData md) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4106
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4107
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4108
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4109
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4110
     * Returns a result set containing the original value of the rowset. The
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4111
     * original value is the state of the <code>CachedRowSetImpl</code> after the
21278
ef8a3a2a72f2 8022746: List of spelling errors in API doc
malenkov
parents: 14342
diff changeset
  4112
     * last population or synchronization (whichever occurred most recently) with
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4113
     * the data source.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4114
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4115
     * The cursor is positioned before the first row in the result set.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4116
     * Only rows contained in the result set returned by <code>getOriginal()</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4117
     * are said to have an original value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4118
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4119
     * @return the original result set of the rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4120
     * @throws SQLException if an error occurs produce the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4121
     *           <code>ResultSet</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4122
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4123
    public ResultSet getOriginal() throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4124
       throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4125
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4126
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4127
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4128
     * Returns a result set containing the original value of the current
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4129
     * row only.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4130
     * The original value is the state of the <code>CachedRowSetImpl</code> after
21278
ef8a3a2a72f2 8022746: List of spelling errors in API doc
malenkov
parents: 14342
diff changeset
  4131
     * the last population or synchronization (whichever occurred most recently)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4132
     * with the data source.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4133
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4134
     * @return the original result set of the row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4135
     * @throws SQLException if there is no current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4136
     * @see #setOriginalRow
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4137
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4138
    public ResultSet getOriginalRow() throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4139
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4140
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4141
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4142
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4143
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4144
     * Marks the current row in this rowset as being an original row.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4145
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4146
     * @throws SQLException if there is no current row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4147
     * @see #getOriginalRow
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4148
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4149
    public void setOriginalRow() throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4150
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4151
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4152
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4153
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4154
     * Marks all rows in this rowset as being original rows. Any updates
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4155
     * made to the rows become the original values for the rowset.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4156
     * Calls to the method <code>setOriginal</code> connot be reversed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4157
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4158
     * @throws SQLException if an error occurs
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4159
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4160
    public void setOriginal() throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4161
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4162
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4163
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4164
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4165
     * Returns an identifier for the object (table) that was used to create this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4166
     * rowset.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4167
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4168
     * @return a <code>String</code> object that identifies the table from
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4169
     *         which this <code>CachedRowSetImpl</code> object was derived
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4170
     * @throws SQLException if an error occurs
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4171
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4172
    public String getTableName() throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4173
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4174
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4175
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4176
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4177
     * Sets the identifier for the table from which this rowset was derived
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4178
     * to the given table name.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4179
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4180
     * @param tabName a <code>String</code> object that identifies the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4181
     *          table from which this <code>CachedRowSetImpl</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4182
     *          was derived
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4183
     * @throws SQLException if an error occurs
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4184
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4185
    public void setTableName(String tabName) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4186
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4187
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4188
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4189
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4190
     * Returns the columns that make a key to uniquely identify a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4191
     * row in this <code>CachedRowSetImpl</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4192
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4193
     * @return an array of column numbers that constitutes a primary
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4194
     *           key for this rowset. This array should be empty
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4195
     *           if no column is representitive of a primary key
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4196
     * @throws SQLException if the rowset is empty or no columns
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4197
     *           are designated as primary keys
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4198
     * @see #setKeyColumns
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4199
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4200
    public int[] getKeyColumns() throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4201
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4202
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4203
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4204
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4205
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4206
     * Sets this <code>CachedRowSetImpl</code> object's
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4207
     * <code>keyCols</code> field with the given array of column
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4208
     * numbers, which forms a key for uniquely identifying a row
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4209
     * in this rowset.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4210
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4211
     * @param keys an array of <code>int</code> indicating the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4212
     *        columns that form a primary key for this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4213
     *        <code>CachedRowSetImpl</code> object; every
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4214
     *        element in the array must be greater than
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4215
     *        <code>0</code> and less than or equal to the number
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4216
     *        of columns in this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4217
     * @throws SQLException if any of the numbers in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4218
     *            given array is not valid for this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4219
     * @see #getKeyColumns
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4220
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4221
    public void setKeyColumns(int [] keys) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4222
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4223
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4224
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4225
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4226
     * Sets the designated column in either the current row or the insert
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4227
     * row of this <code>CachedRowSetImpl</code> object with the given
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4228
     * <code>double</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4229
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4230
     * This method updates a column value in either the current row or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4231
     * the insert row of this rowset, but it does not update the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4232
     * database.  If the cursor is on a row in the rowset, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4233
     * method {@link #updateRow} must be called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4234
     * If the cursor is on the insert row, the method {@link #insertRow}
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4235
     * must be called, which will insert the new row into both this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4236
     * and the database. Both of these methods must be called before the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4237
     * cursor moves to another row.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4238
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4239
     * @param columnIndex the first column is <code>1</code>, the second
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4240
     *        is <code>2</code>, and so on; must be <code>1</code> or larger
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4241
     *        and equal to or less than the number of columns in this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4242
     * @param ref the new column <code>java.sql.Ref</code> value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4243
     * @throws SQLException if (1) the given column index is out of bounds,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4244
     *        (2) the cursor is not on one of this rowset's rows or its
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4245
     *        insert row, or (3) this rowset is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4246
     *        <code>ResultSet.CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4247
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4248
    public void updateRef(int columnIndex, java.sql.Ref ref) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4249
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4250
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4251
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4252
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4253
     * Sets the designated column in either the current row or the insert
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4254
     * row of this <code>CachedRowSetImpl</code> object with the given
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4255
     * <code>double</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4256
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4257
     * This method updates a column value in either the current row or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4258
     * the insert row of this rowset, but it does not update the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4259
     * database.  If the cursor is on a row in the rowset, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4260
     * method {@link #updateRow} must be called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4261
     * If the cursor is on the insert row, the method {@link #insertRow}
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4262
     * must be called, which will insert the new row into both this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4263
     * and the database. Both of these methods must be called before the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4264
     * cursor moves to another row.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4265
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4266
     * @param columnName a <code>String</code> object that must match the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4267
     *        SQL name of a column in this rowset, ignoring case
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4268
     * @param ref the new column <code>java.sql.Ref</code> value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4269
     * @throws SQLException if (1) the given column name does not match the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4270
     *        name of a column in this rowset, (2) the cursor is not on
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4271
     *        one of this rowset's rows or its insert row, or (3) this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4272
     *        rowset is <code>ResultSet.CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4273
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4274
    public void updateRef(String columnName, java.sql.Ref ref) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4275
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4276
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4277
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4278
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4279
     * Sets the designated column in either the current row or the insert
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4280
     * row of this <code>CachedRowSetImpl</code> object with the given
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4281
     * <code>double</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4282
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4283
     * This method updates a column value in either the current row or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4284
     * the insert row of this rowset, but it does not update the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4285
     * database.  If the cursor is on a row in the rowset, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4286
     * method {@link #updateRow} must be called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4287
     * If the cursor is on the insert row, the method {@link #insertRow}
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4288
     * must be called, which will insert the new row into both this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4289
     * and the database. Both of these methods must be called before the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4290
     * cursor moves to another row.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4291
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4292
     * @param columnIndex the first column is <code>1</code>, the second
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4293
     *        is <code>2</code>, and so on; must be <code>1</code> or larger
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4294
     *        and equal to or less than the number of columns in this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4295
     * @param c the new column <code>Clob value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4296
     * @throws SQLException if (1) the given column index is out of bounds,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4297
     *        (2) the cursor is not on one of this rowset's rows or its
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4298
     *        insert row, or (3) this rowset is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4299
     *        <code>ResultSet.CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4300
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4301
    public void updateClob(int columnIndex, Clob c) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4302
       throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4303
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4304
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4305
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4306
     * Sets the designated column in either the current row or the insert
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4307
     * row of this <code>CachedRowSetImpl</code> object with the given
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4308
     * <code>double</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4309
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4310
     * This method updates a column value in either the current row or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4311
     * the insert row of this rowset, but it does not update the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4312
     * database.  If the cursor is on a row in the rowset, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4313
     * method {@link #updateRow} must be called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4314
     * If the cursor is on the insert row, the method {@link #insertRow}
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4315
     * must be called, which will insert the new row into both this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4316
     * and the database. Both of these methods must be called before the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4317
     * cursor moves to another row.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4318
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4319
     * @param columnName a <code>String</code> object that must match the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4320
     *        SQL name of a column in this rowset, ignoring case
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4321
     * @param c the new column <code>Clob</code>value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4322
     * @throws SQLException if (1) the given column name does not match the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4323
     *            name of a column in this rowset, (2) the cursor is not on
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4324
     *            one of this rowset's rows or its insert row, or (3) this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4325
     *            rowset is <code>ResultSet.CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4326
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4327
    public void updateClob(String columnName, Clob c) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4328
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4329
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4330
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4331
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4332
     * Sets the designated column in either the current row or the insert
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4333
     * row of this <code>CachedRowSetImpl</code> object with the given
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4334
     * <code>java.sql.Blob</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4335
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4336
     * This method updates a column value in either the current row or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4337
     * the insert row of this rowset, but it does not update the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4338
     * database.  If the cursor is on a row in the rowset, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4339
     * method {@link #updateRow} must be called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4340
     * If the cursor is on the insert row, the method {@link #insertRow}
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4341
     * must be called, which will insert the new row into both this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4342
     * and the database. Both of these methods must be called before the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4343
     * cursor moves to another row.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4344
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4345
     * @param columnIndex the first column is <code>1</code>, the second
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4346
     *        is <code>2</code>, and so on; must be <code>1</code> or larger
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4347
     *        and equal to or less than the number of columns in this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4348
     * @param b the new column <code>Blob</code> value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4349
     * @throws SQLException if (1) the given column index is out of bounds,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4350
     *            (2) the cursor is not on one of this rowset's rows or its
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4351
     *            insert row, or (3) this rowset is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4352
     *            <code>ResultSet.CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4353
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4354
    public void updateBlob(int columnIndex, Blob b) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4355
       throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4356
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4357
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4358
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4359
     * Sets the designated column in either the current row or the insert
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4360
     * row of this <code>CachedRowSetImpl</code> object with the given
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4361
     * <code>java.sql.Blob </code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4362
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4363
     * This method updates a column value in either the current row or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4364
     * the insert row of this rowset, but it does not update the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4365
     * database.  If the cursor is on a row in the rowset, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4366
     * method {@link #updateRow} must be called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4367
     * If the cursor is on the insert row, the method {@link #insertRow}
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4368
     * must be called, which will insert the new row into both this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4369
     * and the database. Both of these methods must be called before the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4370
     * cursor moves to another row.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4371
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4372
     * @param columnName a <code>String</code> object that must match the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4373
     *        SQL name of a column in this rowset, ignoring case
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4374
     * @param b the new column <code>Blob</code> value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4375
     * @throws SQLException if (1) the given column name does not match the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4376
     *            name of a column in this rowset, (2) the cursor is not on
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4377
     *            one of this rowset's rows or its insert row, or (3) this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4378
     *            rowset is <code>ResultSet.CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4379
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4380
    public void updateBlob(String columnName, Blob b) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4381
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4382
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4383
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4384
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4385
     * Sets the designated column in either the current row or the insert
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4386
     * row of this <code>CachedRowSetImpl</code> object with the given
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4387
     * <code>java.sql.Array</code> values.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4388
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4389
     * This method updates a column value in either the current row or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4390
     * the insert row of this rowset, but it does not update the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4391
     * database.  If the cursor is on a row in the rowset, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4392
     * method {@link #updateRow} must be called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4393
     * If the cursor is on the insert row, the method {@link #insertRow}
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4394
     * must be called, which will insert the new row into both this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4395
     * and the database. Both of these methods must be called before the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4396
     * cursor moves to another row.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4397
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4398
     * @param columnIndex the first column is <code>1</code>, the second
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4399
     *        is <code>2</code>, and so on; must be <code>1</code> or larger
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4400
     *        and equal to or less than the number of columns in this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4401
     * @param a the new column <code>Array</code> value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4402
     * @throws SQLException if (1) the given column index is out of bounds,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4403
     *            (2) the cursor is not on one of this rowset's rows or its
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4404
     *            insert row, or (3) this rowset is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4405
     *            <code>ResultSet.CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4406
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4407
    public void updateArray(int columnIndex, Array a) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4408
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4409
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4410
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4411
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4412
     * Sets the designated column in either the current row or the insert
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4413
     * row of this <code>CachedRowSetImpl</code> object with the given
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4414
     * <code>java.sql.Array</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4415
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4416
     * This method updates a column value in either the current row or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4417
     * the insert row of this rowset, but it does not update the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4418
     * database.  If the cursor is on a row in the rowset, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4419
     * method {@link #updateRow} must be called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4420
     * If the cursor is on the insert row, the method {@link #insertRow}
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4421
     * must be called, which will insert the new row into both this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4422
     * and the database. Both of these methods must be called before the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4423
     * cursor moves to another row.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4424
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4425
     * @param columnName a <code>String</code> object that must match the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4426
     *        SQL name of a column in this rowset, ignoring case
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4427
     * @param a the new column <code>Array</code> value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4428
     * @throws SQLException if (1) the given column name does not match the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4429
     *            name of a column in this rowset, (2) the cursor is not on
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4430
     *            one of this rowset's rows or its insert row, or (3) this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4431
     *            rowset is <code>ResultSet.CONCUR_READ_ONLY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4432
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4433
    public void updateArray(String columnName, Array a) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4434
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4435
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4436
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4437
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4438
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4439
     * Retrieves the value of the designated column in this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4440
     * <code>CachedRowSetImpl</code> object as a <code>java.net.URL</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4441
     * in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4442
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4443
     * @return a java.net.URL object containing the resource reference described by
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4444
     * the URL
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4445
     * @throws SQLException if (1) the given column index is out of bounds,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4446
     * (2) the cursor is not on one of this rowset's rows or its
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4447
     * insert row, or (3) the designated column does not store an
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4448
     * SQL <code>DATALINK</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4449
     * @see #getURL(String)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4450
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4451
    public java.net.URL getURL(int columnIndex) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4452
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4453
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4454
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4455
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4456
     * Retrieves the value of the designated column in this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4457
     * <code>CachedRowSetImpl</code> object as a <code>java.net.URL</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4458
     * in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4459
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4460
     * @return a java.net.URL object containing the resource reference described by
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4461
     * the URL
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4462
     * @throws SQLException if (1) the given column name not the name of a column
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4463
     * in this rowset, or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4464
     * (2) the cursor is not on one of this rowset's rows or its
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4465
     * insert row, or (3) the designated column does not store an
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4466
     * SQL <code>DATALINK</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4467
     * @see #getURL(int)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4468
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4469
    public java.net.URL getURL(String columnName) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4470
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4471
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4472
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4473
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4474
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4475
     * The first warning reported by calls on this <code>CachedRowSetImpl</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4476
     * object is returned. Subsequent <code>CachedRowSetImpl</code> warnings will
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4477
     * be chained to this <code>SQLWarning</code>. All <code>RowSetWarnings</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4478
     * warnings are generated in the disconnected environment and remain a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4479
     * seperate warning chain to that provided by the <code>getWarnings</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4480
     * method.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4481
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4482
     * <P>The warning chain is automatically cleared each time a new
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4483
     * row is read.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4484
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4485
     * <P><B>Note:</B> This warning chain only covers warnings caused
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4486
     * by <code>CachedRowSet</code> (and their child interface)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4487
     * methods. All <code>SQLWarnings</code> can be obtained using the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4488
     * <code>getWarnings</code> method which tracks warnings generated
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4489
     * by the underlying JDBC driver.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4490
     * @return the first SQLWarning or null
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4491
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4492
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4493
    public RowSetWarning getRowSetWarnings() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4494
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4495
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4496
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4497
     /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4498
     * Commits all changes performed by the <code>acceptChanges()</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4499
     * methods
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4500
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4501
     * @see java.sql.Connection#commit
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4502
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4503
    public void commit() throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4504
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4505
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4506
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4507
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4508
     * Rolls back all changes performed by the <code>acceptChanges()</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4509
     * methods
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4510
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4511
     * @see java.sql.Connection#rollback
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4512
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4513
    public void rollback() throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4514
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4515
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4516
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4517
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4518
     * Rolls back all changes performed by the <code>acceptChanges()</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4519
     * to the last <code>Savepoint</code> transaction marker.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4520
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4521
     * @see java.sql.Connection#rollback(Savepoint)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4522
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4523
    public void rollback(Savepoint s) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4524
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4525
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4526
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4527
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4528
     * Unsets the designated parameter to the given int array.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4529
     * This was set using <code>setMatchColumn</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4530
     * as the column which will form the basis of the join.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4531
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4532
     * The parameter value unset by this method should be same
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4533
     * as was set.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4534
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4535
     * @param columnIdxes the index into this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4536
     *        object's internal representation of parameter values
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4537
     * @throws SQLException if an error occurs or the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4538
     *  parameter index is out of bounds or if the columnIdx is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4539
     *  not the same as set using <code>setMatchColumn(int [])</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4540
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4541
    public void unsetMatchColumn(int[] columnIdxes) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4542
         throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4543
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4544
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4545
   /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4546
     * Unsets the designated parameter to the given String array.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4547
     * This was set using <code>setMatchColumn</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4548
     * as the column which will form the basis of the join.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4549
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4550
     * The parameter value unset by this method should be same
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4551
     * as was set.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4552
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4553
     * @param columnIdxes the index into this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4554
     *        object's internal representation of parameter values
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4555
     * @throws SQLException if an error occurs or the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4556
     *  parameter index is out of bounds or if the columnName is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4557
     *  not the same as set using <code>setMatchColumn(String [])</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4558
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4559
    public void unsetMatchColumn(String[] columnIdxes) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4560
       throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4561
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4562
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4563
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4564
     * Retrieves the column name as <code>String</code> array
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4565
     * that was set using <code>setMatchColumn(String [])</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4566
     * for this rowset.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4567
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4568
     * @return a <code>String</code> array object that contains the column names
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4569
     *         for the rowset which has this the match columns
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4570
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4571
     * @throws SQLException if an error occurs or column name is not set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4572
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4573
    public String[] getMatchColumnNames() throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4574
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4575
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4576
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4577
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4578
     * Retrieves the column id as <code>int</code> array that was set using
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4579
     * <code>setMatchColumn(int [])</code> for this rowset.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4580
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4581
     * @return a <code>int</code> array object that contains the column ids
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4582
     *         for the rowset which has this as the match columns.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4583
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4584
     * @throws SQLException if an error occurs or column index is not set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4585
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4586
    public int[] getMatchColumnIndexes() throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4587
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4588
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4589
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4590
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4591
     * Sets the designated parameter to the given int array.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4592
     * This forms the basis of the join for the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4593
     * <code>JoinRowSet</code> as the column which will form the basis of the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4594
     * join.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4595
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4596
     * The parameter value set by this method is stored internally and
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4597
     * will be supplied as the appropriate parameter in this rowset's
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4598
     * command when the method <code>getMatchColumnIndexes</code> is called.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4599
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4600
     * @param columnIdxes the indexes into this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4601
     *        object's internal representation of parameter values; the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4602
     *        first parameter is 0, the second is 1, and so on; must be
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4603
     *        <code>0</code> or greater
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4604
     * @throws SQLException if an error occurs or the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4605
     *                         parameter index is out of bounds
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4606
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4607
    public void setMatchColumn(int[] columnIdxes) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4608
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4609
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4610
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4611
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4612
     * Sets the designated parameter to the given String array.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4613
     *  This forms the basis of the join for the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4614
     * <code>JoinRowSet</code> as the column which will form the basis of the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4615
     * join.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4616
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4617
     * The parameter value set by this method is stored internally and
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4618
     * will be supplied as the appropriate parameter in this rowset's
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4619
     * command when the method <code>getMatchColumn</code> is called.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4620
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4621
     * @param columnNames the name of the column into this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4622
     *        object's internal representation of parameter values
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4623
     * @throws SQLException if an error occurs or the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4624
     *  parameter index is out of bounds
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4625
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4626
    public void setMatchColumn(String[] columnNames) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4627
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4628
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4629
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4630
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4631
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4632
     * Sets the designated parameter to the given <code>int</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4633
     * object.  This forms the basis of the join for the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4634
     * <code>JoinRowSet</code> as the column which will form the basis of the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4635
     * join.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4636
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4637
     * The parameter value set by this method is stored internally and
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4638
     * will be supplied as the appropriate parameter in this rowset's
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4639
     * command when the method <code>getMatchColumn</code> is called.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4640
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4641
     * @param columnIdx the index into this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4642
     *        object's internal representation of parameter values; the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4643
     *        first parameter is 0, the second is 1, and so on; must be
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4644
     *        <code>0</code> or greater
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4645
     * @throws SQLException if an error occurs or the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4646
     *                         parameter index is out of bounds
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4647
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4648
    public void setMatchColumn(int columnIdx) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4649
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4650
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4651
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4652
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4653
     * Sets the designated parameter to the given <code>String</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4654
     * object.  This forms the basis of the join for the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4655
     * <code>JoinRowSet</code> as the column which will form the basis of the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4656
     * join.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4657
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4658
     * The parameter value set by this method is stored internally and
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4659
     * will be supplied as the appropriate parameter in this rowset's
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4660
     * command when the method <code>getMatchColumn</code> is called.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4661
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4662
     * @param columnName the name of the column into this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4663
     *        object's internal representation of parameter values
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4664
     * @throws SQLException if an error occurs or the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4665
     *  parameter index is out of bounds
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4666
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4667
    public void setMatchColumn(String columnName) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4668
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4669
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4670
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4671
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4672
     * Unsets the designated parameter to the given <code>int</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4673
     * object.  This was set using <code>setMatchColumn</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4674
     * as the column which will form the basis of the join.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4675
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4676
     * The parameter value unset by this method should be same
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4677
     * as was set.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4678
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4679
     * @param columnIdx the index into this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4680
     *        object's internal representation of parameter values
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4681
     * @throws SQLException if an error occurs or the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4682
     *  parameter index is out of bounds or if the columnIdx is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4683
     *  not the same as set using <code>setMatchColumn(int)</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4684
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4685
    public void unsetMatchColumn(int columnIdx) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4686
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4687
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4688
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4689
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4690
     * Unsets the designated parameter to the given <code>String</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4691
     * object.  This was set using <code>setMatchColumn</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4692
     * as the column which will form the basis of the join.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4693
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4694
     * The parameter value unset by this method should be same
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4695
     * as was set.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4696
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4697
     * @param columnName the index into this rowset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4698
     *        object's internal representation of parameter values
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4699
     * @throws SQLException if an error occurs or the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4700
     *  parameter index is out of bounds or if the columnName is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4701
     *  not the same as set using <code>setMatchColumn(String)</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4702
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4703
    public void unsetMatchColumn(String columnName) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4704
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4705
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4706
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4707
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4708
     * Notifies registered listeners that a RowSet object in the given RowSetEvent
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4709
     * object has populated a number of additional rows. The <code>numRows</code> parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4710
     * ensures that this event will only be fired every <code>numRow</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4711
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4712
     * The source of the event can be retrieved with the method event.getSource.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4713
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4714
     * @param event a <code>RowSetEvent</code> object that contains the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4715
     *     <code>RowSet</code> object that is the source of the events
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4716
     * @param numRows when populating, the number of rows interval on which the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4717
     *     <code>CachedRowSet</code> populated should fire; the default value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4718
     *     is zero; cannot be less than <code>fetchSize</code> or zero
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4719
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4720
    public void rowSetPopulated(RowSetEvent event, int numRows) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4721
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4722
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4723
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4724
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4725
     * Populates this <code>CachedRowSet</code> object with data from
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4726
     * the given <code>ResultSet</code> object. While related to the <code>populate(ResultSet)</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4727
     * method, an additional parameter is provided to allow starting position within
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4728
     * the <code>ResultSet</code> from where to populate the CachedRowSet
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4729
     * instance.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4730
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4731
     * This method is an alternative to the method <code>execute</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4732
     * for filling the rowset with data.  The method <code>populate</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4733
     * does not require that the properties needed by the method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4734
     * <code>execute</code>, such as the <code>command</code> property,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4735
     * be set. This is true because the method <code>populate</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4736
     * is given the <code>ResultSet</code> object from
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4737
     * which to get data and thus does not need to use the properties
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4738
     * required for setting up a connection and executing this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4739
     * <code>CachedRowSetImpl</code> object's command.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4740
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4741
     * After populating this rowset with data, the method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4742
     * <code>populate</code> sets the rowset's metadata and
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4743
     * then sends a <code>RowSetChangedEvent</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4744
     * to all registered listeners prior to returning.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4745
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4746
     * @param data the <code>ResultSet</code> object containing the data
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4747
     *             to be read into this <code>CachedRowSetImpl</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4748
     * @param start the integer specifing the position in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4749
     *        <code>ResultSet</code> object to popultate the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4750
     *        <code>CachedRowSetImpl</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4751
     * @throws SQLException if an error occurs; or the max row setting is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4752
     *          violated while populating the RowSet.Also id the start position
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4753
     *          is negative.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4754
     * @see #execute
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4755
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4756
     public void populate(ResultSet data, int start) throws SQLException{
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4757
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4758
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4759
     }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4760
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4761
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4762
     * The nextPage gets the next page, that is a <code>CachedRowSetImpl</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4763
     * containing the number of rows specified by page size.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4764
     * @return boolean value true indicating whether there are more pages to come and
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4765
     *         false indicating that this is the last page.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4766
     * @throws SQLException if an error occurs or this called before calling populate.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4767
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4768
     public boolean nextPage() throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4769
         throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4770
     }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4771
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4772
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4773
     * This is the setter function for setting the size of the page, which specifies
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4774
     * how many rows have to be retrived at a time.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4775
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4776
     * @param size which is the page size
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4777
     * @throws SQLException if size is less than zero or greater than max rows.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4778
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4779
     public void setPageSize (int size) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4780
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4781
     }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4782
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4783
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4784
     * This is the getter function for the size of the page.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4785
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4786
     * @return an integer that is the page size.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4787
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4788
    public int getPageSize() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4789
        throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4790
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4791
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4792
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4793
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4794
     * Retrieves the data present in the page prior to the page from where it is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4795
     * called.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4796
     * @return boolean value true if it retrieves the previous page, flase if it
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4797
     *         is on the first page.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4798
     * @throws SQLException if it is called before populate is called or ResultSet
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4799
     *         is of type <code>ResultSet.TYPE_FORWARD_ONLY</code> or if an error
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4800
     *         occurs.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4801
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4802
    public boolean previousPage() throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4803
       throw new UnsupportedOperationException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4804
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4805
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4806
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4807
       * Updates the designated column with a character stream value, which will
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4808
       * have the specified number of bytes. The driver does the necessary conversion
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4809
       * from Java character format to the national character set in the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4810
       * It is intended for use when updating NCHAR,NVARCHAR and LONGNVARCHAR columns.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4811
       * The updater methods are used to update column values in the current row or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4812
       * the insert row. The updater methods do not update the underlying database;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4813
       * instead the updateRow or insertRow methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4814
       *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4815
       * @param columnIndex - the first column is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4816
       * @param x - the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4817
       * @param length - the length of the stream
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4818
       * @exception SQLException if a database access error occurs
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4819
       * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4820
       */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4821
       public void updateNCharacterStream(int columnIndex,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4822
                            java.io.Reader x,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4823
                            int length)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4824
                            throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4825
          throw new UnsupportedOperationException("Operation not yet supported");
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4826
       }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4827
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4828
     /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4829
       * Updates the designated column with a character stream value, which will
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4830
       * have the specified number of bytes. The driver does the necessary conversion
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4831
       * from Java character format to the national character set in the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4832
       * It is intended for use when updating NCHAR,NVARCHAR and LONGNVARCHAR columns.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4833
       * The updater methods are used to update column values in the current row or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4834
       * the insert row. The updater methods do not update the underlying database;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4835
       * instead the updateRow or insertRow methods are called to update the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4836
       *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4837
       * @param columnName - name of the Column
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4838
       * @param x - the new column value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4839
       * @param length - the length of the stream
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4840
       * @exception SQLException if a database access error occurs
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4841
       * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4842
       */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4843
       public void updateNCharacterStream(String columnName,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4844
                            java.io.Reader x,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4845
                            int length)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4846
                            throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4847
          throw new UnsupportedOperationException("Operation not yet supported");
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4848
       }
6530
bfb7b294dd14 6680198: UnmarshalException caused by incompatible serialVersionUID
lancea
parents: 5506
diff changeset
  4849
bfb7b294dd14 6680198: UnmarshalException caused by incompatible serialVersionUID
lancea
parents: 5506
diff changeset
  4850
      /**
bfb7b294dd14 6680198: UnmarshalException caused by incompatible serialVersionUID
lancea
parents: 5506
diff changeset
  4851
       * This method re populates the resBundle
bfb7b294dd14 6680198: UnmarshalException caused by incompatible serialVersionUID
lancea
parents: 5506
diff changeset
  4852
       * during the deserialization process
bfb7b294dd14 6680198: UnmarshalException caused by incompatible serialVersionUID
lancea
parents: 5506
diff changeset
  4853
       *
bfb7b294dd14 6680198: UnmarshalException caused by incompatible serialVersionUID
lancea
parents: 5506
diff changeset
  4854
       */
bfb7b294dd14 6680198: UnmarshalException caused by incompatible serialVersionUID
lancea
parents: 5506
diff changeset
  4855
       private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException {
bfb7b294dd14 6680198: UnmarshalException caused by incompatible serialVersionUID
lancea
parents: 5506
diff changeset
  4856
         // Default state initialization happens here
bfb7b294dd14 6680198: UnmarshalException caused by incompatible serialVersionUID
lancea
parents: 5506
diff changeset
  4857
         ois.defaultReadObject();
bfb7b294dd14 6680198: UnmarshalException caused by incompatible serialVersionUID
lancea
parents: 5506
diff changeset
  4858
         // Initialization of transient Res Bundle happens here .
bfb7b294dd14 6680198: UnmarshalException caused by incompatible serialVersionUID
lancea
parents: 5506
diff changeset
  4859
         try {
bfb7b294dd14 6680198: UnmarshalException caused by incompatible serialVersionUID
lancea
parents: 5506
diff changeset
  4860
            resBundle = JdbcRowSetResourceBundle.getJdbcRowSetResourceBundle();
bfb7b294dd14 6680198: UnmarshalException caused by incompatible serialVersionUID
lancea
parents: 5506
diff changeset
  4861
         } catch(IOException ioe) {
bfb7b294dd14 6680198: UnmarshalException caused by incompatible serialVersionUID
lancea
parents: 5506
diff changeset
  4862
             throw new RuntimeException(ioe);
bfb7b294dd14 6680198: UnmarshalException caused by incompatible serialVersionUID
lancea
parents: 5506
diff changeset
  4863
         }
bfb7b294dd14 6680198: UnmarshalException caused by incompatible serialVersionUID
lancea
parents: 5506
diff changeset
  4864
bfb7b294dd14 6680198: UnmarshalException caused by incompatible serialVersionUID
lancea
parents: 5506
diff changeset
  4865
       }
bfb7b294dd14 6680198: UnmarshalException caused by incompatible serialVersionUID
lancea
parents: 5506
diff changeset
  4866
bfb7b294dd14 6680198: UnmarshalException caused by incompatible serialVersionUID
lancea
parents: 5506
diff changeset
  4867
       static final long serialVersionUID = -3345004441725080251L;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4868
} //end class