This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


javax.sql
interface RowSetInternal


public interface RowSetInternal

The interface that a RowSet object implements in order to present itself to a RowSetReader or RowSetWriter object. The RowSetInternal interface contains methods that let the reader or writer access and modify the internal state of the rowset.


Method Summary
 Connection

          Retrieves the Connection object that was passed to this RowSet object.
 ResultSet

          Retrieves a ResultSet object containing the original value of this RowSet object.
 ResultSet

          Retrieves a ResultSet object containing the original value of the current row only.
 Object[]

          Retrieves the parameters that have been set for this RowSet object's command.
 void

          Sets the given RowSetMetaData object as the RowSetMetaData object for this RowSet object.
 

Method Detail

getConnection

public Connection getConnection()
                         throws SQLException
Retrieves the Connection object that was passed to this RowSet object.

Returns:
the Connection object passed to the rowset or null if none was passed
Throws:
SQLException - if a database access error occurs

getOriginal

public ResultSet getOriginal()
                      throws SQLException
Retrieves a ResultSet object containing the original value of this RowSet object.

The cursor is positioned before the first row in the result set. Only rows contained in the result set returned by the method getOriginal are said to have an original value.

Returns:
the original value of the rowset
Throws:
SQLException - if a database access error occurs

getOriginalRow

public ResultSet getOriginalRow()
                         throws SQLException
Retrieves a ResultSet object containing the original value of the current row only. If the current row has no original value, an empty result set is returned. If there is no current row, an exception is thrown.

Returns:
the original value of the current row as a ResultSet object
Throws:
SQLException - if a database access error occurs or this method is called while the cursor is on the insert row, before the first row, or after the last row

getParams

public Object[] getParams()
                   throws SQLException
Retrieves the parameters that have been set for this RowSet object's command.

Returns:
an array of the current parameter values for this RowSet object's command
Throws:
SQLException - if a database access error occurs

setMetaData

public void setMetaData(RowSetMetaData md)
                 throws SQLException
Sets the given RowSetMetaData object as the RowSetMetaData object for this RowSet object. The RowSetReader object associated with the rowset will use RowSetMetaData methods to set the values giving information about the rowset's columns.

Parameters:
md - the RowSetMetaData object that will be set with information about the rowset's columns
Throws:
SQLException - if a database access error occurs


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.