to top
Android APIs
Added in API level 1
public interface

RowSetInternal

javax.sql.RowSetInternal

Class Overview

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

Summary

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

Public Methods

public abstract Connection getConnection ()

Added in API level 1

Gets the connection associated with this RowSet object.

Returns
  • the connection or null.
Throws
SQLException if there is a problem accessing the database.

public abstract ResultSet getOriginal ()

Added in API level 1

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

The ResultSet's cursor is positioned before the first row of data.

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

public abstract ResultSet getOriginalRow ()

Added in API level 1

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.
Throws
SQLException if there is a problem accessing the database, or if the cursor is not on a valid row (before the first row, after the last one or pointing to the insert row).

public abstract Object[] getParams ()

Added in API level 1

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

Returns
  • the values of parameters that have been set.
Throws
SQLException if there is a problem accessing the database.

public abstract void setMetaData (RowSetMetaData theMetaData)

Added in API level 1

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

Parameters
theMetaData holds the metadata about the RowSet's columns.
Throws
SQLException if there is a problem accessing the database.