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) int
query_time
(package private) int
result_id
(package private) AbstractJDBCDatabaseInterface.ResultSetInfo
result_set_info
(package private) java.lang.String
warnings
-
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 int
getColumnCount()
The number of columns in the query result.ColumnDescription
getColumnDescription(int n)
The ColumnDescription object that describes column 'n' in the result.int
getQueryTimeMillis()
The time, in milliseconds, that the query took to execute.int
getResultID()
Returns a number that identifies this query within the set of queries executed on the connection.int
getRowCount()
The total number of rows in the query result.java.lang.String
getWarnings()
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:QueryResponse
Returns 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:
getResultID
in interfaceQueryResponse
-
getQueryTimeMillis
public int getQueryTimeMillis()
Description copied from interface:QueryResponse
The time, in milliseconds, that the query took to execute.- Specified by:
getQueryTimeMillis
in interfaceQueryResponse
-
getRowCount
public int getRowCount()
Description copied from interface:QueryResponse
The 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:
getRowCount
in interfaceQueryResponse
-
getColumnCount
public int getColumnCount()
Description copied from interface:QueryResponse
The number of columns in the query result.- Specified by:
getColumnCount
in interfaceQueryResponse
-
getColumnDescription
public ColumnDescription getColumnDescription(int n)
Description copied from interface:QueryResponse
The ColumnDescription object that describes column 'n' in the result. 0 is the first column, 1 is the second column, etc.- Specified by:
getColumnDescription
in interfaceQueryResponse
-
getWarnings
public java.lang.String getWarnings()
Description copied from interface:QueryResponse
Returns any warnings about the query. If there were no warnings then this can return 'null'.- Specified by:
getWarnings
in interfaceQueryResponse
-
-