## Uses of Interface
org.apache.cayenne.query.QueryRouter

- Packages that use QueryRouter
  Package | Description
  --- | ---
  org.apache.cayenne.query | Defines standard queries supported by Cayenne and extension mechanism to create custom queries.

- - ### Uses of QueryRouter in org.apache.cayenne.query

    Methods in org.apache.cayenne.query with parameters of type QueryRouter
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | AbstractQuery.`route​(QueryRouter router, EntityResolver resolver, Query substitutedQuery)` | Implements default routing mechanism relying on the EntityResolver to find DataMap based on the query root.
    `void` | BatchQuery.`route​(QueryRouter router, EntityResolver resolver, Query substitutedQuery)` |
    `void` | EJBQLQuery.`route​(QueryRouter router, EntityResolver resolver, Query substitutedQuery)` |
    `void` | FluentSelect.`route​(QueryRouter router, EntityResolver resolver, Query substitutedQuery)` |
    `void` | IndirectQuery.`route​(QueryRouter router, EntityResolver resolver, Query substitutedQuery)` | Delegates routing to a replacement query.
    `void` | Query.`route​(QueryRouter router, EntityResolver resolver, Query substitutedQuery)` | A callback method invoked by Cayenne during the routing phase of the query execution.
    `void` | QueryChain.`route​(QueryRouter router, EntityResolver resolver, Query substitutedQuery)` | Delegates routing to each individual query in the chain.
    `void` | RefreshQuery.`route​(QueryRouter router, EntityResolver resolver, Query substitutedQuery)` |
    `void` | SelectQuery.`route​(QueryRouter router, EntityResolver resolver, Query substitutedQuery)` | Deprecated. Routes itself and if there are any prefetches configured, creates prefetch queries and routes them as well.
    `void` | SQLTemplate.`route​(QueryRouter router, EntityResolver resolver, Query substitutedQuery)` |
    `protected void` | FluentSelect.`routePrefetches​(QueryRouter router, EntityResolver resolver)` |
    `protected void` | PrefetchSelectQuery.`routePrefetches​(QueryRouter router, EntityResolver resolver)` |