| javax.sql.RowSetMetaData
All known Subclasses: javax.sql.rowset.RowSetMetaDataImpl,
RowSetMetaData | public interface RowSetMetaData extends ResultSetMetaData(Code) | | 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.
|
Method Summary | |
public void | setAutoIncrement(int columnIndex, boolean autoIncrement) Sets automatic numbering for a specified column in the RowSet. | public void | setCaseSensitive(int columnIndex, boolean caseSensitive) Sets the case sensitive property for a specified column in the RowSet. | public void | setCatalogName(int columnIndex, String catalogName) Sets the Catalog Name for a specified column in the RowSet. | public void | setColumnCount(int columnCount) Sets the number of columns in the Row Set. | public void | setColumnDisplaySize(int columnIndex, int displaySize) Sets the normal maximum width in characters for a specified column in the
RowSet. | public void | setColumnLabel(int columnIndex, String theLabel) | public void | setColumnName(int columnIndex, String theColumnName) Sets the suggested column label for a specified column in the RowSet. | public void | setColumnType(int columnIndex, int theSQLType) | public 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 datasource. | public void | setCurrency(int columnIndex, boolean isCurrency) Sets whether a specified column is a currency value. | public void | setNullable(int columnIndex, int nullability) Sets whether a specified column can contain SQL NULL values. | public void | setPrecision(int columnIndex, int thePrecision) Sets the number of decimal digits for a specified column in the RowSet. | public void | setScale(int columnIndex, int theScale) For the column specified by columnIndex declares how many
digits there should be after a decimal point. | public void | setSchemaName(int columnIndex, String theSchemaName) | public void | setSearchable(int columnIndex, boolean isSearchable) Sets whether a specified column can be used in a search involving a WHERE
clause. | public void | setSigned(int columnIndex, boolean isSigned) | public void | setTableName(int columnIndex, String theTableName) |
setAutoIncrement | public void setAutoIncrement(int columnIndex, boolean autoIncrement) throws SQLException(Code) | | Sets automatic numbering for a specified column in the RowSet. If
automatic numbering is on, the column is read only. The default value is
for automatic numbering to be off.
Parameters: columnIndex - the index number for the column, where the first column hasindex 1. Parameters: autoIncrement - true to set automatic numbering on, false to turn it off. throws: SQLException - if a problem occurs accessing the database |
setCaseSensitive | public void setCaseSensitive(int columnIndex, boolean caseSensitive) throws SQLException(Code) | | Sets the case sensitive property for a specified column in the RowSet.
The default is that the column is not case sensitive.
Parameters: columnIndex - the index number for the column, where the first column hasindex 1. Parameters: caseSensitive - true to make the column case sensitive, false to make it notcase sensitive. throws: SQLException - if a problem occurs accessing the database |
setCatalogName | public void setCatalogName(int columnIndex, String catalogName) throws SQLException(Code) | | Sets the Catalog Name for a specified column in the RowSet.
Parameters: columnIndex - the index number for the column, where the first column hasindex 1. Parameters: catalogName - a string containing the new Catalog Name throws: SQLException - if a problem occurs accessing the database |
setColumnCount | public void setColumnCount(int columnCount) throws SQLException(Code) | | Sets the number of columns in the Row Set.
Parameters: columnCount - an integer containing the number of columns in the RowSet. throws: SQLException - if a problem occurs accessing the database |
setColumnDisplaySize | public void setColumnDisplaySize(int columnIndex, int displaySize) throws SQLException(Code) | | Sets the normal maximum width in characters for a specified column in the
RowSet.
Parameters: columnIndex - the index number for the column, where the first column hasindex 1. Parameters: displaySize - an integer with the normal maximum column width in characters throws: SQLException - if a problem occurs accessing the database |
setColumnLabel | public void setColumnLabel(int columnIndex, String theLabel) throws SQLException(Code) | | Parameters: columnIndex - the index number for the column, where the first column hasindex 1. Parameters: theLabel - throws: SQLException - if a problem occurs accessing the database |
setColumnName | public void setColumnName(int columnIndex, String theColumnName) throws SQLException(Code) | | Sets the suggested column label for a specified column in the RowSet.
This label is typically used in displaying or printing the column.
Parameters: columnIndex - the index number for the column, where the first column hasindex 1. Parameters: theColumnName - a string containing the column label throws: SQLException - if a problem occurs accessing the database |
setColumnType | public void setColumnType(int columnIndex, int theSQLType) throws SQLException(Code) | | Sets the SQL type for a specified column in the RowSet
Parameters: columnIndex - the index number for the column, where the first column hasindex 1. Parameters: theSQLType - an integer containing the SQL Type, as defined byjava.sql.Types. throws: SQLException - if a problem occurs accessing the database |
setColumnTypeName | public void setColumnTypeName(int columnIndex, String theTypeName) throws SQLException(Code) | | Sets the Type Name for a specified column in the RowSet, where the data
type is specific to the datasource.
Parameters: columnIndex - the index number for the column, where the first column hasindex 1. Parameters: theTypeName - a string containing the Type Name for the column throws: SQLException - if a problem occurs accessing the database |
setCurrency | public void setCurrency(int columnIndex, boolean isCurrency) throws SQLException(Code) | | Sets whether a specified column is a currency value.
Parameters: columnIndex - the index number for the column, where the first column hasindex 1. Parameters: isCurrency - true if the column should be treated as a currency value,false if it should not be treated as a currency value. throws: SQLException - if a problem occurs accessing the database |
setNullable | public void setNullable(int columnIndex, int nullability) throws SQLException(Code) | | Sets whether a specified column can contain SQL NULL values.
Parameters: columnIndex - the index number for the column, where the first column hasindex 1. Parameters: nullability - an integer which is one of the following values:ResultSetMetaData.columnNoNulls,ResultSetMetaData.columnNullable, orResultSetMetaData.columnNullableUnknownThe default value is ResultSetMetaData.columnNullableUnknown throws: SQLException - if a problem occurs accessing the database |
setPrecision | public void setPrecision(int columnIndex, int thePrecision) throws SQLException(Code) | | Sets the number of decimal digits for a specified column in the RowSet.
Parameters: columnIndex - the index number for the column, where the first column hasindex 1. Parameters: thePrecision - an integer containing the number of decimal digits throws: SQLException - if a problem occurs accessing the database |
setScale | public void setScale(int columnIndex, int theScale) throws SQLException(Code) | | For the column specified by columnIndex declares how many
digits there should be after a decimal point.
Parameters: columnIndex - the index number for the column, where the first column hasindex 1. Parameters: theScale - an integer containing the number of digits after the decimalpoint throws: SQLException - if a problem occurs accessing the database |
setSchemaName | public void setSchemaName(int columnIndex, String theSchemaName) throws SQLException(Code) | | Sets the Schema Name for a specified column in the RowSet
Parameters: columnIndex - the index number for the column, where the first column hasindex 1. Parameters: theSchemaName - a String containing the schema name throws: SQLException - if a problem occurs accessing the database |
setSearchable | public void setSearchable(int columnIndex, boolean isSearchable) throws SQLException(Code) | | Sets whether a specified column can be used in a search involving a WHERE
clause. The default value is false.
Parameters: columnIndex - the index number for the column, where the first column hasindex 1. Parameters: isSearchable - true of the column can be used in a WHERE clause search, falseotherwise. throws: SQLException - if a problem occurs accessing the database |
setSigned | public void setSigned(int columnIndex, boolean isSigned) throws SQLException(Code) | | Sets if a specified column can contain signed numbers
Parameters: columnIndex - the index number for the column, where the first column hasindex 1. Parameters: isSigned - true if the column can contain signed numbers, false otherwise throws: SQLException - if a problem occurs accessing the database |
setTableName | public void setTableName(int columnIndex, String theTableName) throws SQLException(Code) | | Sets the Table Name for a specified column in the RowSet
Parameters: columnIndex - the index number for the column, where the first column hasindex 1. Parameters: theTableName - a String containing the Table Name for the column throws: SQLException - if a problem occurs accessing the database |
|
|