0N/A/*
2362N/A * Copyright (c) 2000, 2001, Oracle and/or its affiliates. All rights reserved.
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A *
0N/A * This code is free software; you can redistribute it and/or modify it
0N/A * under the terms of the GNU General Public License version 2 only, as
2362N/A * published by the Free Software Foundation. Oracle designates this
0N/A * particular file as subject to the "Classpath" exception as provided
2362N/A * by Oracle in the LICENSE file that accompanied this code.
0N/A *
0N/A * This code is distributed in the hope that it will be useful, but WITHOUT
0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A * version 2 for more details (a copy is included in the LICENSE file that
0N/A * accompanied this code).
0N/A *
0N/A * You should have received a copy of the GNU General Public License version
0N/A * 2 along with this work; if not, write to the Free Software Foundation,
0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A *
2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2362N/A * or visit www.oracle.com if you need additional information or have any
2362N/A * questions.
0N/A */
0N/A
0N/Apackage javax.sql;
0N/A
0N/Aimport java.sql.*;
0N/A
0N/A/**
0N/A * The interface that a <code>RowSet</code> object implements in order to
0N/A * present itself to a <code>RowSetReader</code> or <code>RowSetWriter</code>
0N/A * object. The <code>RowSetInternal</code> interface contains
0N/A * methods that let the reader or writer access and modify the internal
0N/A * state of the rowset.
0N/A *
0N/A * @since 1.4
0N/A */
0N/A
0N/Apublic interface RowSetInternal {
0N/A
0N/A /**
0N/A * Retrieves the parameters that have been set for this
0N/A * <code>RowSet</code> object's command.
0N/A *
0N/A * @return an array of the current parameter values for this <code>RowSet</code>
0N/A * object's command
0N/A * @exception SQLException if a database access error occurs
0N/A */
0N/A Object[] getParams() throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves the <code>Connection</code> object that was passed to this
0N/A * <code>RowSet</code> object.
0N/A *
0N/A * @return the <code>Connection</code> object passed to the rowset
0N/A * or <code>null</code> if none was passed
0N/A * @exception SQLException if a database access error occurs
0N/A */
0N/A Connection getConnection() throws SQLException;
0N/A
0N/A /**
0N/A * Sets the given <code>RowSetMetaData</code> object as the
0N/A * <code>RowSetMetaData</code> object for this <code>RowSet</code>
0N/A * object. The <code>RowSetReader</code> object associated with the rowset
0N/A * will use <code>RowSetMetaData</code> methods to set the values giving
0N/A * information about the rowset's columns.
0N/A *
0N/A * @param md the <code>RowSetMetaData</code> object that will be set with
0N/A * information about the rowset's columns
0N/A *
0N/A * @exception SQLException if a database access error occurs
0N/A */
0N/A void setMetaData(RowSetMetaData md) throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves a <code>ResultSet</code> object containing the original
0N/A * value of this <code>RowSet</code> object.
0N/A * <P>
0N/A * The cursor is positioned before the first row in the result set.
0N/A * Only rows contained in the result set returned by the method
0N/A * <code>getOriginal</code> are said to have an original value.
0N/A *
0N/A * @return the original value of the rowset
0N/A * @exception SQLException if a database access error occurs
0N/A */
0N/A public ResultSet getOriginal() throws SQLException;
0N/A
0N/A /**
0N/A * Retrieves a <code>ResultSet</code> object containing the original value
0N/A * of the current row only. If the current row has no original value,
0N/A * an empty result set is returned. If there is no current row,
0N/A * an exception is thrown.
0N/A *
0N/A * @return the original value of the current row as a <code>ResultSet</code>
0N/A * object
0N/A * @exception SQLException if a database access error occurs or this method
0N/A * is called while the cursor is on the insert row, before the
0N/A * first row, or after the last row
0N/A */
0N/A public ResultSet getOriginalRow() throws SQLException;
0N/A
0N/A}