public interface StatementCallback
Statement.close() must still be called to release
statement resources.
Statement methods, such as cancel, are perfectly valid
even when using a callback.| Modifier and Type | Method and Description |
|---|---|
void |
onComplete(Statement s)
Called when processing has completed normally.
|
void |
onException(Statement s,
Exception e)
Called when an exception occurs.
|
void |
onRow(Statement s,
ResultSet rs)
Process the current row of the
ResultSet. |
void onRow(Statement s, ResultSet rs) throws Exception
ResultSet.
Any call that retrieves non-lob values from the current row
will be performed without blocking on more data from sources.
Calls outside of the current row, such as next(), may block.rs - Exceptionvoid onException(Statement s, Exception e) throws Exception
e - ExceptionCopyright © 2020. All rights reserved.