# 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.

### Public Method Summary

|---|---|
| abstract [Connection](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/Connection.html) | [getConnection](https://developers.google.com/j2objc/javadoc/jre/reference/javax/sql/RowSetInternal.html#getConnection())() Retrieves the `Connection` object that was passed to this `RowSet` object. |
| abstract [ResultSet](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/ResultSet.html) | [getOriginal](https://developers.google.com/j2objc/javadoc/jre/reference/javax/sql/RowSetInternal.html#getOriginal())() Retrieves a `ResultSet` object containing the original value of this `RowSet` object. |
| abstract [ResultSet](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/ResultSet.html) | [getOriginalRow](https://developers.google.com/j2objc/javadoc/jre/reference/javax/sql/RowSetInternal.html#getOriginalRow())() Retrieves a `ResultSet` object containing the original value of the current row only. |
| abstract [Object\[\]](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [getParams](https://developers.google.com/j2objc/javadoc/jre/reference/javax/sql/RowSetInternal.html#getParams())() Retrieves the parameters that have been set for this `RowSet` object's command. |
| abstract void | [setMetaData](https://developers.google.com/j2objc/javadoc/jre/reference/javax/sql/RowSetInternal.html#setMetaData(javax.sql.RowSetMetaData))([RowSetMetaData](https://developers.google.com/j2objc/javadoc/jre/reference/javax/sql/RowSetMetaData.html) md) Sets the given `RowSetMetaData` object as the `RowSetMetaData` object for this `RowSet` object. |

## Public Methods

#### public abstract [Connection](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/Connection.html)
**getConnection**
()

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](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/SQLException.html) | if a database access error occurs |
|---|---|

#### public abstract [ResultSet](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/ResultSet.html)
**getOriginal**
()

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](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/SQLException.html) | if a database access error occurs |
|---|---|

#### public abstract [ResultSet](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/ResultSet.html)
**getOriginalRow**
()

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](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/SQLException.html) | 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 |
|---|---|

#### public abstract [Object\[\]](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)
**getParams**
()

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](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/SQLException.html) | if a database access error occurs |
|---|---|

#### public abstract void
**setMetaData**
([RowSetMetaData](https://developers.google.com/j2objc/javadoc/jre/reference/javax/sql/RowSetMetaData.html) md)

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](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/SQLException.html) | if a database access error occurs |
|---|---|