ResultSetMetaData
, Wrapper
RowSetMetaDataImpl
public interface RowSetMetaData extends ResultSetMetaData
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.
columnNoNulls, columnNullable, columnNullableUnknown
Modifier and Type | Method | Description |
---|---|---|
void |
setAutoIncrement |
Sets whether the designated column is automatically numbered, The default is for a RowSet object's columns not to be automatically numbered. |
void |
setCaseSensitive |
Sets whether the designated column is case sensitive. |
void |
setCatalogName |
Sets the designated column's table's catalog name, if any, to the given String . |
void |
setColumnCount |
Sets the number of columns in the RowSet object to the given number. |
void |
setColumnDisplaySize |
Sets the designated column's normal maximum width in chars to the given int . |
void |
setColumnLabel |
Sets the suggested column title for use in printouts and displays, if any, to the given String . |
void |
setColumnName |
Sets the name of the designated column to the given String . |
void |
setColumnType |
Sets the designated column's SQL type to the one given. |
void |
setColumnTypeName |
Sets the designated column's type name that is specific to the data source, if any, to the given String . |
void |
setCurrency |
Sets whether the designated column is a cash value. |
void |
setNullable |
Sets whether the designated column's value can be set to NULL . |
void |
setPrecision |
Sets the designated column's number of decimal digits to the given int . |
void |
setScale |
Sets the designated column's number of digits to the right of the decimal point to the given int . |
void |
setSchemaName |
Sets the name of the designated column's table's schema, if any, to the given String . |
void |
setSearchable |
Sets whether the designated column can be used in a where clause. |
void |
setSigned |
Sets whether the designated column is a signed number. |
void |
setTableName |
Sets the designated column's table name, if any, to the given String . |
getCatalogName, getColumnClassName, getColumnCount, getColumnDisplaySize, getColumnLabel, getColumnName, getColumnType, getColumnTypeName, getPrecision, getScale, getSchemaName, getTableName, isAutoIncrement, isCaseSensitive, isCurrency, isDefinitelyWritable, isNullable, isReadOnly, isSearchable, isSigned, isWritable
isWrapperFor, unwrap
void setColumnCount(int columnCount) throws SQLException
RowSet
object to the given number.columnCount
- the number of columns in the RowSet
objectSQLException
- if a database access error occursvoid setAutoIncrement(int columnIndex, boolean property) throws SQLException
RowSet
object's columns not to be automatically numbered.columnIndex
- the first column is 1, the second is 2, ...property
- true
if the column is automatically numbered; false
if it is notSQLException
- if a database access error occursvoid setCaseSensitive(int columnIndex, boolean property) throws SQLException
false
.columnIndex
- the first column is 1, the second is 2, ...property
- true
if the column is case sensitive; false
if it is notSQLException
- if a database access error occursvoid setSearchable(int columnIndex, boolean property) throws SQLException
false
.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 cannotSQLException
- if a database access error occursvoid setCurrency(int columnIndex, boolean property) throws SQLException
false
.columnIndex
- the first column is 1, the second is 2, ...property
- true
if the column is a cash value; false
if it is notSQLException
- if a database access error occursvoid setNullable(int columnIndex, int property) throws SQLException
NULL
. The default is ResultSetMetaData.columnNullableUnknown
columnIndex
- the first column is 1, the second is 2, ...property
- one of the following constants: ResultSetMetaData.columnNoNulls
, ResultSetMetaData.columnNullable
, or ResultSetMetaData.columnNullableUnknown
SQLException
- if a database access error occursvoid setSigned(int columnIndex, boolean property) throws SQLException
false
.columnIndex
- the first column is 1, the second is 2, ...property
- true
if the column is a signed number; false
if it is notSQLException
- if a database access error occursvoid setColumnDisplaySize(int columnIndex, int size) throws SQLException
int
.columnIndex
- the first column is 1, the second is 2, ...size
- the normal maximum number of characters for the designated columnSQLException
- if a database access error occursvoid setColumnLabel(int columnIndex, String label) throws SQLException
String
.columnIndex
- the first column is 1, the second is 2, ...label
- the column titleSQLException
- if a database access error occursvoid setColumnName(int columnIndex, String columnName) throws SQLException
String
.columnIndex
- the first column is 1, the second is 2, ...columnName
- the designated column's nameSQLException
- if a database access error occursvoid setSchemaName(int columnIndex, String schemaName) throws SQLException
String
.columnIndex
- the first column is 1, the second is 2, ...schemaName
- the schema nameSQLException
- if a database access error occursvoid setPrecision(int columnIndex, int precision) throws SQLException
int
.columnIndex
- the first column is 1, the second is 2, ...precision
- the total number of decimal digitsSQLException
- if a database access error occursvoid setScale(int columnIndex, int scale) throws SQLException
int
.columnIndex
- the first column is 1, the second is 2, ...scale
- the number of digits to right of decimal pointSQLException
- if a database access error occursvoid setTableName(int columnIndex, String tableName) throws SQLException
String
.columnIndex
- the first column is 1, the second is 2, ...tableName
- the column's table nameSQLException
- if a database access error occursvoid setCatalogName(int columnIndex, String catalogName) throws SQLException
String
.columnIndex
- the first column is 1, the second is 2, ...catalogName
- the column's catalog nameSQLException
- if a database access error occursvoid setColumnType(int columnIndex, int SQLType) throws SQLException
columnIndex
- the first column is 1, the second is 2, ...SQLType
- the column's SQL typeSQLException
- if a database access error occursvoid setColumnTypeName(int columnIndex, String typeName) throws SQLException
String
.columnIndex
- the first column is 1, the second is 2, ...typeName
- data source specific type name.SQLException
- if a database access error occurs
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.sql/javax/sql/RowSetMetaData.html