Ja.NET Standard Edition 5.0

Documentation API Specification

Contents

RowSetInternal Interface Reference

Inherited by CachedRowSetImpl.

List of all members.


Detailed Description

An interface provided by a RowSet object to either a RowSetReader or a RowSetWriter, providing facilities to read and update the internal state of the RowSet.

Public Member Functions

Connection getConnection () throws SQLException
 Gets the Connection associated with this RowSet object.
ResultSet getOriginal () throws SQLException
 Gets the ResultSet that was the original (unmodified) content of the RowSet.
ResultSet getOriginalRow () throws SQLException
 Gets the original value of the current row only.
Object[] getParams () throws SQLException
 Gets the parameter values that have been set for this RowSet's command.
void setMetaData (RowSetMetaData theMetaData) throws SQLException
 Sets RowSetMetaData for this RowSet.

Member Function Documentation

Connection getConnection (  )  throws SQLException

Gets the Connection associated with this RowSet object.

Returns:
the Connection
Exceptions:
SQLException if there is a problem accessing the database.

Implemented in CachedRowSetImpl.

ResultSet getOriginal (  )  throws SQLException

Gets the ResultSet that was the original (unmodified) content of the RowSet.

The ResultSet cursor is positioned before the first row of data

Returns:
the ResultSet that contained the original data value of the RowSet
Exceptions:
SQLException if there is a problem accessing the database.

Implemented in CachedRowSetImpl.

ResultSet getOriginalRow (  )  throws SQLException

Gets the original value of the current row only.

If the current row did not have an original value, then an empty value is returned.

Returns:
a ResultSet containing the value of the current row only.
Exceptions:
SQLException if there is a problem accessing the database, or if the cursor is not on a valid row (before first, after last or pointing to the insert row).

Implemented in CachedRowSetImpl.

Object [] getParams (  )  throws SQLException

Gets the parameter values that have been set for this RowSet's command.

Returns:
an Object array containing the values of parameters that have been set.
Exceptions:
SQLException if there is a problem accessing the database.

void setMetaData ( RowSetMetaData  theMetaData  )  throws SQLException

Sets RowSetMetaData for this RowSet.

The RowSetMetaData is used by a RowSetReader to set values giving information about the RowSet's columns.

Parameters:
theMetaData a RowSetMetaData holding the metadata about the RowSet's columns.
Exceptions:
SQLException if there is a problem accessing the database.

Implemented in CachedRowSetImpl.