| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface QueryRouter
An interface used by Queries to route themselves to an appropriate QueryEngine. As of 1.2 QueryRouter only supports routing by DataMap.
| Method Summary | |
|---|---|
|  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. | 
| Method Detail | 
|---|
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.| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||