Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Inherited Constants](https://developer.android.com/reference/javax/sql/RowSetMetaData#inhconstants) \| [Methods](https://developer.android.com/reference/javax/sql/RowSetMetaData#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/javax/sql/RowSetMetaData#inhmethods)

# RowSetMetaData

` public interface RowSetMetaData `   
` implements https://developer.android.com/reference/java/sql/ResultSetMetaData `

|---|
| javax.sql.RowSetMetaData |

<br />

*** ** * ** ***

An object that contains information about the columns in a `RowSet` object. This interface is an extension of the `ResultSetMetaData` interface with methods for setting the values in a `RowSetMetaData` object. When a `RowSetReader` object reads data into a `RowSet` object, it creates a `RowSetMetaData` object and initializes it using the methods in the `RowSetMetaData` interface. Then the reader passes the `RowSetMetaData` object to the rowset.

The methods in this interface are invoked internally when an application calls the method `RowSet.execute`; an application programmer would not use them directly.

## Summary

### Inherited constants

From interface `https://developer.android.com/reference/java/sql/ResultSetMetaData` `int` `https://developer.android.com/reference/java/sql/ResultSetMetaData#columnNoNulls`

The constant indicating that a column does not allow `NULL` values.
`int` `https://developer.android.com/reference/java/sql/ResultSetMetaData#columnNullable`

The constant indicating that a column allows `NULL` values.
`int` `https://developer.android.com/reference/java/sql/ResultSetMetaData#columnNullableUnknown`

The constant indicating that the nullability of a column's values is unknown.

| ### Public methods ||
|---|---|
| ` abstract void` | ` https://developer.android.com/reference/javax/sql/RowSetMetaData#setAutoIncrement(int,%20boolean)(int columnIndex, boolean property) ` Sets whether the designated column is automatically numbered, The default is for a `RowSet` object's columns not to be automatically numbered. |
| ` abstract void` | ` https://developer.android.com/reference/javax/sql/RowSetMetaData#setCaseSensitive(int,%20boolean)(int columnIndex, boolean property) ` Sets whether the designated column is case sensitive. |
| ` abstract void` | ` https://developer.android.com/reference/javax/sql/RowSetMetaData#setCatalogName(int,%20java.lang.String)(int columnIndex, https://developer.android.com/reference/java/lang/String catalogName) ` Sets the designated column's table's catalog name, if any, to the given `String`. |
| ` abstract void` | ` https://developer.android.com/reference/javax/sql/RowSetMetaData#setColumnCount(int)(int columnCount) ` Sets the number of columns in the `RowSet` object to the given number. |
| ` abstract void` | ` https://developer.android.com/reference/javax/sql/RowSetMetaData#setColumnDisplaySize(int,%20int)(int columnIndex, int size) ` Sets the designated column's normal maximum width in chars to the given `int`. |
| ` abstract void` | ` https://developer.android.com/reference/javax/sql/RowSetMetaData#setColumnLabel(int,%20java.lang.String)(int columnIndex, https://developer.android.com/reference/java/lang/String label) ` Sets the suggested column title for use in printouts and displays, if any, to the given `String`. |
| ` abstract void` | ` https://developer.android.com/reference/javax/sql/RowSetMetaData#setColumnName(int,%20java.lang.String)(int columnIndex, https://developer.android.com/reference/java/lang/String columnName) ` Sets the name of the designated column to the given `String`. |
| ` abstract void` | ` https://developer.android.com/reference/javax/sql/RowSetMetaData#setColumnType(int,%20int)(int columnIndex, int SQLType) ` Sets the designated column's SQL type to the one given. |
| ` abstract void` | ` https://developer.android.com/reference/javax/sql/RowSetMetaData#setColumnTypeName(int,%20java.lang.String)(int columnIndex, https://developer.android.com/reference/java/lang/String typeName) ` Sets the designated column's type name that is specific to the data source, if any, to the given `String`. |
| ` abstract void` | ` https://developer.android.com/reference/javax/sql/RowSetMetaData#setCurrency(int,%20boolean)(int columnIndex, boolean property) ` Sets whether the designated column is a cash value. |
| ` abstract void` | ` https://developer.android.com/reference/javax/sql/RowSetMetaData#setNullable(int,%20int)(int columnIndex, int property) ` Sets whether the designated column's value can be set to `NULL`. |
| ` abstract void` | ` https://developer.android.com/reference/javax/sql/RowSetMetaData#setPrecision(int,%20int)(int columnIndex, int precision) ` Sets the designated column's number of decimal digits to the given `int`. |
| ` abstract void` | ` https://developer.android.com/reference/javax/sql/RowSetMetaData#setScale(int,%20int)(int columnIndex, int scale) ` Sets the designated column's number of digits to the right of the decimal point to the given `int`. |
| ` abstract void` | ` https://developer.android.com/reference/javax/sql/RowSetMetaData#setSchemaName(int,%20java.lang.String)(int columnIndex, https://developer.android.com/reference/java/lang/String schemaName) ` Sets the name of the designated column's table's schema, if any, to the given `String`. |
| ` abstract void` | ` https://developer.android.com/reference/javax/sql/RowSetMetaData#setSearchable(int,%20boolean)(int columnIndex, boolean property) ` Sets whether the designated column can be used in a where clause. |
| ` abstract void` | ` https://developer.android.com/reference/javax/sql/RowSetMetaData#setSigned(int,%20boolean)(int columnIndex, boolean property) ` Sets whether the designated column is a signed number. |
| ` abstract void` | ` https://developer.android.com/reference/javax/sql/RowSetMetaData#setTableName(int,%20java.lang.String)(int columnIndex, https://developer.android.com/reference/java/lang/String tableName) ` Sets the designated column's table name, if any, to the given `String`. |

### Inherited methods

From interface ` https://developer.android.com/reference/java/sql/ResultSetMetaData ` ` abstract https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/java/sql/ResultSetMetaData#getCatalogName(int)(int column) `

Gets the designated column's table's catalog name.
` abstract https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/java/sql/ResultSetMetaData#getColumnClassName(int)(int column) `

<br />

Returns the fully-qualified name of the Java class whose instances are manufactured if the method `ResultSet.getObject` is called to retrieve a value from the column.
` abstract int` ` https://developer.android.com/reference/java/sql/ResultSetMetaData#getColumnCount()() `

Returns the number of columns in this `ResultSet` object.
` abstract int` ` https://developer.android.com/reference/java/sql/ResultSetMetaData#getColumnDisplaySize(int)(int column) `

Indicates the designated column's normal maximum width in characters.
` abstract https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/java/sql/ResultSetMetaData#getColumnLabel(int)(int column) `

Gets the designated column's suggested title for use in printouts and displays.
` abstract https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/java/sql/ResultSetMetaData#getColumnName(int)(int column) `

Get the designated column's name.
` abstract int` ` https://developer.android.com/reference/java/sql/ResultSetMetaData#getColumnType(int)(int column) `

Retrieves the designated column's SQL type.
` abstract https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/java/sql/ResultSetMetaData#getColumnTypeName(int)(int column) `

Retrieves the designated column's database-specific type name.
` abstract int` ` https://developer.android.com/reference/java/sql/ResultSetMetaData#getPrecision(int)(int column) `

Get the designated column's specified column size.
` abstract int` ` https://developer.android.com/reference/java/sql/ResultSetMetaData#getScale(int)(int column) `

Gets the designated column's number of digits to right of the decimal point.
` abstract https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/java/sql/ResultSetMetaData#getSchemaName(int)(int column) `

Get the designated column's table's schema.
` abstract https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/java/sql/ResultSetMetaData#getTableName(int)(int column) `

Gets the designated column's table name.
` abstract boolean` ` https://developer.android.com/reference/java/sql/ResultSetMetaData#isAutoIncrement(int)(int column) `

Indicates whether the designated column is automatically numbered.
` abstract boolean` ` https://developer.android.com/reference/java/sql/ResultSetMetaData#isCaseSensitive(int)(int column) `

Indicates whether a column's case matters.
` abstract boolean` ` https://developer.android.com/reference/java/sql/ResultSetMetaData#isCurrency(int)(int column) `

Indicates whether the designated column is a cash value.
` abstract boolean` ` https://developer.android.com/reference/java/sql/ResultSetMetaData#isDefinitelyWritable(int)(int column) `

Indicates whether a write on the designated column will definitely succeed.
` abstract int` ` https://developer.android.com/reference/java/sql/ResultSetMetaData#isNullable(int)(int column) `

Indicates the nullability of values in the designated column.
` abstract boolean` ` https://developer.android.com/reference/java/sql/ResultSetMetaData#isReadOnly(int)(int column) `

Indicates whether the designated column is definitely not writable.
` abstract boolean` ` https://developer.android.com/reference/java/sql/ResultSetMetaData#isSearchable(int)(int column) `

Indicates whether the designated column can be used in a where clause.
` abstract boolean` ` https://developer.android.com/reference/java/sql/ResultSetMetaData#isSigned(int)(int column) `

Indicates whether values in the designated column are signed numbers.
` abstract boolean` ` https://developer.android.com/reference/java/sql/ResultSetMetaData#isWritable(int)(int column) `

Indicates whether it is possible for a write on the designated column to succeed.
From interface ` https://developer.android.com/reference/java/sql/Wrapper ` ` abstract boolean` ` https://developer.android.com/reference/java/sql/Wrapper#isWrapperFor(java.lang.Class<?>)(https://developer.android.com/reference/java/lang/Class<?> iface) `

Returns true if this either implements the interface argument or is directly or indirectly a wrapper for an object that does.
` abstract <T> T` ` https://developer.android.com/reference/java/sql/Wrapper#unwrap(java.lang.Class<T>)(https://developer.android.com/reference/java/lang/Class<T> iface) `

Returns an object that implements the given interface to allow access to non-standard methods, or standard methods not exposed by the proxy.

## Public methods

### setAutoIncrement

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

```
public abstract void setAutoIncrement (int columnIndex, 
                boolean property)
```

Sets whether the designated column is automatically numbered, The default is for a `RowSet` object's columns not to be automatically numbered.

<br />

| Parameters ||
|---|---|
| `columnIndex` | `int`: the first column is 1, the second is 2, ... <br /> |
| `property` | `boolean`: `true` if the column is automatically numbered; `false` if it is not <br /> |

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

### setCaseSensitive

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

```
public abstract void setCaseSensitive (int columnIndex, 
                boolean property)
```

Sets whether the designated column is case sensitive. The default is `false`.

<br />

| Parameters ||
|---|---|
| `columnIndex` | `int`: the first column is 1, the second is 2, ... <br /> |
| `property` | `boolean`: `true` if the column is case sensitive; `false` if it is not <br /> |

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

### setCatalogName

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

```
public abstract void setCatalogName (int columnIndex, 
                String catalogName)
```

Sets the designated column's table's catalog name, if any, to the given `String`.

<br />

| Parameters ||
|---|---|
| `columnIndex` | `int`: the first column is 1, the second is 2, ... <br /> |
| `catalogName` | `String`: the column's catalog name <br /> |

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

### setColumnCount

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

```
public abstract void setColumnCount (int columnCount)
```

Sets the number of columns in the `RowSet` object to the given number.

<br />

| Parameters ||
|---|---|
| `columnCount` | `int`: the number of columns in the `RowSet` object <br /> |

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

### setColumnDisplaySize

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

```
public abstract void setColumnDisplaySize (int columnIndex, 
                int size)
```

Sets the designated column's normal maximum width in chars to the given `int`.

<br />

| Parameters ||
|---|---|
| `columnIndex` | `int`: the first column is 1, the second is 2, ... <br /> |
| `size` | `int`: the normal maximum number of characters for the designated column <br /> |

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

### setColumnLabel

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

```
public abstract void setColumnLabel (int columnIndex, 
                String label)
```

Sets the suggested column title for use in printouts and displays, if any, to the given `String`.

<br />

| Parameters ||
|---|---|
| `columnIndex` | `int`: the first column is 1, the second is 2, ... <br /> |
| `label` | `String`: the column title <br /> |

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

### setColumnName

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

```
public abstract void setColumnName (int columnIndex, 
                String columnName)
```

Sets the name of the designated column to the given `String`.

<br />

| Parameters ||
|---|---|
| `columnIndex` | `int`: the first column is 1, the second is 2, ... <br /> |
| `columnName` | `String`: the designated column's name <br /> |

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

### setColumnType

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

```
public abstract void setColumnType (int columnIndex, 
                int SQLType)
```

Sets the designated column's SQL type to the one given.

<br />

| Parameters ||
|---|---|
| `columnIndex` | `int`: the first column is 1, the second is 2, ... <br /> |
| `SQLType` | `int`: the column's SQL type <br /> |

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

**See also:**

- `https://developer.android.com/reference/java/sql/Types`

### setColumnTypeName

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

```
public abstract void setColumnTypeName (int columnIndex, 
                String typeName)
```

Sets the designated column's type name that is specific to the data source, if any, to the given `String`.

<br />

| Parameters ||
|---|---|
| `columnIndex` | `int`: the first column is 1, the second is 2, ... <br /> |
| `typeName` | `String`: data source specific type name. <br /> |

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

### setCurrency

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

```
public abstract void setCurrency (int columnIndex, 
                boolean property)
```

Sets whether the designated column is a cash value. The default is `false`.

<br />

| Parameters ||
|---|---|
| `columnIndex` | `int`: the first column is 1, the second is 2, ... <br /> |
| `property` | `boolean`: `true` if the column is a cash value; `false` if it is not <br /> |

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

### setNullable

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

```
public abstract void setNullable (int columnIndex, 
                int property)
```

Sets whether the designated column's value can be set to `NULL`. The default is `ResultSetMetaData.columnNullableUnknown`

<br />

| Parameters ||
|---|---|
| `columnIndex` | `int`: the first column is 1, the second is 2, ... <br /> |
| `property` | `int`: one of the following constants: `ResultSetMetaData.columnNoNulls`, `ResultSetMetaData.columnNullable`, or `ResultSetMetaData.columnNullableUnknown` <br /> |

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

### setPrecision

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

```
public abstract void setPrecision (int columnIndex, 
                int precision)
```

Sets the designated column's number of decimal digits to the given `int`.

<br />

| Parameters ||
|---|---|
| `columnIndex` | `int`: the first column is 1, the second is 2, ... <br /> |
| `precision` | `int`: the total number of decimal digits <br /> |

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

### setScale

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

```
public abstract void setScale (int columnIndex, 
                int scale)
```

Sets the designated column's number of digits to the right of the decimal point to the given `int`.

<br />

| Parameters ||
|---|---|
| `columnIndex` | `int`: the first column is 1, the second is 2, ... <br /> |
| `scale` | `int`: the number of digits to right of decimal point <br /> |

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

### setSchemaName

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

```
public abstract void setSchemaName (int columnIndex, 
                String schemaName)
```

Sets the name of the designated column's table's schema, if any, to the given `String`.

<br />

| Parameters ||
|---|---|
| `columnIndex` | `int`: the first column is 1, the second is 2, ... <br /> |
| `schemaName` | `String`: the schema name <br /> |

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

### setSearchable

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

```
public abstract void setSearchable (int columnIndex, 
                boolean property)
```

Sets whether the designated column can be used in a where clause. The default is `false`.

<br />

| Parameters ||
|---|---|
| `columnIndex` | `int`: the first column is 1, the second is 2, ... <br /> |
| `property` | `boolean`: `true` if the column can be used in a `WHERE` clause; `false` if it cannot <br /> |

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

### setSigned

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

```
public abstract void setSigned (int columnIndex, 
                boolean property)
```

Sets whether the designated column is a signed number. The default is `false`.

<br />

| Parameters ||
|---|---|
| `columnIndex` | `int`: the first column is 1, the second is 2, ... <br /> |
| `property` | `boolean`: `true` if the column is a signed number; `false` if it is not <br /> |

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

### setTableName

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

```
public abstract void setTableName (int columnIndex, 
                String tableName)
```

Sets the designated column's table name, if any, to the given `String`.

<br />

| Parameters ||
|---|---|
| `columnIndex` | `int`: the first column is 1, the second is 2, ... <br /> |
| `tableName` | `String`: the column's table name <br /> |

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