Uses of Interface
org.apache.cayenne.query.Query
Packages that use Query
Package
Description
-
Uses of Query in org.apache.cayenne
Methods in org.apache.cayenne that return QueryModifier and TypeMethodDescriptionCayenneSqlException.getQuery()Returns the query that was being executed when the failure occurred, or null if it is not known.Methods in org.apache.cayenne with parameters of type QueryModifier and TypeMethodDescriptionExecutes any kind of query, returning all of its result sets, update counts, iterators and OUT parameters as a list ofQueryResults in the order they were produced.static ObjectCayenne.objectForQuery(ObjectContext context, Query query) Deprecated, for removal: This API element is subject to removal in a future version.DataChannel.onQuery(ObjectContext context, Query query, boolean iteratedResult) Executes a query, using provided context to register persistent objects if query returns any objects.DataChannelQueryFilter.onQuery(ObjectContext originatingContext, Query query, boolean iteratedResult, DataChannelQueryFilterChain filterChain) DataChannelQueryFilterChain.onQuery(ObjectContext originatingContext, Query query, boolean iteratedResult) default ListObjectContext.performQuery(Query query) Deprecated, for removal: This API element is subject to removal in a future version.Constructors in org.apache.cayenne with parameters of type QueryModifierConstructorDescriptionCayenneSqlException(String message, Query query, TranslatedStatement statement, Throwable cause) Creates an exception for a failure that happened while executing the provided query and statement. -
Uses of Query in org.apache.cayenne.access
Methods in org.apache.cayenne.access that return QueryModifier and TypeMethodDescriptionDataContextDelegate.willPerformGenericQuery(DataContext context, Query query) Invoked before a Query is executed via DataContext.execute.DataContextDelegate.willPerformQuery(DataContext context, Query query) Invoked before a Query is executed via DataContext.performQuery.Methods in org.apache.cayenne.access with parameters of type QueryModifier and TypeMethodDescriptionExecutes a query returning all of its result sets, update counts, iterators and OUT parameters in the order they were produced.protected voidDeprecated, for removal: This API element is subject to removal in a future version.does nothingdefault voidOperationObserver.nextBatchCount(Query query, int[] resultCount) Callback method invoked after a batch update is executed.default voidCallback method invoked after an updating query is executed.default voidCallback method invoked after each batch of generated values is read during an update.default voidOperationObserver.nextOutParameters(Query query, Map<String, ?> outParameters) Callback method invoked with the values of the OUT and INOUT parameters of a stored procedure call, keyed by parameter name.default voidOperationObserver.nextQueryException(Query query, Exception ex) Callback method invoked on exceptions that happen during an execution of a specific query.default voidCallback method invoked for each processed ResultSet.default voidOperationObserver.nextRows(Query q, ResultIterator<?> it) Callback method invoked for each opened ResultIterator.default voidOperationObserver.nextStatement(Query query, TranslatedStatement statement) Callback invoked with the translated form of a query (its SQL and bindings) just before the statement is executed.DataContextChannel.onQuery(ObjectContext childContext, Query query, boolean iteratedResult) DataDomain.onQuery(ObjectContext context, Query query, boolean iteratedResult) Runs a query, returning all of its results as a list ofQueryResults.int[]DataContext.performNonSelectingQuery(Query query) Deprecated, for removal: This API element is subject to removal in a future version.useDataContext.execute(Query), orSQLExec.update(ObjectContext)/MappedExec.update(ObjectContext)for a query that produces a single update countDataContextDelegate.willPerformGenericQuery(DataContext context, Query query) Invoked before a Query is executed via DataContext.execute.DataContextDelegate.willPerformQuery(DataContext context, Query query) Invoked before a Query is executed via DataContext.performQuery.Method parameters in org.apache.cayenne.access with type arguments of type QueryModifier and TypeMethodDescriptionvoidDataNode.performQueries(Collection<? extends Query> queries, OperationObserver callback) Runs queries using Connection obtained from internal DataSource. -
Uses of Query in org.apache.cayenne.access.flush
Methods in org.apache.cayenne.access.flush that return types with arguments of type QueryModifier and TypeMethodDescriptionDefaultDataDomainFlushAction.createQueries(List<DbRowOp> dbRowOps) Method parameters in org.apache.cayenne.access.flush with type arguments of type QueryModifier and TypeMethodDescriptionprotected voidDefaultDataDomainFlushAction.executeQueries(List<? extends Query> queries) Execute queries, grouping them by nodes -
Uses of Query in org.apache.cayenne.access.jdbc
Methods in org.apache.cayenne.access.jdbc with parameters of type QueryModifier and TypeMethodDescriptionprotected voidBaseSQLAction.readResultSet(ResultSet resultSet, RSColumn[] columns, Query query, OperationObserver delegate) Helper method to process a ResultSet. -
Uses of Query in org.apache.cayenne.dba
Methods in org.apache.cayenne.dba with parameters of type QueryModifier and TypeMethodDescriptionReturns an instance of SQLAction that should handle the query.Uses JdbcActionBuilder to create the right action. -
Uses of Query in org.apache.cayenne.dba.db2
Methods in org.apache.cayenne.dba.db2 with parameters of type Query -
Uses of Query in org.apache.cayenne.dba.derby
Methods in org.apache.cayenne.dba.derby with parameters of type Query -
Uses of Query in org.apache.cayenne.dba.firebird
Methods in org.apache.cayenne.dba.firebird with parameters of type Query -
Uses of Query in org.apache.cayenne.dba.frontbase
Methods in org.apache.cayenne.dba.frontbase with parameters of type Query -
Uses of Query in org.apache.cayenne.dba.h2
Methods in org.apache.cayenne.dba.h2 with parameters of type Query -
Uses of Query in org.apache.cayenne.dba.hsqldb
Methods in org.apache.cayenne.dba.hsqldb with parameters of type Query -
Uses of Query in org.apache.cayenne.dba.ingres
Methods in org.apache.cayenne.dba.ingres with parameters of type Query -
Uses of Query in org.apache.cayenne.dba.mysql
Methods in org.apache.cayenne.dba.mysql with parameters of type Query -
Uses of Query in org.apache.cayenne.dba.oracle
Methods in org.apache.cayenne.dba.oracle with parameters of type Query -
Uses of Query in org.apache.cayenne.dba.postgres
Methods in org.apache.cayenne.dba.postgres with parameters of type Query -
Uses of Query in org.apache.cayenne.dba.sqlite
Methods in org.apache.cayenne.dba.sqlite with parameters of type Query -
Uses of Query in org.apache.cayenne.dba.sqlserver
Methods in org.apache.cayenne.dba.sqlserver with parameters of type Query -
Uses of Query in org.apache.cayenne.map
Methods in org.apache.cayenne.map that return QueryModifier and TypeMethodDescriptionabstract QueryQueryDescriptor.buildQuery()Assembles Cayenne query instance of appropriate type from this descriptor.abstract QueryQueryDescriptor.buildQuery(Map<String, ?> parameters) Assembles Cayenne query instance of appropriate type from this descriptor, applying a map of named parameters to it. -
Uses of Query in org.apache.cayenne.query
Subinterfaces of Query in org.apache.cayenne.queryModifier and TypeInterfaceDescriptioninterfaceSelect<T>A common interface for grouping together different kinds of queries that return results.Classes in org.apache.cayenne.query that implement QueryModifier and TypeClassDescriptionclassclassBatchQuery and its descendants allow to group similar data for the batch database modifications, including inserts, updates and deletes.classColumnSelect<T>A helper builder for queries selecting individual properties based on the root object.classBatched delete query.classFluentSelect<T, S extends FluentSelect<T,S>> Base class forObjectSelectandColumnSelectclassA base superclass for queries that resolve into some other queries during the routing phase.classBatched INSERT query.classA query that represents a named parameterized non selecting query stored in the mapping.classMappedSelect<T>A query that represents a named parameterized selecting query stored in the mapping.classObjectSelect<T>A selecting query providing chainable API.classA SelectQuery to perform a prefetch based on another query.classFluent API for calling stored procedures.classA query based on Procedure.classSelectById<T>Deprecated, for removal: This API element is subject to removal in a future version.this query is a thin wrapper around anObjectSelect.classA generic query based on raw SQL and featuring fluent API.classSQLSelect<T>A selecting query based on raw SQL and featuring fluent API.classSQLTemplate<T>A query that executes unchanged (except for template preprocessing) "raw" SQL specified by the user.classBatched UPDATE query.Fields in org.apache.cayenne.query declared as QueryMethods in org.apache.cayenne.query that return QueryModifier and TypeMethodDescriptionprotected QueryAbstractMappedQuery.createReplacementQuery(EntityResolver resolver) protected abstract QueryIndirectQuery.createReplacementQuery(EntityResolver resolver) Creates a substitute query.protected QueryMappedSelect.createReplacementQuery(EntityResolver resolver) protected QueryProcedureCall.createReplacementQuery(EntityResolver resolver) protected QuerySelectById.createReplacementQuery(EntityResolver resolver) Deprecated, for removal: This API element is subject to removal in a future version.protected QuerySQLExec.createReplacementQuery(EntityResolver resolver) protected QuerySQLSelect.createReplacementQuery(EntityResolver resolver) QueryMetadata.getOriginatingQuery()Returns a query that originated this query.QueryMetadataProxy.getOriginatingQuery()protected QueryIndirectQuery.getReplacementQuery(EntityResolver resolver) Returns a replacement query, creating it on demand and caching it for reuse.Methods in org.apache.cayenne.query with parameters of type QueryModifier and TypeMethodDescriptionvoidFluentSelect.route(QueryRouter router, EntityResolver resolver, Query substitutedQuery) voidIndirectQuery.route(QueryRouter router, EntityResolver resolver, Query substitutedQuery) Delegates routing to a replacement query.default voidQuery.route(QueryRouter router, EntityResolver resolver, Query substitutedQuery) A callback method invoked by Cayenne during the routing phase of the query execution.voidA callback method that allows a query to set its preferred node during the routing phase.voidSQLTemplate.route(QueryRouter router, EntityResolver resolver, Query substitutedQuery)
ObjectContext.selectOne(Select)