|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.h2.message.TraceObject
org.h2.jdbc.JdbcResultSetMetaData
public class JdbcResultSetMetaData
Represents the meta data for a ResultSet.
Field Summary |
---|
Fields inherited from class org.h2.message.TraceObject |
---|
ARRAY, BLOB, CALLABLE_STATEMENT, CLOB, CONNECTION, DATA_SOURCE, DATABASE_META_DATA, PARAMETER_META_DATA, PREPARED_STATEMENT, RESULT_SET, RESULT_SET_META_DATA, SAVEPOINT, SQL_EXCEPTION, STATEMENT, XA_DATA_SOURCE, XID |
Fields inherited from interface java.sql.ResultSetMetaData |
---|
columnNoNulls, columnNullable, columnNullableUnknown |
Method Summary | ||
---|---|---|
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)
[Not supported] 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 |
|
|
unwrap(java.lang.Class<T> iface)
[Not supported] Return an object of this class if possible. |
Methods inherited from class org.h2.message.TraceObject |
---|
debugCode, debugCodeAssign, debugCodeCall, debugCodeCall, debugCodeCall, getNextId, getTrace, getTraceId, getTraceObjectName, isDebugEnabled, isInfoEnabled, logAndConvert, quote, quoteArray, quoteBigDecimal, quoteBytes, quoteDate, quoteIntArray, quoteMap, quoteTime, quoteTimestamp, setTrace, setTrace, toString, unsupported |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
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
java.sql.SQLException
public boolean isWrapperFor(java.lang.Class<?> iface) throws java.sql.SQLException
isWrapperFor
in interface java.sql.Wrapper
java.sql.SQLException
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |