public class DoNothingOperationObserver extends Object implements OperationObserver
Constructor and Description |
---|
DoNothingOperationObserver() |
Modifier and Type | Method and Description |
---|---|
boolean |
isIteratedResult()
Returns
true to indicate that any results of a select operation
should be returned as a ResultIterator. |
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.
|
public boolean isIteratedResult()
OperationHints
true
to indicate that any results of a select operation
should be returned as a ResultIterator. false
is returned when the
results are expected as a list.isIteratedResult
in interface OperationHints
public void nextCount(Query query, int resultCount)
OperationObserver
nextCount
in interface OperationObserver
public void nextBatchCount(Query query, int[] resultCount)
OperationObserver
nextBatchCount
in interface OperationObserver
public void nextRows(Query query, List<?> dataRows)
OperationObserver
nextRows
in interface OperationObserver
public void nextRows(Query q, ResultIterator<?> it)
OperationObserver
OperationObserver.nextRows(Query, List)
.nextRows
in interface OperationObserver
public void nextGeneratedRows(Query query, ResultIterator<?> keys, ObjectId idToUpdate)
OperationObserver
nextGeneratedRows
in interface OperationObserver
public void nextQueryException(Query query, Exception ex)
OperationObserver
nextQueryException
in interface OperationObserver
public void nextGlobalException(Exception ex)
OperationObserver
nextGlobalException
in interface OperationObserver
Copyright © 2001–2023 Apache Cayenne. All rights reserved.