Skip to content

Most visited

Recently visited

navigation
Added in API level 1

RowSetMetaData

public interface RowSetMetaData
implements ResultSetMetaData

javax.sql.RowSetMetaData


An interface which provides facilities for getting information about the columns in a RowSet.

RowSetMetaData extends ResultSetMetaData, adding new operations for carrying out value sets.

Application code would not normally call this interface directly. It would be called internally when RowSet.execute is called.

See also:

Summary

Inherited constants

From interface java.sql.ResultSetMetaData

Public methods

abstract void setAutoIncrement(int columnIndex, boolean autoIncrement)

Sets automatic numbering for a specified column in the RowSet.

abstract void setCaseSensitive(int columnIndex, boolean caseSensitive)

Sets the case sensitive property for a specified column in the RowSet.

abstract void setCatalogName(int columnIndex, String catalogName)

Sets the catalog name for a specified column in the RowSet.

abstract void setColumnCount(int columnCount)

Sets the number of columns contained in the row set.

abstract void setColumnDisplaySize(int columnIndex, int displaySize)

Sets the normal maximum width in characters for a specified column in the RowSet.

abstract void setColumnLabel(int columnIndex, String theLabel)

Sets the suggested name as label for the column contained in the RowSet.

abstract void setColumnName(int columnIndex, String theColumnName)

Sets the column name for a specified column in the RowSet.

abstract void setColumnType(int columnIndex, int theSQLType)

Sets the SQL type for a specified column in the RowSet.

abstract void setColumnTypeName(int columnIndex, String theTypeName)

Sets the type name for a specified column in the RowSet, where the data type is specific to the data source.

abstract void setCurrency(int columnIndex, boolean isCurrency)

Sets whether a specified column is a currency value.

abstract void setNullable(int columnIndex, int nullability)

Sets whether a specified column can contain SQL NULL values.

abstract void setPrecision(int columnIndex, int thePrecision)

Sets the number of decimal digits for a specified column in the RowSet.

abstract void setScale(int columnIndex, int theScale)

Declares how many decimal digits there should be after a decimal point for the column specified by columnIndex.

abstract void setSchemaName(int columnIndex, String theSchemaName)

Sets the schema name for a specified column in the RowSet.

abstract void setSearchable(int columnIndex, boolean isSearchable)

Sets whether a specified column can be used in a search involving a WHERE clause.

abstract void setSigned(int columnIndex, boolean isSigned)

Sets if a specified column can contain signed numbers.

abstract void setTableName(int columnIndex, String theTableName)

Sets the table name for a specified column in the RowSet.

Inherited methods

From interface java.sql.ResultSetMetaData
From interface java.sql.Wrapper

Public methods

setAutoIncrement

Added in API level 1
void setAutoIncrement (int columnIndex, 
                boolean autoIncrement)

Sets automatic numbering for a specified column in the RowSet. If automatic numbering is on, the column is read-only. The default value for the auto increment parameter is false.

Parameters
columnIndex int: the index number for the column; the first column's index is 1.
autoIncrement boolean: true to set automatic numbering on, false to turn it off (default).
Throws
SQLException if a problem occurs accessing the database.

setCaseSensitive

Added in API level 1
void setCaseSensitive (int columnIndex, 
                boolean caseSensitive)

Sets the case sensitive property for a specified column in the RowSet. The default is that the column is not case sensitive.

Parameters
columnIndex int: the index number for the column; the first column's index is 1.
caseSensitive boolean: true to make the column case sensitive, false to make it case insensitive (default).
Throws
SQLException if a problem occurs accessing the database.

setCatalogName

Added in API level 1
void setCatalogName (int columnIndex, 
                String catalogName)

Sets the catalog name for a specified column in the RowSet.

Parameters
columnIndex int: the index number for the column; the first column's index is 1.
catalogName String: the new catalog's name.
Throws
SQLException if a problem occurs accessing the database.

setColumnCount

Added in API level 1
void setColumnCount (int columnCount)

Sets the number of columns contained in the row set.

Parameters
columnCount int: the number of columns contained in the RowSet.
Throws
SQLException if a problem occurs accessing the database.

setColumnDisplaySize

Added in API level 1
void setColumnDisplaySize (int columnIndex, 
                int displaySize)

Sets the normal maximum width in characters for a specified column in the RowSet.

Parameters
columnIndex int: the index number for the column; the first column's index is 1.
displaySize int: the normal maximum column width in characters.
Throws
SQLException if a problem occurs accessing the database.

setColumnLabel

Added in API level 1
void setColumnLabel (int columnIndex, 
                String theLabel)

Sets the suggested name as label for the column contained in the RowSet. The label is an alias for printing and displaying purposes.

Parameters
columnIndex int: the index number for the column; the first column's index is 1.
theLabel String: the alias name for the column.
Throws
SQLException if a problem occurs accessing the database.

setColumnName

Added in API level 1
void setColumnName (int columnIndex, 
                String theColumnName)

Sets the column name for a specified column in the RowSet.

Parameters
columnIndex int: the index number for the column; the first column's index is 1.
theColumnName String: the column's label.
Throws
SQLException if a problem occurs accessing the database.

setColumnType

Added in API level 1
void setColumnType (int columnIndex, 
                int theSQLType)

Sets the SQL type for a specified column in the RowSet.

Parameters
columnIndex int: the index number for the column; the first column's index is 1.
theSQLType int: the SQL Type, as defined by java.sql.Types.
Throws
SQLException if a problem occurs accessing the database.

setColumnTypeName

Added in API level 1
void setColumnTypeName (int columnIndex, 
                String theTypeName)

Sets the type name for a specified column in the RowSet, where the data type is specific to the data source.

Parameters
columnIndex int: the index number for the column; the first column's index is 1.
theTypeName String: the SQL type name for the column.
Throws
SQLException if a problem occurs accessing the database.

setCurrency

Added in API level 1
void setCurrency (int columnIndex, 
                boolean isCurrency)

Sets whether a specified column is a currency value. The default value is false.

Parameters
columnIndex int: the index number for the column; the first column's index is 1.
isCurrency boolean: true if the column should be treated as a currency value, false if it should not be treated as a currency value (default).
Throws
SQLException if a problem occurs accessing the database.

setNullable

Added in API level 1
void setNullable (int columnIndex, 
                int nullability)

Sets whether a specified column can contain SQL NULL values.

Parameters
columnIndex int: the index number for the column; the first column's index is 1.
nullability int: an integer which is one of the following values:
  • ResultSetMetaData.columnNoNulls
  • ResultSetMetaData.columnNullable
  • ResultSetMetaData.columnNullableUnknown

The default value is ResultSetMetaData.columnNullableUnknown.

Throws
SQLException if a problem occurs accessing the database.

setPrecision

Added in API level 1
void setPrecision (int columnIndex, 
                int thePrecision)

Sets the number of decimal digits for a specified column in the RowSet.

Parameters
columnIndex int: the index number for the column; the first column's index is 1.
thePrecision int: the number of decimal digits.
Throws
SQLException if a problem occurs accessing the database.

setScale

Added in API level 1
void setScale (int columnIndex, 
                int theScale)

Declares how many decimal digits there should be after a decimal point for the column specified by columnIndex.

Parameters
columnIndex int: the index number for the column; the first column's index is 1.
theScale int: the number of digits after the decimal point.
Throws
SQLException if a problem occurs accessing the database.

setSchemaName

Added in API level 1
void setSchemaName (int columnIndex, 
                String theSchemaName)

Sets the schema name for a specified column in the RowSet.

Parameters
columnIndex int: the index number for the column; the first column's index is 1.
theSchemaName String: a String containing the schema name.
Throws
SQLException if a problem occurs accessing the database.

setSearchable

Added in API level 1
void setSearchable (int columnIndex, 
                boolean isSearchable)

Sets whether a specified column can be used in a search involving a WHERE clause. The default value is false.

Parameters
columnIndex int: the index number for the column; the first column's index is 1.
isSearchable boolean: true of the column can be used in a WHERE clause search, false otherwise.
Throws
SQLException if a problem occurs accessing the database.

setSigned

Added in API level 1
void setSigned (int columnIndex, 
                boolean isSigned)

Sets if a specified column can contain signed numbers.

Parameters
columnIndex int: the index number for the column; the first column's index is 1.
isSigned boolean: true if the column can contain signed numbers, false otherwise.
Throws
SQLException if a problem occurs accessing the database.

setTableName

Added in API level 1
void setTableName (int columnIndex, 
                String theTableName)

Sets the table name for a specified column in the RowSet.

Parameters
columnIndex int: the index number for the column; the first column's index is 1.
theTableName String: the table name for the column.
Throws
SQLException if a problem occurs accessing the database.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.