|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cayenne.access.DataDomainLegacyQueryAction
public class DataDomainLegacyQueryAction
DataDomain query action that relies on externally provided OperationObserver to process the results.
| Method Summary | |
|---|---|
QueryEngine |
engineForDataMap(DataMap map)
Returns a QueryEngine that is configured to handle a given DataMap. |
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 |
nextDataRows(Query query,
List dataRows)
Callback method invoked for each processed ResultSet. |
void |
nextDataRows(Query q,
ResultIterator it)
Callback method invoked for each opened ResultIterator. |
void |
nextGeneratedDataRows(Query query,
ResultIterator keysIterator)
Callback method invoked after each batch of generated values is read durring an update. |
void |
nextGlobalException(Exception e)
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 |
route(QueryEngine engine,
Query query,
Query substitutedQuery)
A callback method that allows a query to set its preferred engine during the routing phase. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void route(QueryEngine engine,
Query query,
Query substitutedQuery)
QueryRouter
route in interface QueryRouterengine - engine to use for query executionquery - A query to execute.substitutedQuery - a query that was substituted for "query". Results must be
mapped back to substituted query.public QueryEngine engineForDataMap(DataMap map)
QueryRouter
engineForDataMap in interface QueryRouter
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 nextDataRows(Query query,
List dataRows)
OperationObserver
nextDataRows in interface OperationObserver
public void nextDataRows(Query q,
ResultIterator it)
OperationObserver
nextDataRows in interface OperationObserver
public void nextGeneratedDataRows(Query query,
ResultIterator keysIterator)
OperationObserver
nextGeneratedDataRows in interface OperationObserver
public void nextQueryException(Query query,
Exception ex)
OperationObserver
nextQueryException in interface OperationObserverpublic void nextGlobalException(Exception e)
OperationObserver
nextGlobalException in interface OperationObserverpublic boolean isIteratedResult()
OperationHintstrue 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||