Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV NEXT | FRAMES NO FRAMES

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

Packages that use Query
org.apache.cayenne | Contains persistence APIs directly accessible by users.
org.apache.cayenne.access | Contains classes that make up Cayenne ORM stack.
org.apache.cayenne.access.jdbc | Contains classes that handle JDBC interactions.
org.apache.cayenne.access.trans | Provides translators for Cayenne queries.
org.apache.cayenne.access.util |
org.apache.cayenne.configuration |
org.apache.cayenne.dba | Contains database adapter API (DbAdapter) and its default implementation.
org.apache.cayenne.dba.frontbase | FrontBase DbAdapter.
org.apache.cayenne.dba.hsqldb | HSQLDB DbAdapter.
org.apache.cayenne.dba.ingres |
org.apache.cayenne.dba.mysql | MySQL DbAdapter.
org.apache.cayenne.dba.openbase | OpenBase DbAdapter.
org.apache.cayenne.dba.oracle | Oracle DbAdapter.
org.apache.cayenne.dba.postgres | PostgreSQL DbAdapter.
org.apache.cayenne.dba.sqlite |
org.apache.cayenne.dba.sqlserver | MS SQLServer DbAdapter.
org.apache.cayenne.map | Contains O/R mapping classes that store relational database metadata information and map it to Java classes.
org.apache.cayenne.query | Defines standard queries supported by Cayenne and extension mechanism to create custom queries.
org.apache.cayenne.remote | Contains classes an interfaces related to Cayenne remote object persistence features.
org.apache.cayenne.util | General utility classes.

Uses of Query in org.apache.cayenne

Methods in org.apache.cayenne with parameters of type Query
`static Object` | `Cayenne.objectForQuery(ObjectContext context, Query query)` Returns an object or a DataRow that is a result of a given query.
`static Object` | `DataObjectUtils.objectForQuery(ObjectContext context, Query query)` Deprecated. Returns an object or a DataRow that is a result of a given query.
`QueryResponse` | `CayenneContext.onQuery(ObjectContext context, Query query)`
`QueryResponse` | `DataChannel.onQuery(ObjectContext originatingContext, Query query)` Executes a query, using provided context to register persistent objects if query returns any objects.
`QueryResponse` | `DataChannelFilterChain.onQuery(ObjectContext originatingContext, Query query)`
`QueryResponse` | `DataChannelFilter.onQuery(ObjectContext originatingContext, Query query, DataChannelFilterChain filterChain)`
`abstract QueryResponse` | `BaseContext.performGenericQuery(Query query)`
`QueryResponse` | `CayenneContext.performGenericQuery(Query query)`
`QueryResponse` | `ObjectContext.performGenericQuery(Query query)` Executes any kind of query providing the result in a form of QueryResponse.
`abstract List` | `BaseContext.performQuery(Query query)`
`List` | `CayenneContext.performQuery(Query query)` Runs a query, returning result as list.
`List` | `ObjectContext.performQuery(Query query)` Executes a selecting query, returning a list of persistent objects or data rows.

Uses of Query in org.apache.cayenne.access

Methods in org.apache.cayenne.access that return Query
`Query` | `DataPortDelegate.willCleanData(DataPort portTool, DbEntity entity, Query query)` Invoked by DataPort right before the start of data cleanup for a given entity.
`Query` | `DataContextDelegate.willPerformGenericQuery(DataContext context, Query query)` Invoked before a Query is executed via DataContext.performGenericQuery.
`Query` | `DataContextDelegate.willPerformQuery(DataContext context, Query query)` Invoked before a Query is executed via DataContext.performQuery.
`Query` | `DataPortDelegate.willPortEntity(DataPort portTool, DbEntity entity, Query query)` Invoked by DataPort right before the start of data port for a given entity.

Methods in org.apache.cayenne.access with parameters of type Query
`protected void` | `IncrementalFaultList.fillIn(Query query, List elementsList)` Performs initialization of the list of objects.
`List` | `QueryResult.getFirstRows(Query query)` Returns the first results for the query.
`int` | `QueryResult.getFirstUpdateCount(Query query)` Returns the first update count for the query.
`int[]` | `QueryResult.getFirstUpdateCounts(Query query)` Returns the first update count.
`List` | `QueryResult.getResults(Query query)` Returns a list of all results of a given query.
`List<?>` | `QueryResult.getRows(Query query)` Returns a List that itself contains Lists of data rows for each ResultSet returned by the query.
`List` | `QueryResult.getUpdates(Query query)` Returns a List that contains java.lang.Integer objects for each one of the update counts returned by the query.
`void` | `OperationObserver.nextBatchCount(Query query, int[] resultCount)` Callback method invoked after a batch update is executed.
`void` | `QueryResult.nextBatchCount(Query query, int[] resultCount)`
`void` | `OperationObserver.nextCount(Query query, int resultCount)` Callback method invoked after an updating query is executed.
`void` | `QueryResult.nextCount(Query query, int resultCount)`
`void` | `OperationObserver.nextGeneratedRows(Query query, ResultIterator keysIterator)` Callback method invoked after each batch of generated values is read during an update.
`void` | `OperationObserver.nextQueryException(Query query, Exception ex)` Callback method invoked on exceptions that happen during an execution of a specific query.
`void` | `QueryResult.nextQueryException(Query query, Exception ex)` Overrides superclass implementation to rethrow an exception immediately.
`void` | `OperationObserver.nextRows(Query query, List<?> dataRows)` Callback method invoked for each processed ResultSet.
`void` | `QueryResult.nextRows(Query query, List<?> dataRows)`
`void` | `OperationObserver.nextRows(Query q, ResultIterator it)` Callback method invoked for each opened ResultIterator.
`void` | `QueryResult.nextRows(Query q, ResultIterator it)`
`QueryResponse` | `ClientServerChannel.onQuery(ObjectContext context, Query query)`
`QueryResponse` | `DataContext.onQuery(ObjectContext context, Query query)` An implementation of a `DataChannel` method that is used by child contexts to execute queries.
`QueryResponse` | `DataDomain.onQuery(ObjectContext originatingContext, Query query)` Runs query returning generic QueryResponse.
`QueryResponse` | `DataContext.performGenericQuery(Query query)` Executes a query returning a generic response.
`ResultIterator` | `DataContext.performIteratedQuery(Query query)` Performs a single database select query returning result as a ResultIterator.
`int[]` | `DataContext.performNonSelectingQuery(Query query)` Performs a single database query that does not select rows.
`List` | `DataContext.performQuery(Query query)` Performs a single selecting query.
`Query` | `DataPortDelegate.willCleanData(DataPort portTool, DbEntity entity, Query query)` Invoked by DataPort right before the start of data cleanup for a given entity.
`Query` | `DataContextDelegate.willPerformGenericQuery(DataContext context, Query query)` Invoked before a Query is executed via DataContext.performGenericQuery.
`Query` | `DataContextDelegate.willPerformQuery(DataContext context, Query query)` Invoked before a Query is executed via DataContext.performQuery.
`Query` | `DataPortDelegate.willPortEntity(DataPort portTool, DbEntity entity, Query query)` Invoked by DataPort right before the start of data port for a given entity.

Method parameters in org.apache.cayenne.access with type arguments of type Query
`void` | `DataDomain.performQueries(Collection<? extends Query> queries, OperationObserver callback)` Routes queries to appropriate DataNodes for execution.
`void` | `DataNode.performQueries(Collection<? extends Query> queries, OperationObserver callback)` Runs queries using Connection obtained from internal DataSource.
`void` | `QueryEngine.performQueries(Collection<? extends Query> queries, OperationObserver resultConsumer)` Executes a list of queries wrapping them in its own transaction.

Constructors in org.apache.cayenne.access with parameters of type Query
`IncrementalFaultList(DataContext dataContext, Query query)` Deprecated. since 3.1 use `IncrementalFaultList.IncrementalFaultList(DataContext, Query, int)`.
`IncrementalFaultList(DataContext dataContext, Query query, int maxFetchSize)` Creates a new IncrementalFaultList using a given DataContext and query.

Uses of Query in org.apache.cayenne.access.jdbc

Methods in org.apache.cayenne.access.jdbc with parameters of type Query
`protected void` | `BaseSQLAction.readResultSet(ResultSet resultSet, RowDescriptor descriptor, Query query, OperationObserver delegate)` Helper method to process a ResultSet.

Uses of Query in org.apache.cayenne.access.trans

Fields in org.apache.cayenne.access.trans declared as Query
`protected Query` | `QueryAssembler.query`

Methods in org.apache.cayenne.access.trans that return Query
`Query` | `QueryAssembler.getQuery()` Returns query object being processed.

Methods in org.apache.cayenne.access.trans with parameters of type Query
`void` | `QueryAssembler.setQuery(Query query)`

Uses of Query in org.apache.cayenne.access.util

Fields in org.apache.cayenne.access.util with type parameters of type Query
`protected Map<Query,Throwable>` | `DefaultOperationObserver.queryExceptions`

Methods in org.apache.cayenne.access.util that return types with arguments of type Query
`Map<Query,Throwable>` | `DefaultOperationObserver.getQueryExceptions()` Returns a list of exceptions that occured during data operation run by query.

Methods in org.apache.cayenne.access.util with parameters of type Query
`void` | `DefaultOperationObserver.nextBatchCount(Query query, int[] resultCount)`
`void` | `DefaultOperationObserver.nextCount(Query query, int resultCount)`
`void` | `DefaultOperationObserver.nextGeneratedRows(Query query, ResultIterator keysIterator)` Closes ResultIterator without reading its data.
`void` | `DefaultOperationObserver.nextQueryException(Query query, Exception ex)`
`void` | `DefaultOperationObserver.nextRows(Query query, List<?> dataRows)`
`void` | `IteratedSelectObserver.nextRows(Query query, List<?> dataRows)`
`void` | `DefaultOperationObserver.nextRows(Query query, ResultIterator it)` Closes ResultIterator without reading its data.
`void` | `IteratedSelectObserver.nextRows(Query q, ResultIterator it)`

Uses of Query in org.apache.cayenne.configuration

Methods in org.apache.cayenne.configuration with parameters of type Query
`T` | `BaseConfigurationNodeVisitor.visitQuery(Query query)`
`T` | `ConfigurationNodeVisitor.visitQuery(Query query)`

Uses of Query in org.apache.cayenne.dba

Methods in org.apache.cayenne.dba with parameters of type Query
`SQLAction` | `AutoAdapter.getAction(Query query, DataNode node)`
`SQLAction` | `DbAdapter.getAction(Query query, DataNode node)` Returns an instance of SQLAction that should handle the query.
`SQLAction` | `JdbcAdapter.getAction(Query query, DataNode node)` Uses JdbcActionBuilder to create the right action.

Uses of Query in org.apache.cayenne.dba.frontbase

Methods in org.apache.cayenne.dba.frontbase with parameters of type Query
`SQLAction` | `FrontBaseAdapter.getAction(Query query, DataNode node)` Uses special action builder to create the right action.

Uses of Query in org.apache.cayenne.dba.hsqldb

Methods in org.apache.cayenne.dba.hsqldb with parameters of type Query
`SQLAction` | `HSQLDBAdapter.getAction(Query query, DataNode node)` Uses special action builder to create the right action.

Uses of Query in org.apache.cayenne.dba.ingres

Methods in org.apache.cayenne.dba.ingres with parameters of type Query
`SQLAction` | `IngresAdapter.getAction(Query query, DataNode node)`

Uses of Query in org.apache.cayenne.dba.mysql

Methods in org.apache.cayenne.dba.mysql with parameters of type Query
`SQLAction` | `MySQLAdapter.getAction(Query query, DataNode node)` Uses special action builder to create the right action.

Uses of Query in org.apache.cayenne.dba.openbase

Methods in org.apache.cayenne.dba.openbase with parameters of type Query
`SQLAction` | `OpenBaseAdapter.getAction(Query query, DataNode node)` Uses special action builder to create the right action.

Uses of Query in org.apache.cayenne.dba.oracle

Methods in org.apache.cayenne.dba.oracle with parameters of type Query
`SQLAction` | `Oracle8Adapter.getAction(Query query, DataNode node)` Uses OracleActionBuilder to create the right action.
`SQLAction` | `OracleAdapter.getAction(Query query, DataNode node)` Uses OracleActionBuilder to create the right action.

Uses of Query in org.apache.cayenne.dba.postgres

Methods in org.apache.cayenne.dba.postgres with parameters of type Query
`SQLAction` | `PostgresAdapter.getAction(Query query, DataNode node)` Uses PostgresActionBuilder to create the right action.

Uses of Query in org.apache.cayenne.dba.sqlite

Methods in org.apache.cayenne.dba.sqlite with parameters of type Query
`SQLAction` | `SQLiteAdapter.getAction(Query query, DataNode node)`

Uses of Query in org.apache.cayenne.dba.sqlserver

Methods in org.apache.cayenne.dba.sqlserver with parameters of type Query
`SQLAction` | `SQLServerAdapter.getAction(Query query, DataNode node)` Uses SQLServerActionBuilder to create the right action.

Uses of Query in org.apache.cayenne.map

Fields in org.apache.cayenne.map with type parameters of type Query
`protected Map<String,Query>` | `EntityResolver.queryCache`

Methods in org.apache.cayenne.map that return Query
`Query` | `DataMap.getQuery(String queryName)` Returns a named query associated with this DataMap.
`Query` | `EntityResolver.getQuery(String name)`
`Query` | `MappingNamespace.getQuery(String name)` Returns Query for a given name, or null if no such Query is found in the MappingNamespace.
`Query` | `EntityResolver.lookupQuery(String name)` Returns a named query or null if no query exists for a given name.

Methods in org.apache.cayenne.map that return types with arguments of type Query
`Collection<Query>` | `DataMap.getQueries()` Returns an unmodifiable collection of mapped queries.
`Collection<Query>` | `EntityResolver.getQueries()`
`Collection<Query>` | `MappingNamespace.getQueries()` Returns all Queries in the namespace.
`SortedMap<String,Query>` | `DataMap.getQueryMap()`

Methods in org.apache.cayenne.map with parameters of type Query
`void` | `DataMap.addQuery(Query query)` Stores a query under its name.
`Procedure` | `EntityResolver.lookupProcedure(Query q)`

Uses of Query in org.apache.cayenne.query

Subinterfaces of Query in org.apache.cayenne.query
`interface` | `ParameterizedQuery` Defines a query that can serve as a template for other queries.

Classes in org.apache.cayenne.query that implement Query
`class` | `AbstractQuery` A common superclass of Cayenne queries.
`class` | `BatchQuery` BatchQuery and its descendants allow to group similar data for the batch database modifications, including inserts, updates and deletes.
`class` | `DeleteBatchQuery` Batched delete query.
`class` | `EJBQLQuery` An EJBQL query representation in Cayenne.
`class` | `IndirectQuery` A convenience superclass of the queries that resolve into some other queries during the routing phase.
`class` | `InsertBatchQuery` Batched INSERT query.
`class` | `NamedQuery` A query that is a reference to a named parameterized query stored in the mapping.
`class` | `ObjectIdQuery` A query that matches zero or one object or data row corresponding to the ObjectId.
`class` | `PrefetchSelectQuery` A SelectQuery to perform a prefetch based on another query.
`class` | `ProcedureQuery` A query based on Procedure.
`class` | `QualifiedQuery` An abstract superclass of queries with Expression qualifiers.
`class` | `QueryChain` A Query decorator for a collection of other queries.
`class` | `RefreshQuery` A query that allows to explicitly clear both object and list caches either via refetch (eager refresh) or invalidate (lazy refresh).
`class` | `RelationshipQuery` A query that selects objects related to a given object via a mapped relationship.
`class` | `SelectQuery` A query that selects persistent objects of a certain type or "raw data" (aka DataRows).
`class` | `SQLTemplate` A query that executes unchanged (except for template preprocessing) "raw" SQL specified by the user.
`class` | `UpdateBatchQuery` Batched UPDATE query.

Fields in org.apache.cayenne.query declared as Query
`protected Query` | `RefreshQuery.query`
`protected Query` | `IndirectQuery.replacementQuery`

Fields in org.apache.cayenne.query with type parameters of type Query
`protected Collection<Query>` | `QueryChain.chain`

Methods in org.apache.cayenne.query that return Query
`Query` | `ParameterizedQuery.createQuery(Map<String,?> parameters)` Creates a new query based on current query as a template, and using a Map of named parameters.
`Query` | `ProcedureQuery.createQuery(Map<String,?> parameters)` Creates and returns a new ProcedureQuery built using this query as a prototype and substituting template parameters with the values from the map.
`Query` | `SelectQuery.createQuery(Map<String,?> parameters)` Creates and returns a new SelectQuery built using this query as a prototype and substituting qualifier parameters with the values from the map.
`Query` | `SQLTemplate.createQuery(Map<String,?> parameters)` Creates and returns a new SQLTemplate built using this query as a prototype and substituting template parameters with the values from the map.
`protected abstract Query` | `IndirectQuery.createReplacementQuery(EntityResolver resolver)` Creates a substitute query.
`protected Query` | `NamedQuery.createReplacementQuery(EntityResolver resolver)`
`protected Query` | `ObjectIdQuery.createReplacementQuery(EntityResolver resolver)`
`protected Query` | `RelationshipQuery.createReplacementQuery(EntityResolver resolver)`
`Query` | `QueryMetadata.getOrginatingQuery()` Returns a query that originated this query.
`Query` | `RefreshQuery.getQuery()` Returns an internal query, overriding cache policy to force a refresh.
`protected Query` | `IndirectQuery.getReplacementQuery(EntityResolver resolver)` Returns a replacement query, creating it on demand and caching it for reuse.
`protected Query` | `NamedQuery.resolveQuery(EntityResolver resolver)` Returns a query for name, throwing an exception if such query is not mapped in the EntityResolver.

Methods in org.apache.cayenne.query with parameters of type Query
`void` | `QueryChain.addQuery(Query query)` Adds a query to the chain.
`boolean` | `QueryChain.removeQuery(Query query)` Removes a query from the chain, returning true if the query was indeed present in the chain and was removed.
`void` | `QueryRouter.route(QueryEngine engine, Query query, Query substitutedQuery)` A callback method that allows a query to set its preferred engine during the routing phase.
`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` | `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)` Routes itself and if there are any prefetches configured, creates prefetch queries and routes them as well.

Constructors in org.apache.cayenne.query with parameters of type Query
`QueryChain(Query[] queries)` Creates a new QueryChain out of an array of queries.
`RefreshQuery(Query query)` Creates a RefreshQuery that refreshes results of a query and individual objects in the result.

Constructor parameters in org.apache.cayenne.query with type arguments of type Query
`QueryChain(Collection<? extends Query> queries)` Creates a new QueryChain with a collection of Queries.

Uses of Query in org.apache.cayenne.remote

Fields in org.apache.cayenne.remote declared as Query
`protected Query` | `RemoteIncrementalFaultList.paginatedQuery`
`protected Query` | `QueryMessage.query`

Methods in org.apache.cayenne.remote that return Query
`Query` | `QueryMessage.getQuery()`

Methods in org.apache.cayenne.remote with parameters of type Query
`QueryResponse` | `ClientChannel.onQuery(ObjectContext context, Query query)`

Constructors in org.apache.cayenne.remote with parameters of type Query
`QueryMessage(Query query)`
`RemoteIncrementalFaultList(ObjectContext context, Query paginatedQuery)`

Uses of Query in org.apache.cayenne.util

Fields in org.apache.cayenne.util declared as Query
`protected Query` | `ObjectContextQueryAction.query`

Constructors in org.apache.cayenne.util with parameters of type Query
`ObjectContextQueryAction(ObjectContext actingContext, ObjectContext targetContext, Query query)`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV NEXT | FRAMES NO FRAMES

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