Package com.mckoi.database.jdbcserver
Class AbstractJDBCDatabaseInterface.JDIQueryResponse
- java.lang.Object
-
- com.mckoi.database.jdbcserver.AbstractJDBCDatabaseInterface.JDIQueryResponse
-
- All Implemented Interfaces:
QueryResponse
- Enclosing class:
- AbstractJDBCDatabaseInterface
private static final class AbstractJDBCDatabaseInterface.JDIQueryResponse extends java.lang.Object implements QueryResponse
The response to a query.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) intquery_time(package private) intresult_id(package private) AbstractJDBCDatabaseInterface.ResultSetInforesult_set_info(package private) java.lang.Stringwarnings
-
Constructor Summary
Constructors Constructor Description JDIQueryResponse(int result_id, AbstractJDBCDatabaseInterface.ResultSetInfo result_set_info, int query_time, java.lang.String warnings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetColumnCount()The number of columns in the query result.ColumnDescriptiongetColumnDescription(int n)The ColumnDescription object that describes column 'n' in the result.intgetQueryTimeMillis()The time, in milliseconds, that the query took to execute.intgetResultID()Returns a number that identifies this query within the set of queries executed on the connection.intgetRowCount()The total number of rows in the query result.java.lang.StringgetWarnings()Returns any warnings about the query.
-
-
-
Field Detail
-
result_id
int result_id
-
result_set_info
AbstractJDBCDatabaseInterface.ResultSetInfo result_set_info
-
query_time
int query_time
-
warnings
java.lang.String warnings
-
-
Constructor Detail
-
JDIQueryResponse
JDIQueryResponse(int result_id, AbstractJDBCDatabaseInterface.ResultSetInfo result_set_info, int query_time, java.lang.String warnings)
-
-
Method Detail
-
getResultID
public int getResultID()
Description copied from interface:QueryResponseReturns a number that identifies this query within the set of queries executed on the connection. This is used for identifying this query in subsequent operations.- Specified by:
getResultIDin interfaceQueryResponse
-
getQueryTimeMillis
public int getQueryTimeMillis()
Description copied from interface:QueryResponseThe time, in milliseconds, that the query took to execute.- Specified by:
getQueryTimeMillisin interfaceQueryResponse
-
getRowCount
public int getRowCount()
Description copied from interface:QueryResponseThe total number of rows in the query result. This is known ahead of time, even if no data in the query has been accessed.- Specified by:
getRowCountin interfaceQueryResponse
-
getColumnCount
public int getColumnCount()
Description copied from interface:QueryResponseThe number of columns in the query result.- Specified by:
getColumnCountin interfaceQueryResponse
-
getColumnDescription
public ColumnDescription getColumnDescription(int n)
Description copied from interface:QueryResponseThe ColumnDescription object that describes column 'n' in the result. 0 is the first column, 1 is the second column, etc.- Specified by:
getColumnDescriptionin interfaceQueryResponse
-
getWarnings
public java.lang.String getWarnings()
Description copied from interface:QueryResponseReturns any warnings about the query. If there were no warnings then this can return 'null'.- Specified by:
getWarningsin interfaceQueryResponse
-
-