public class JDBCResultSetMetaData extends Object implements ResultSetMetaData
columnNoNulls, columnNullable, columnNullableUnknown| Constructor and Description |
|---|
JDBCResultSetMetaData(JDBCResultSet r) |
| Modifier and Type | Method and Description |
|---|---|
String |
getCatalogName(int column)
Returns the title of an indexed column's catalog.
|
String |
getColumnClassName(int column)
Returns the fully-qualified type of the class that is produced when
invoking
ResultSet.getObject to recover this column's value. |
int |
getColumnCount()
Returns number of columns contained in the associated result set.
|
int |
getColumnDisplaySize(int column)
Returns the indexed column's standard maximum width, expressed in number
of characters.
|
String |
getColumnLabel(int column)
Returns a recommended title for the indexed column, to be used when the
title needs to be displayed.
|
String |
getColumnName(int column)
Returns the title of the indexed column.
|
int |
getColumnType(int column)
Returns the type of the indexed column as SQL type code.
|
String |
getColumnTypeName(int column)
Returns the type name of the indexed column.
|
int |
getPrecision(int column)
Returns the decimal precision of the indexed column.
|
int |
getScale(int column)
Returns the number of digits to the right of the decimal point of the
indexed column.
|
String |
getSchemaName(int column)
Returns the name of the indexed columns schema.
|
String |
getTableName(int column)
Returns the title of the indexed columns table.
|
boolean |
isAutoIncrement(int column)
Returns an indication of whether the indexed column is automatically
incremented and is therefore read-only.
|
boolean |
isCaseSensitive(int column)
Returns an indication of whether the case of the indexed column is
important.
|
boolean |
isCurrency(int column)
Returns whether the indexed column contains a monetary amount.
|
boolean |
isDefinitelyWritable(int column)
Returns an indication of whether writing to the indexed column is
guaranteed to be successful.
|
int |
isNullable(int column)
Returns whether the indexed column is nullable.
|
boolean |
isReadOnly(int column)
Returns an indication of whether writing to the indexed column is
guaranteed to be unsuccessful.
|
boolean |
isSearchable(int column)
Returns an indication of whether the indexed column is searchable.
|
boolean |
isSigned(int column)
Returns an indication of whether the values contained in the indexed
column are signed.
|
boolean |
isWrapperFor(Class iface)
If the caller is a wrapper of the class or implements the given
interface, the methods return false and vice versa.
|
boolean |
isWritable(int column)
Returns an indication of whether writing to the indexed column is
possible.
|
<T> T |
unwrap(Class<T> iface)
Returns an object that implements the given interface.
|
public JDBCResultSetMetaData(JDBCResultSet r)
public String getCatalogName(int column) throws SQLException
ResultSetMetaDatagetCatalogName in interface ResultSetMetaDatacolumn - the column index, starting at 1.SQLException - if there is a database error.public String getColumnClassName(int column) throws SQLException
ResultSetMetaDataResultSet.getObject to recover this column's value.getColumnClassName in interface ResultSetMetaDatacolumn - the column index, starting at 1.SQLException - if there is a database error.ResultSet.getObject(int)public int getColumnCount()
throws SQLException
ResultSetMetaDatagetColumnCount in interface ResultSetMetaDataSQLException - if there is a database error.public int getColumnDisplaySize(int column)
throws SQLException
ResultSetMetaDatagetColumnDisplaySize in interface ResultSetMetaDatacolumn - the column index, starting at 1.SQLException - if there is a database error.public String getColumnLabel(int column) throws SQLException
ResultSetMetaDatagetColumnLabel in interface ResultSetMetaDatacolumn - the column index, starting at 1.SQLException - if there is a database error.public String getColumnName(int column) throws SQLException
ResultSetMetaDatagetColumnName in interface ResultSetMetaDatacolumn - the column index, starting at 1.SQLException - if there is a database error.public int getColumnType(int column)
throws SQLException
ResultSetMetaDatagetColumnType in interface ResultSetMetaDatacolumn - the column index, starting at 1.SQLException - if there is a database error.Typespublic String getColumnTypeName(int column) throws SQLException
ResultSetMetaDatagetColumnTypeName in interface ResultSetMetaDatacolumn - the column index, starting at 1.SQLException - if there is a database error.public int getPrecision(int column)
throws SQLException
ResultSetMetaDatagetPrecision in interface ResultSetMetaDatacolumn - the column index, starting at 1.SQLException - if there is a database error.public int getScale(int column)
throws SQLException
ResultSetMetaDatagetScale in interface ResultSetMetaDatacolumn - the column index, starting at 1.SQLException - if there is a database error.public String getSchemaName(int column) throws SQLException
ResultSetMetaDatagetSchemaName in interface ResultSetMetaDatacolumn - the column index, starting at 1.SQLException - if there is a database error.public String getTableName(int column) throws SQLException
ResultSetMetaDatagetTableName in interface ResultSetMetaDatacolumn - the column index, starting at 1.SQLException - if there is a database error.public boolean isAutoIncrement(int column)
throws SQLException
ResultSetMetaDataisAutoIncrement in interface ResultSetMetaDatacolumn - the column index, starting at 1.true if it is automatically numbered, false
otherwise.SQLException - if there is a database error.public boolean isCaseSensitive(int column)
throws SQLException
ResultSetMetaDataisCaseSensitive in interface ResultSetMetaDatacolumn - the column index, starting at 1.true if case matters, false otherwise.SQLException - if there is a database error.public boolean isCurrency(int column)
throws SQLException
ResultSetMetaDataisCurrency in interface ResultSetMetaDatacolumn - the column index, starting at 1.true if it is a monetary value, false otherwise.SQLException - if there is a database error.public boolean isDefinitelyWritable(int column)
throws SQLException
ResultSetMetaDataisDefinitelyWritable in interface ResultSetMetaDatacolumn - the column index, starting at 1.true if the write is guaranteed, false otherwise.SQLException - if there is a database error.public int isNullable(int column)
throws SQLException
ResultSetMetaDataisNullable in interface ResultSetMetaDatacolumn - the column index, starting at 1.true if it is nullable, false otherwise.SQLException - if there is a database error.public boolean isReadOnly(int column)
throws SQLException
ResultSetMetaDataisReadOnly in interface ResultSetMetaDatacolumn - the column index, starting at 1.true if the column is read-only, false otherwise.SQLException - if there is a database error.public boolean isSearchable(int column)
throws SQLException
ResultSetMetaDataisSearchable in interface ResultSetMetaDatacolumn - the column index, starting at 1.true if the indexed column is searchable, false
otherwise.SQLException - if there is a database error.public boolean isSigned(int column)
throws SQLException
ResultSetMetaDataisSigned in interface ResultSetMetaDatacolumn - the column index, starting at 1.true if they are signed, false otherwise.SQLException - if there is a database error.public boolean isWritable(int column)
throws SQLException
ResultSetMetaDataisWritable in interface ResultSetMetaDatacolumn - the column index, starting at 1.true if it is possible to write, false otherwise.SQLException - if there is a database error.public <T> T unwrap(Class<T> iface) throws SQLException
Wrapperunwrap in interface Wrapperiface - -
the class that defines the interfaceSQLException - -
if there is no object implementing the specific interfacepublic boolean isWrapperFor(Class iface) throws SQLException
WrapperisWrapperFor in interface Wrapperiface - -
the class that defines the interfaceSQLException - -
when an error occurs when judges the object