public final class JDBCQueryResultMetaData extends Object implements QueryResultMetaData
| Constructor and Description |
|---|
JDBCQueryResultMetaData() |
| Modifier and Type | Method and Description |
|---|---|
int |
getColumnCount()
Get column count.
|
String |
getColumnLabel(int columnIndex)
Get column label.
|
int |
getColumnLength(int columnIndex)
Get column length.
|
String |
getColumnName(int columnIndex)
Get column name.
|
int |
getColumnType(int columnIndex)
Get column type.
|
String |
getColumnTypeName(int columnIndex)
Get column type name.
|
int |
getDecimals(int columnIndex)
Get decimals.
|
String |
getTableName(int columnIndex)
Get table name.
|
boolean |
isAutoIncrement(int columnIndex)
Is auto increment.
|
boolean |
isNotNull(int columnIndex)
Is not null.
|
boolean |
isSigned(int columnIndex)
Is signed.
|
public int getColumnCount()
throws SQLException
QueryResultMetaDatagetColumnCount in interface QueryResultMetaDataSQLException - SQL exceptionpublic String getTableName(int columnIndex) throws SQLException
QueryResultMetaDatagetTableName in interface QueryResultMetaDatacolumnIndex - column indexSQLException - SQL exceptionpublic String getColumnName(int columnIndex) throws SQLException
QueryResultMetaDatagetColumnName in interface QueryResultMetaDatacolumnIndex - column indexSQLException - SQL exceptionpublic String getColumnLabel(int columnIndex) throws SQLException
QueryResultMetaDatagetColumnLabel in interface QueryResultMetaDatacolumnIndex - column indexSQLException - SQL exceptionpublic int getColumnType(int columnIndex)
throws SQLException
QueryResultMetaDatagetColumnType in interface QueryResultMetaDatacolumnIndex - column indexSQLException - SQL exceptionpublic String getColumnTypeName(int columnIndex) throws SQLException
QueryResultMetaDatagetColumnTypeName in interface QueryResultMetaDatacolumnIndex - column indexSQLException - SQL exceptionpublic int getColumnLength(int columnIndex)
throws SQLException
QueryResultMetaDatagetColumnLength in interface QueryResultMetaDatacolumnIndex - column indexSQLException - SQL exceptionpublic int getDecimals(int columnIndex)
throws SQLException
QueryResultMetaDatagetDecimals in interface QueryResultMetaDatacolumnIndex - column indexSQLException - SQL exceptionpublic boolean isSigned(int columnIndex)
throws SQLException
QueryResultMetaDataisSigned in interface QueryResultMetaDatacolumnIndex - column indexSQLException - SQL exceptionpublic boolean isNotNull(int columnIndex)
throws SQLException
QueryResultMetaDataisNotNull in interface QueryResultMetaDatacolumnIndex - column indexSQLException - SQL exceptionpublic boolean isAutoIncrement(int columnIndex)
throws SQLException
QueryResultMetaDataisAutoIncrement in interface QueryResultMetaDatacolumnIndex - column indexSQLException - SQL exceptionCopyright © 2023 The Apache Software Foundation. All rights reserved.