APIdia Launch Partner
Top Description Methods
javax.sql

public Interface RowSetInternal

Imports
java.sql.*

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.
Since
1.4

Method Summary

Modifier and TypeMethod and Description
public Connection

Returns:

the Connection object passed to the rowset or null if none was passed
getConnection
()

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

public ResultSet

Returns:

the original value of the rowset
getOriginal
()

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

public ResultSet

Returns:

the original value of the current row as a ResultSet object
getOriginalRow
()

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

public Object[]

Returns:

an array of the current parameter values for this RowSet object's command
getParams
()

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

public void
setMetaData(RowSetMetaData
the RowSetMetaData object that will be set with information about the rowset's columns
md
)

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

Method Detail

getConnectionback to summary
public Connection getConnection() throws SQLException

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

Returns:Connection

the Connection object passed to the rowset or null if none was passed

Exceptions
SQLException:
if a database access error occurs
getOriginalback to summary
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:ResultSet

the original value of the rowset

Exceptions
SQLException:
if a database access error occurs
getOriginalRowback to summary
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:ResultSet

the original value of the current row as a ResultSet object

Exceptions
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
getParamsback to summary
public Object[] getParams() throws SQLException

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

Returns:Object[]

an array of the current parameter values for this RowSet object's command

Exceptions
SQLException:
if a database access error occurs
setMetaDataback to summary
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:RowSetMetaData

the RowSetMetaData object that will be set with information about the rowset's columns

Exceptions
SQLException:
if a database access error occurs