private static class SetupQueryRunner.SimpleResultHandler extends ResultHandlerBase
Modifier | Constructor and Description |
---|---|
private |
SimpleResultHandler() |
Modifier and Type | Method and Description |
---|---|
(package private) java.util.List<Tuple> |
getResults() |
void |
handleResultRows(Query fromQuery,
Field[] fields,
java.util.List<Tuple> tuples,
ResultCursor cursor)
Called when result rows are received from a query.
|
void |
handleWarning(java.sql.SQLWarning warning)
Called when a warning is emitted.
|
getException, getWarning, handleCommandStatus, handleCompletion, handleError, secureProgress
private java.util.List<Tuple> tuples
java.util.List<Tuple> getResults()
public void handleResultRows(Query fromQuery, Field[] fields, java.util.List<Tuple> tuples, ResultCursor cursor)
ResultHandler
handleResultRows
in interface ResultHandler
handleResultRows
in class ResultHandlerBase
fromQuery
- the underlying query that generated these results; this may not be very
specific (e.g. it may be a query that includes multiple statements).fields
- column metadata for the resultset; might be null
if
Query.QUERY_NO_METADATA was specified.tuples
- the actual datacursor
- a cursor to use to fetch additional data; null
if no further results
are present.public void handleWarning(java.sql.SQLWarning warning)
ResultHandler
handleWarning
in interface ResultHandler
handleWarning
in class ResultHandlerBase
warning
- the warning that occurred.