public interface QueryRouter
Modifier and Type | Method and Description |
---|---|
QueryEngine |
engineForDataMap(DataMap map)
Returns a QueryEngine that is configured to handle a given DataMap.
|
void |
route(QueryEngine engine,
Query query,
Query substitutedQuery)
A callback method that allows a query to set its preferred engine during the
routing phase.
|
void route(QueryEngine engine, Query query, Query substitutedQuery)
engine
- 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.QueryEngine engineForDataMap(DataMap map)
CayenneRuntimeException
- if an engine can't be found.NullPointerException
- if a map parameter is null.Copyright © 2001–2014 Apache Cayenne. All rights reserved.