public final class JDBCQueryResultMetaData extends Object implements QueryResultMetaData
| 构造器和说明 |
|---|
JDBCQueryResultMetaData() |
| 限定符和类型 | 方法和说明 |
|---|---|
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 在接口中 QueryResultMetaDataSQLException - SQL Exceptionpublic String getTableName(int columnIndex) throws SQLException
QueryResultMetaDatagetTableName 在接口中 QueryResultMetaDatacolumnIndex - column indexSQLException - SQL Exceptionpublic String getColumnName(int columnIndex) throws SQLException
QueryResultMetaDatagetColumnName 在接口中 QueryResultMetaDatacolumnIndex - column indexSQLException - SQL Exceptionpublic String getColumnLabel(int columnIndex) throws SQLException
QueryResultMetaDatagetColumnLabel 在接口中 QueryResultMetaDatacolumnIndex - column indexSQLException - SQL Exceptionpublic int getColumnType(int columnIndex)
throws SQLException
QueryResultMetaDatagetColumnType 在接口中 QueryResultMetaDatacolumnIndex - column indexSQLException - SQL Exceptionpublic String getColumnTypeName(int columnIndex) throws SQLException
QueryResultMetaDatagetColumnTypeName 在接口中 QueryResultMetaDatacolumnIndex - column indexSQLException - SQL Exceptionpublic int getColumnLength(int columnIndex)
throws SQLException
QueryResultMetaDatagetColumnLength 在接口中 QueryResultMetaDatacolumnIndex - column indexSQLException - SQL Exceptionpublic int getDecimals(int columnIndex)
throws SQLException
QueryResultMetaDatagetDecimals 在接口中 QueryResultMetaDatacolumnIndex - column indexSQLException - SQL Exceptionpublic boolean isSigned(int columnIndex)
throws SQLException
QueryResultMetaDataisSigned 在接口中 QueryResultMetaDatacolumnIndex - column indexSQLException - SQL Exceptionpublic boolean isNotNull(int columnIndex)
throws SQLException
QueryResultMetaDataisNotNull 在接口中 QueryResultMetaDatacolumnIndex - column indexSQLException - SQL Exceptionpublic boolean isAutoIncrement(int columnIndex)
throws SQLException
QueryResultMetaDataisAutoIncrement 在接口中 QueryResultMetaDatacolumnIndex - column indexSQLException - SQL ExceptionCopyright © 2021 The Apache Software Foundation. All rights reserved.