Package com.mckoi.database.jdbc
Interface QueryResponse
public interface QueryResponse
The response to a query executed via the 'execQuery' method in the
DatabaseInterface interface. This contains general information about the
result of the query.
- Author:
- Tobias Downer
-
Method Summary
Modifier and TypeMethodDescriptionint
The number of columns in the query result.getColumnDescription
(int column) The ColumnDescription object that describes column 'n' in the result.int
The time, in milliseconds, that the query took to execute.int
Returns a number that identifies this query within the set of queries executed on the connection.int
The total number of rows in the query result.Returns any warnings about the query.
-
Method Details
-
getResultID
int getResultID()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. -
getQueryTimeMillis
int getQueryTimeMillis()The time, in milliseconds, that the query took to execute. -
getRowCount
int getRowCount()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. -
getColumnCount
int getColumnCount()The number of columns in the query result. -
getColumnDescription
The ColumnDescription object that describes column 'n' in the result. 0 is the first column, 1 is the second column, etc. -
getWarnings
String getWarnings()Returns any warnings about the query. If there were no warnings then this can return 'null'.
-