public interface OperationObserver extends OperationHints
QueryEngine
to pass back query
results and notify caller about exceptions.Modifier and Type | Method and Description |
---|---|
void |
nextBatchCount(Query query,
int[] resultCount)
Callback method invoked after a batch update is executed.
|
void |
nextCount(Query query,
int resultCount)
Callback method invoked after an updating query is executed.
|
void |
nextGeneratedRows(Query query,
ResultIterator<?> keys,
ObjectId idToUpdate)
Callback method invoked after each batch of generated values is read during an
update.
|
void |
nextGlobalException(Exception ex)
Callback method invoked on exceptions that are not tied to a specific query
execution, such as JDBC connection exceptions, etc.
|
void |
nextQueryException(Query query,
Exception ex)
Callback method invoked on exceptions that happen during an execution of a specific
query.
|
void |
nextRows(Query query,
List<?> dataRows)
Callback method invoked for each processed ResultSet.
|
void |
nextRows(Query q,
ResultIterator<?> it)
Callback method invoked for each opened ResultIterator.
|
isIteratedResult
void nextCount(Query query, int resultCount)
void nextBatchCount(Query query, int[] resultCount)
void nextRows(Query query, List<?> dataRows)
void nextRows(Query q, ResultIterator<?> it)
nextRows(Query, List)
.void nextGeneratedRows(Query query, ResultIterator<?> keys, ObjectId idToUpdate)
void nextQueryException(Query query, Exception ex)
void nextGlobalException(Exception ex)
Copyright © 2001–2019 Apache Cayenne. All rights reserved.