public interface RowSetMetaData extends ResultSetMetaData
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.
columnNoNulls, columnNullable, columnNullableUnknown
Modifier and Type | Method and Description |
---|---|
void |
setAutoIncrement(int columnIndex,
boolean autoIncrement)
Sets automatic numbering for a specified column in the
RowSet . |
void |
setCaseSensitive(int columnIndex,
boolean caseSensitive)
Sets the case sensitive property for a specified column in the
RowSet . |
void |
setCatalogName(int columnIndex,
String catalogName)
Sets the catalog name for a specified column in the
RowSet . |
void |
setColumnCount(int columnCount)
Sets the number of columns contained in the row set.
|
void |
setColumnDisplaySize(int columnIndex,
int displaySize)
Sets the normal maximum width in characters for a specified column in the
RowSet . |
void |
setColumnLabel(int columnIndex,
String theLabel)
Sets the suggested name as label for the column contained in the
RowSet . |
void |
setColumnName(int columnIndex,
String theColumnName)
Sets the column name for a specified column in the
RowSet . |
void |
setColumnType(int columnIndex,
int theSQLType)
Sets the SQL type for a specified column in the
RowSet . |
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. |
void |
setCurrency(int columnIndex,
boolean isCurrency)
Sets whether a specified column is a currency value.
|
void |
setNullable(int columnIndex,
int nullability)
Sets whether a specified column can contain SQL
NULL values. |
void |
setPrecision(int columnIndex,
int thePrecision)
Sets the number of decimal digits for a specified column in the
RowSet . |
void |
setScale(int columnIndex,
int theScale)
Declares how many decimal digits there should be after a decimal point
for the column specified by
columnIndex . |
void |
setSchemaName(int columnIndex,
String theSchemaName)
Sets the schema name for a specified column in the
RowSet . |
void |
setSearchable(int columnIndex,
boolean isSearchable)
Sets whether a specified column can be used in a search involving a
WHERE clause. |
void |
setSigned(int columnIndex,
boolean isSigned)
Sets if a specified column can contain signed numbers.
|
void |
setTableName(int columnIndex,
String theTableName)
Sets the table name for a specified column in the
RowSet . |
getCatalogName, getColumnClassName, getColumnCount, getColumnDisplaySize, getColumnLabel, getColumnName, getColumnType, getColumnTypeName, getPrecision, getScale, getSchemaName, getTableName, isAutoIncrement, isCaseSensitive, isCurrency, isDefinitelyWritable, isNullable, isReadOnly, isSearchable, isSigned, isWritable
isWrapperFor, unwrap
void setAutoIncrement(int columnIndex, boolean autoIncrement) throws SQLException
RowSet
. If
automatic numbering is on, the column is read-only. The default value for
the auto increment parameter is false
.columnIndex
- the index number for the column; the first column's index is
1.autoIncrement
- true
to set automatic numbering on, false
to
turn it off (default).SQLException
- if a problem occurs accessing the database.void setCaseSensitive(int columnIndex, boolean caseSensitive) throws SQLException
RowSet
. The default is that the column is not case sensitive.columnIndex
- the index number for the column; the first column's index is
1.caseSensitive
- true
to make the column case sensitive, false
to make it case insensitive (default).SQLException
- if a problem occurs accessing the database.void setCatalogName(int columnIndex, String catalogName) throws SQLException
RowSet
.columnIndex
- the index number for the column; the first column's index is
1.catalogName
- the new catalog's name.SQLException
- if a problem occurs accessing the database.void setColumnCount(int columnCount) throws SQLException
columnCount
- the number of columns contained in the RowSet
.SQLException
- if a problem occurs accessing the database.void setColumnDisplaySize(int columnIndex, int displaySize) throws SQLException
RowSet
.columnIndex
- the index number for the column; the first column's index is
1.displaySize
- the normal maximum column width in characters.SQLException
- if a problem occurs accessing the database.void setColumnLabel(int columnIndex, String theLabel) throws SQLException
RowSet
. The label is an alias for printing and displaying purposes.columnIndex
- the index number for the column; the first column's index is
1.theLabel
- the alias name for the column.SQLException
- if a problem occurs accessing the database.void setColumnName(int columnIndex, String theColumnName) throws SQLException
RowSet
.columnIndex
- the index number for the column; the first column's index is
1.theColumnName
- the column's label.SQLException
- if a problem occurs accessing the database.void setColumnType(int columnIndex, int theSQLType) throws SQLException
RowSet
.columnIndex
- the index number for the column; the first column's index is
1.theSQLType
- the SQL Type, as defined by java.sql.Types
.SQLException
- if a problem occurs accessing the database.void setColumnTypeName(int columnIndex, String theTypeName) throws SQLException
RowSet
, where
the data type is specific to the data source.columnIndex
- the index number for the column; the first column's index is
1.theTypeName
- the SQL type name for the column.SQLException
- if a problem occurs accessing the database.void setCurrency(int columnIndex, boolean isCurrency) throws SQLException
false
.columnIndex
- the index number for the column; the first column's index is
1.isCurrency
- true
if the column should be treated as a currency
value, false
if it should not be treated as a currency
value (default).SQLException
- if a problem occurs accessing the database.void setNullable(int columnIndex, int nullability) throws SQLException
NULL
values.columnIndex
- the index number for the column; the first column's index is
1.nullability
- an integer which is one of the following values:
ResultSetMetaData.columnNoNulls
ResultSetMetaData.columnNullable
ResultSetMetaData.columnNullableUnknown
The default value is ResultSetMetaData.columnNullableUnknown
.
SQLException
- if a problem occurs accessing the database.void setPrecision(int columnIndex, int thePrecision) throws SQLException
RowSet
.columnIndex
- the index number for the column; the first column's index is
1.thePrecision
- the number of decimal digits.SQLException
- if a problem occurs accessing the database.void setScale(int columnIndex, int theScale) throws SQLException
columnIndex
.columnIndex
- the index number for the column; the first column's index is
1.theScale
- the number of digits after the decimal point.SQLException
- if a problem occurs accessing the database.void setSchemaName(int columnIndex, String theSchemaName) throws SQLException
RowSet
.columnIndex
- the index number for the column; the first column's index is
1.theSchemaName
- a String
containing the schema name.SQLException
- if a problem occurs accessing the database.void setSearchable(int columnIndex, boolean isSearchable) throws SQLException
WHERE
clause. The default value is false
.columnIndex
- the index number for the column; the first column's index is
1.isSearchable
- true
of the column can be used in a WHERE
clause search, false
otherwise.SQLException
- if a problem occurs accessing the database.void setSigned(int columnIndex, boolean isSigned) throws SQLException
columnIndex
- the index number for the column; the first column's index is
1.isSigned
- true
if the column can contain signed numbers, false
otherwise.SQLException
- if a problem occurs accessing the database.void setTableName(int columnIndex, String theTableName) throws SQLException
RowSet
.columnIndex
- the index number for the column; the first column's index is
1.theTableName
- the table name for the column.SQLException
- if a problem occurs accessing the database.