public final class JdbcResultSetMetaData
extends org.h2.message.TraceObject
implements java.sql.ResultSetMetaData
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCatalogName(int column)
Returns the catalog name.
|
java.lang.String |
getColumnClassName(int column)
Gets the Java class name of the object that will be returned
if ResultSet.getObject is called.
|
int |
getColumnCount()
Returns the number of columns.
|
int |
getColumnDisplaySize(int column)
Gets the maximum display size for this column.
|
java.lang.String |
getColumnLabel(int column)
Returns the column label.
|
java.lang.String |
getColumnName(int column)
Returns the column name.
|
int |
getColumnType(int column)
Returns the data type of a column.
|
java.lang.String |
getColumnTypeName(int column)
Returns the data type name of a column.
|
int |
getPrecision(int column)
Gets the precision for this column.
|
int |
getScale(int column)
Gets the scale for this column.
|
java.lang.String |
getSchemaName(int column)
Returns the schema name.
|
java.lang.String |
getTableName(int column)
Returns the table name.
|
boolean |
isAutoIncrement(int column)
Checks if this an autoincrement column.
|
boolean |
isCaseSensitive(int column)
Checks if this column is case sensitive.
|
boolean |
isCurrency(int column)
Checks if this is a currency column.
|
boolean |
isDefinitelyWritable(int column)
Checks whether a write on this column will definitely succeed.
|
int |
isNullable(int column)
Checks if this is nullable column.
|
boolean |
isReadOnly(int column)
Checks if this column is read only.
|
boolean |
isSearchable(int column)
Checks if this column is searchable.
|
boolean |
isSigned(int column)
Checks if this column is signed.
|
boolean |
isWrapperFor(java.lang.Class<?> iface)
Checks if unwrap can return an object of this class.
|
boolean |
isWritable(int column)
Checks whether it is possible for a write on this column to succeed.
|
java.lang.String |
toString()
INTERNAL
|
<T> T |
unwrap(java.lang.Class<T> iface)
Return an object of this class if possible.
|
debugCode, debugCodeAssign, debugCodeCall, debugCodeCall, debugCodeCall, getNextId, getTraceId, getTraceObjectName, isDebugEnabled, isInfoEnabled, logAndConvert, quote, quoteArray, quoteBigDecimal, quoteBytes, quoteDate, quoteIntArray, quoteMap, quoteTime, quoteTimestamp, setTrace, unsupported
public int getColumnCount() throws java.sql.SQLException
getColumnCount
in interface java.sql.ResultSetMetaData
java.sql.SQLException
- if the result set is closed or invalidpublic java.lang.String getColumnLabel(int column) throws java.sql.SQLException
getColumnLabel
in interface java.sql.ResultSetMetaData
column
- the column index (1,2,...)java.sql.SQLException
- if the result set is closed or invalidpublic java.lang.String getColumnName(int column) throws java.sql.SQLException
getColumnName
in interface java.sql.ResultSetMetaData
column
- the column index (1,2,...)java.sql.SQLException
- if the result set is closed or invalidpublic int getColumnType(int column) throws java.sql.SQLException
getColumnType
in interface java.sql.ResultSetMetaData
column
- the column index (1,2,...)java.sql.SQLException
- if the result set is closed or invalidpublic java.lang.String getColumnTypeName(int column) throws java.sql.SQLException
getColumnTypeName
in interface java.sql.ResultSetMetaData
column
- the column index (1,2,...)java.sql.SQLException
- if the result set is closed or invalidpublic java.lang.String getSchemaName(int column) throws java.sql.SQLException
getSchemaName
in interface java.sql.ResultSetMetaData
column
- the column index (1,2,...)java.sql.SQLException
- if the result set is closed or invalidpublic java.lang.String getTableName(int column) throws java.sql.SQLException
getTableName
in interface java.sql.ResultSetMetaData
column
- the column index (1,2,...)java.sql.SQLException
- if the result set is closed or invalidpublic java.lang.String getCatalogName(int column) throws java.sql.SQLException
getCatalogName
in interface java.sql.ResultSetMetaData
column
- the column index (1,2,...)java.sql.SQLException
- if the result set is closed or invalidpublic boolean isAutoIncrement(int column) throws java.sql.SQLException
isAutoIncrement
in interface java.sql.ResultSetMetaData
column
- the column index (1,2,...)java.sql.SQLException
- if the result set is closed or invalidpublic boolean isCaseSensitive(int column) throws java.sql.SQLException
isCaseSensitive
in interface java.sql.ResultSetMetaData
column
- the column index (1,2,...)java.sql.SQLException
- if the result set is closed or invalidpublic boolean isSearchable(int column) throws java.sql.SQLException
isSearchable
in interface java.sql.ResultSetMetaData
column
- the column index (1,2,...)java.sql.SQLException
- if the result set is closed or invalidpublic boolean isCurrency(int column) throws java.sql.SQLException
isCurrency
in interface java.sql.ResultSetMetaData
column
- the column index (1,2,...)java.sql.SQLException
- if the result set is closed or invalidpublic int isNullable(int column) throws java.sql.SQLException
isNullable
in interface java.sql.ResultSetMetaData
column
- the column index (1,2,...)java.sql.SQLException
- if the result set is closed or invalidpublic boolean isSigned(int column) throws java.sql.SQLException
isSigned
in interface java.sql.ResultSetMetaData
column
- the column index (1,2,...)java.sql.SQLException
- if the result set is closed or invalidpublic boolean isReadOnly(int column) throws java.sql.SQLException
isReadOnly
in interface java.sql.ResultSetMetaData
column
- the column index (1,2,...)java.sql.SQLException
- if the result set is closed or invalidpublic boolean isWritable(int column) throws java.sql.SQLException
isWritable
in interface java.sql.ResultSetMetaData
column
- the column index (1,2,...)java.sql.SQLException
- if the result set is closed or invalidpublic boolean isDefinitelyWritable(int column) throws java.sql.SQLException
isDefinitelyWritable
in interface java.sql.ResultSetMetaData
column
- the column index (1,2,...)java.sql.SQLException
- if the result set is closed or invalidpublic java.lang.String getColumnClassName(int column) throws java.sql.SQLException
getColumnClassName
in interface java.sql.ResultSetMetaData
column
- the column index (1,2,...)java.sql.SQLException
- if the result set is closed or invalidpublic int getPrecision(int column) throws java.sql.SQLException
getPrecision
in interface java.sql.ResultSetMetaData
column
- the column index (1,2,...)java.sql.SQLException
- if the result set is closed or invalidpublic int getScale(int column) throws java.sql.SQLException
getScale
in interface java.sql.ResultSetMetaData
column
- the column index (1,2,...)java.sql.SQLException
- if the result set is closed or invalidpublic int getColumnDisplaySize(int column) throws java.sql.SQLException
getColumnDisplaySize
in interface java.sql.ResultSetMetaData
column
- the column index (1,2,...)java.sql.SQLException
- if the result set is closed or invalidpublic <T> T unwrap(java.lang.Class<T> iface) throws java.sql.SQLException
unwrap
in interface java.sql.Wrapper
iface
- the classjava.sql.SQLException
public boolean isWrapperFor(java.lang.Class<?> iface) throws java.sql.SQLException
isWrapperFor
in interface java.sql.Wrapper
iface
- the classjava.sql.SQLException
public java.lang.String toString()
toString
in class java.lang.Object