# RowSetMetaData

public interface **RowSetMetaData** implements [ResultSetMetaData](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/ResultSetMetaData.html) 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.

### Inherited Constant Summary

From interface [java.sql.ResultSetMetaData](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/ResultSetMetaData.html)

|---|---|---|
| int | [columnNoNulls](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/ResultSetMetaData.html#columnNoNulls) | The constant indicating that a column does not allow `NULL` values. |
| int | [columnNullable](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/ResultSetMetaData.html#columnNullable) | The constant indicating that a column allows `NULL` values. |
| int | [columnNullableUnknown](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/ResultSetMetaData.html#columnNullableUnknown) | The constant indicating that the nullability of a column's values is unknown. |

### Public Method Summary

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

### Inherited Method Summary

From interface [java.sql.ResultSetMetaData](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/ResultSetMetaData.html)

|---|---|
| abstract [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [getCatalogName](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/ResultSetMetaData.html#getCatalogName(int))(int column) Gets the designated column's table's catalog name. |
| abstract [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [getColumnClassName](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/ResultSetMetaData.html#getColumnClassName(int))(int column) 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 | [getColumnCount](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/ResultSetMetaData.html#getColumnCount())() Returns the number of columns in this `ResultSet` object. |
| abstract int | [getColumnDisplaySize](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/ResultSetMetaData.html#getColumnDisplaySize(int))(int column) Indicates the designated column's normal maximum width in characters. |
| abstract [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [getColumnLabel](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/ResultSetMetaData.html#getColumnLabel(int))(int column) Gets the designated column's suggested title for use in printouts and displays. |
| abstract [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [getColumnName](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/ResultSetMetaData.html#getColumnName(int))(int column) Get the designated column's name. |
| abstract int | [getColumnType](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/ResultSetMetaData.html#getColumnType(int))(int column) Retrieves the designated column's SQL type. |
| abstract [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [getColumnTypeName](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/ResultSetMetaData.html#getColumnTypeName(int))(int column) Retrieves the designated column's database-specific type name. |
| abstract int | [getPrecision](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/ResultSetMetaData.html#getPrecision(int))(int column) Get the designated column's specified column size. |
| abstract int | [getScale](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/ResultSetMetaData.html#getScale(int))(int column) Gets the designated column's number of digits to right of the decimal point. |
| abstract [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [getSchemaName](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/ResultSetMetaData.html#getSchemaName(int))(int column) Get the designated column's table's schema. |
| abstract [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [getTableName](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/ResultSetMetaData.html#getTableName(int))(int column) Gets the designated column's table name. |
| abstract boolean | [isAutoIncrement](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/ResultSetMetaData.html#isAutoIncrement(int))(int column) Indicates whether the designated column is automatically numbered. |
| abstract boolean | [isCaseSensitive](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/ResultSetMetaData.html#isCaseSensitive(int))(int column) Indicates whether a column's case matters. |
| abstract boolean | [isCurrency](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/ResultSetMetaData.html#isCurrency(int))(int column) Indicates whether the designated column is a cash value. |
| abstract boolean | [isDefinitelyWritable](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/ResultSetMetaData.html#isDefinitelyWritable(int))(int column) Indicates whether a write on the designated column will definitely succeed. |
| abstract int | [isNullable](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/ResultSetMetaData.html#isNullable(int))(int column) Indicates the nullability of values in the designated column. |
| abstract boolean | [isReadOnly](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/ResultSetMetaData.html#isReadOnly(int))(int column) Indicates whether the designated column is definitely not writable. |
| abstract boolean | [isSearchable](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/ResultSetMetaData.html#isSearchable(int))(int column) Indicates whether the designated column can be used in a where clause. |
| abstract boolean | [isSigned](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/ResultSetMetaData.html#isSigned(int))(int column) Indicates whether values in the designated column are signed numbers. |
| abstract boolean | [isWritable](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/ResultSetMetaData.html#isWritable(int))(int column) Indicates whether it is possible for a write on the designated column to succeed. |

From interface [java.sql.Wrapper](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/Wrapper.html)

|---|---|
| abstract boolean | [isWrapperFor](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/Wrapper.html#isWrapperFor(java.lang.Class<?>))([Class](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Class.html)\<?\> 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 | [unwrap](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/Wrapper.html#unwrap(java.lang.Class<T>))([Class](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Class.html)\<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

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

##### Parameters

| columnIndex | the first column is 1, the second is 2, ... |
| property | `true` if the column is automatically numbered; `false` if it is not |
|---|---|

##### Throws

| [SQLException](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/SQLException.html) | if a database access error occurs |
|---|---|

#### public abstract void
**setCaseSensitive**
(int columnIndex, boolean property)

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

##### Parameters

| columnIndex | the first column is 1, the second is 2, ... |
| property | `true` if the column is case sensitive; `false` if it is not |
|---|---|

##### Throws

| [SQLException](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/SQLException.html) | if a database access error occurs |
|---|---|

#### public abstract void
**setCatalogName**
(int columnIndex, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) catalogName)

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

##### Parameters

| columnIndex | the first column is 1, the second is 2, ... |
| catalogName | the column's catalog name |
|---|---|

##### Throws

| [SQLException](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/SQLException.html) | if a database access error occurs |
|---|---|

#### public abstract void
**setColumnCount**
(int columnCount)

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

##### Parameters

| columnCount | the number of columns in the `RowSet` object |
|---|---|

##### Throws

| [SQLException](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/SQLException.html) | if a database access error occurs |
|---|---|

#### public abstract void
**setColumnDisplaySize**
(int columnIndex, int size)

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

##### Parameters

| columnIndex | the first column is 1, the second is 2, ... |
| size | the normal maximum number of characters for the designated column |
|---|---|

##### Throws

| [SQLException](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/SQLException.html) | if a database access error occurs |
|---|---|

#### public abstract void
**setColumnLabel**
(int columnIndex, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) label)

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

##### Parameters

| columnIndex | the first column is 1, the second is 2, ... |
| label | the column title |
|---|---|

##### Throws

| [SQLException](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/SQLException.html) | if a database access error occurs |
|---|---|

#### public abstract void
**setColumnName**
(int columnIndex, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) columnName)

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

##### Parameters

| columnIndex | the first column is 1, the second is 2, ... |
| columnName | the designated column's name |
|---|---|

##### Throws

| [SQLException](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/SQLException.html) | if a database access error occurs |
|---|---|

#### public abstract void
**setColumnType**
(int columnIndex, int SQLType)

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

##### Parameters

| columnIndex | the first column is 1, the second is 2, ... |
| SQLType | the column's SQL type |
|---|---|

##### Throws

| [SQLException](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/SQLException.html) | if a database access error occurs |
|---|---|

##### See Also

- `https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/Types.html`

#### public abstract void
**setColumnTypeName**
(int columnIndex, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) typeName)

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

##### Parameters

| columnIndex | the first column is 1, the second is 2, ... |
| typeName | data source specific type name. |
|---|---|

##### Throws

| [SQLException](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/SQLException.html) | if a database access error occurs |
|---|---|

#### public abstract void
**setCurrency**
(int columnIndex, boolean property)

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

##### Parameters

| columnIndex | the first column is 1, the second is 2, ... |
| property | `true` if the column is a cash value; `false` if it is not |
|---|---|

##### Throws

| [SQLException](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/SQLException.html) | if a database access error occurs |
|---|---|

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

##### Parameters

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

##### Throws

| [SQLException](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/SQLException.html) | if a database access error occurs |
|---|---|

#### public abstract void
**setPrecision**
(int columnIndex, int precision)

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

##### Parameters

| columnIndex | the first column is 1, the second is 2, ... |
| precision | the total number of decimal digits |
|---|---|

##### Throws

| [SQLException](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/SQLException.html) | if a database access error occurs |
|---|---|

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

##### Parameters

| columnIndex | the first column is 1, the second is 2, ... |
| scale | the number of digits to right of decimal point |
|---|---|

##### Throws

| [SQLException](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/SQLException.html) | if a database access error occurs |
|---|---|

#### public abstract void
**setSchemaName**
(int columnIndex, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) schemaName)

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

##### Parameters

| columnIndex | the first column is 1, the second is 2, ... |
| schemaName | the schema name |
|---|---|

##### Throws

| [SQLException](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/SQLException.html) | if a database access error occurs |
|---|---|

#### public abstract void
**setSearchable**
(int columnIndex, boolean property)

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

##### Parameters

| columnIndex | the first column is 1, the second is 2, ... |
| property | `true` if the column can be used in a `WHERE` clause; `false` if it cannot |
|---|---|

##### Throws

| [SQLException](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/SQLException.html) | if a database access error occurs |
|---|---|

#### public abstract void
**setSigned**
(int columnIndex, boolean property)

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

##### Parameters

| columnIndex | the first column is 1, the second is 2, ... |
| property | `true` if the column is a signed number; `false` if it is not |
|---|---|

##### Throws

| [SQLException](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/SQLException.html) | if a database access error occurs |
|---|---|

#### public abstract void
**setTableName**
(int columnIndex, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) tableName)

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

##### Parameters

| columnIndex | the first column is 1, the second is 2, ... |
| tableName | the column's table name |
|---|---|

##### Throws

| [SQLException](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/SQLException.html) | if a database access error occurs |
|---|---|