javax.sql
public
interface
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.
Summary
Public Methods
|
|
|
|
|
void |
setAutoIncrement(int columnIndex, boolean autoIncrement) |
|
|
|
|
|
void |
setCaseSensitive(int columnIndex, boolean caseSensitive) |
|
|
|
|
|
void |
setCatalogName(int columnIndex, String catalogName) |
|
|
|
|
|
void |
setColumnCount(int columnCount) |
|
|
|
|
|
void |
setColumnDisplaySize(int columnIndex, int displaySize) |
|
|
|
|
|
void |
setColumnLabel(int columnIndex, String theLabel) |
|
|
|
|
|
void |
setColumnName(int columnIndex, String theColumnName) |
|
|
|
|
|
void |
setColumnType(int columnIndex, int theSQLType) |
|
|
|
|
|
void |
setColumnTypeName(int columnIndex, String theTypeName) |
|
|
|
|
|
void |
setCurrency(int columnIndex, boolean isCurrency) |
|
|
|
|
|
void |
setNullable(int columnIndex, int nullability) |
|
|
|
|
|
void |
setPrecision(int columnIndex, int thePrecision) |
|
|
|
|
|
void |
setScale(int columnIndex, int theScale) |
|
|
|
|
|
void |
setSchemaName(int columnIndex, String theSchemaName) |
|
|
|
|
|
void |
setSearchable(int columnIndex, boolean isSearchable) |
|
|
|
|
|
void |
setSigned(int columnIndex, boolean isSigned) |
|
|
|
|
|
void |
setTableName(int columnIndex, String theTableName) |
Details
Public Methods
public
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 is
for automatic numbering to be off.
Parameters
columnIndex
| the index number for the column, where the first column has
index 1. |
autoIncrement
| true to set automatic numbering on, false to turn it off. |
public
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
| the index number for the column, where the first column has
index 1. |
caseSensitive
| true to make the column case sensitive, false to make it not
case sensitive. |
public
void
setCatalogName(int columnIndex, String catalogName)
Sets the Catalog Name for a specified column in the RowSet.
Parameters
columnIndex
| the index number for the column, where the first column has
index 1. |
catalogName
| a string containing the new Catalog Name |
public
void
setColumnCount(int columnCount)
Sets the number of columns in the Row Set.
Parameters
columnCount
| an integer containing the number of columns in the RowSet. |
public
void
setColumnDisplaySize(int columnIndex, int displaySize)
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 has
index 1. |
displaySize
| an integer with the normal maximum column width in characters |
public
void
setColumnLabel(int columnIndex, String theLabel)
Parameters
columnIndex
| the index number for the column, where the first column has
index 1. |
public
void
setColumnName(int columnIndex, String theColumnName)
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 has
index 1. |
theColumnName
| a string containing the column label |
public
void
setColumnType(int columnIndex, int theSQLType)
Sets the SQL type for a specified column in the RowSet
Parameters
columnIndex
| the index number for the column, where the first column has
index 1. |
theSQLType
| an integer containing the SQL Type, as defined by
java.sql.Types. |
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.
Parameters
columnIndex
| the index number for the column, where the first column has
index 1. |
theTypeName
| a string containing the Type Name for the column |
public
void
setCurrency(int columnIndex, boolean isCurrency)
Sets whether a specified column is a currency value.
Parameters
columnIndex
| the index number for the column, where the first column has
index 1. |
isCurrency
| true if the column should be treated as a currency value,
false if it should not be treated as a currency value. |
public
void
setNullable(int columnIndex, int nullability)
Sets whether a specified column can contain SQL NULL values.
Parameters
columnIndex
| the index number for the column, where the first column has
index 1. |
nullability
| an integer which is one of the following values:
ResultSetMetaData.columnNoNulls,
ResultSetMetaData.columnNullable, or
ResultSetMetaData.columnNullableUnknown
The default value is ResultSetMetaData.columnNullableUnknown |
public
void
setPrecision(int columnIndex, int thePrecision)
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 has
index 1. |
thePrecision
| an integer containing the number of decimal digits |
public
void
setScale(int columnIndex, int theScale)
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 has
index 1. |
theScale
| an integer containing the number of digits after the decimal
point |
public
void
setSchemaName(int columnIndex, String theSchemaName)
Sets the Schema Name for a specified column in the RowSet
Parameters
columnIndex
| the index number for the column, where the first column has
index 1. |
theSchemaName
| a String containing the schema name |
public
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
| the index number for the column, where the first column has
index 1. |
isSearchable
| true of the column can be used in a WHERE clause search, false
otherwise. |
public
void
setSigned(int columnIndex, boolean isSigned)
Sets if a specified column can contain signed numbers
Parameters
columnIndex
| the index number for the column, where the first column has
index 1. |
isSigned
| true if the column can contain signed numbers, false otherwise |
public
void
setTableName(int columnIndex, String theTableName)
Sets the Table Name for a specified column in the RowSet
Parameters
columnIndex
| the index number for the column, where the first column has
index 1. |
theTableName
| a String containing the Table Name for the column |