Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.cayenne.query
Interface ParameterizedQuery

All Superinterfaces:
  ConfigurationNode, Query, java.io.Serializable

All Known Implementing Classes:
  PrefetchSelectQuery, ProcedureQuery, SelectQuery, SQLTemplate

    public interface ParameterizedQuery

extends Query

Defines a query that can serve as a template for other queries. ParameterizedQuery interface is used mainly in DataContext convenience methods, simplifying execution of the mapped queries.

Since:
  1.1

Method Summary
`Query` | `createQuery(java.util.Map<java.lang.String,?> parameters)` Creates a new query based on current query as a template, and using a Map of named parameters.

Methods inherited from interface org.apache.cayenne.query.Query
`createSQLAction, getDataMap, getMetaData, getName, route`

Methods inherited from interface org.apache.cayenne.configuration.ConfigurationNode
`acceptVisitor`

Method Detail

### createQuery

    Query createQuery(java.util.Map<java.lang.String,?> parameters)

  Creates a new query based on current query as a template, and using a Map of named parameters. In case of select queries, it is up to the implementing query to name the new query to avoid cache key conflicts.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2012 Apache Cayenne. All Rights Reserved.