Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

# RowSetInternal

` public interface RowSetInternal `   
` `

|---|
| javax.sql.RowSetInternal |

<br />

*** ** * ** ***

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.

## Summary

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

## Public methods

### getConnection

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract Connection getConnection ()
```

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

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/sql/Connection` | the `Connection` object passed to the rowset or `null` if none was passed <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/java/sql/SQLException` | if a database access error occurs |

### getOriginal

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract ResultSet 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.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/sql/ResultSet` | the original value of the rowset <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/java/sql/SQLException` | if a database access error occurs |

### getOriginalRow

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract ResultSet 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.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/sql/ResultSet` | the original value of the current row as a `ResultSet` object <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/java/sql/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

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract Object[] getParams ()
```

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

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/Object` | an array of the current parameter values for this `RowSet` object's command <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/java/sql/SQLException` | if a database access error occurs |

### setMetaData

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract void setMetaData (RowSetMetaData 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.

<br />

| Parameters ||
|---|---|
| `md` | `RowSetMetaData`: the `RowSetMetaData` object that will be set with information about the rowset's columns <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/java/sql/SQLException` | if a database access error occurs |