Package com.mckoi.database.jdbc
Interface QueryResponse
-
public interface QueryResponseThe 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetColumnCount()The number of columns in the query result.ColumnDescriptiongetColumnDescription(int column)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.
-
-
-
Method Detail
-
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
ColumnDescription getColumnDescription(int column)
The ColumnDescription object that describes column 'n' in the result. 0 is the first column, 1 is the second column, etc.
-
getWarnings
java.lang.String getWarnings()
Returns any warnings about the query. If there were no warnings then this can return 'null'.
-
-