All Implemented Interfaces:
Wrapper
All Known Implementing Classes:
RowSetMetaDataImpl, RowSetMetaData
ResultSet
object.
The following code fragment creates the ResultSet
object rs,
creates the ResultSetMetaData
object rsmd, and uses rsmd
to find out how many columns rs has and whether the first column in rs
can be used in a WHERE
clause.
ResultSet rs = stmt.executeQuery("SELECT a, b, c FROM TABLE2"); ResultSetMetaData rsmd = rs.getMetaData(); int numberOfColumns = rsmd.getColumnCount(); boolean b = rsmd.isSearchable(1);
Field Summary | ||
---|---|---|
int | columnNoNulls | The constant indicating that a
column does not allow NULL values. |
int | columnNullable | The constant indicating that a
column allows NULL values. |
int | columnNullableUnknown | The constant indicating that the nullability of a column's values is unknown. |
Method from java.sql.ResultSetMetaData Summary: |
---|
getCatalogName, getColumnClassName, getColumnCount, getColumnDisplaySize, getColumnLabel, getColumnName, getColumnType, getColumnTypeName, getPrecision, getScale, getSchemaName, getTableName, isAutoIncrement, isCaseSensitive, isCurrency, isDefinitelyWritable, isNullable, isReadOnly, isSearchable, isSigned, isWritable |
Method from java.sql.ResultSetMetaData Detail: |
---|
|
Returns the fully-qualified name of the Java class whose instances
are manufactured if the method |
ResultSet object. |
|
AS
clause. If a SQL AS is not specified, the value returned from
getColumnLabel will be the same as the value returned by the
getColumnName method. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|