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 © 2021 The Apache Software Foundation. All rights reserved.