Uses of Interface
org.hibernate.query.Query
Packages that use Query
Package
Description
This package defines the central Hibernate APIs, beginning with
SessionFactory
, which represents an instance of
Hibernate at runtime and is the source of new instances of
Session
and StatelessSession
,
the most important APIs exposing persistence-related operations for
entities.This package defines some central internal SPI abstractions
used throughout the implementation of Hibernate.
An internal package containing implementations of central Hibernate APIs,
mostly defined in
org.hibernate
.Defines the internal implementation of the stored procedure SPI.
Defines an SPI for calling stored procedures and functions.
Everything related to HQL/JPQL, native SQL, and criteria queries.
SPIs for HQL support.
Contains a range of internal abstractions for dealing with query execution,
query plans, query options, and query parameters.
Implementation of the SPIs for native SQL query support.
SPIs for native SQL query support.
Package for the SQM-backed Query implementation details
-
Uses of Query in org.hibernate
Methods in org.hibernate that return QueryModifier and TypeMethodDescriptionSession.createNamedQuery
(String name) Deprecated.<R> Query<R>
Session.createNamedQuery
(String name, Class<R> resultClass) Session.createQuery
(CriteriaDelete deleteQuery) Deprecated.<R> Query<R>
Session.createQuery
(CriteriaQuery<R> criteriaQuery) Session.createQuery
(CriteriaUpdate updateQuery) Deprecated.<R> Query<R>
Session.createQuery
(TypedQueryReference<R> typedQueryReference) Session.createQuery
(String queryString) Deprecated.<R> Query<R>
Session.createQuery
(String queryString, Class<R> resultClass) -
Uses of Query in org.hibernate.engine.spi
Methods in org.hibernate.engine.spi that return QueryModifier and TypeMethodDescriptionSessionLazyDelegator.createNamedQuery
(String name) Deprecated.<R> Query<R>
SessionLazyDelegator.createNamedQuery
(String name, Class<R> resultClass) SessionLazyDelegator.createQuery
(CriteriaDelete deleteQuery) Deprecated.<R> Query<R>
SessionLazyDelegator.createQuery
(CriteriaQuery<R> criteriaQuery) SessionLazyDelegator.createQuery
(CriteriaUpdate updateQuery) Deprecated.<R> Query<R>
SessionLazyDelegator.createQuery
(TypedQueryReference<R> typedQueryReference) SessionLazyDelegator.createQuery
(String queryString) Deprecated.<R> Query<R>
SessionLazyDelegator.createQuery
(String queryString, Class<R> resultClass) SessionLazyDelegator.getNamedQuery
(String queryName) Deprecated. -
Uses of Query in org.hibernate.envers.internal.entities.mapper.id
Methods in org.hibernate.envers.internal.entities.mapper.id with parameters of type Query -
Uses of Query in org.hibernate.envers.internal.entities.mapper.relation.query
Methods in org.hibernate.envers.internal.entities.mapper.relation.query that return QueryModifier and TypeMethodDescriptionAbstractRelationQueryGenerator.getQuery
(SharedSessionContractImplementor session, Object primaryKey, Number revision, boolean removed) RelationQueryGenerator.getQuery
(SharedSessionContractImplementor session, Object primaryKey, Number revision, boolean removed) Return the query to fetch the relation. -
Uses of Query in org.hibernate.envers.internal.revisioninfo
Methods in org.hibernate.envers.internal.revisioninfo that return QueryModifier and TypeMethodDescriptionQuery<?>
RevisionInfoQueryCreator.getRevisionDateQuery
(Session session, Number revision) Query<?>
RevisionInfoQueryCreator.getRevisionNumberForDateQuery
(Session session, Instant instant) Query<?>
RevisionInfoQueryCreator.getRevisionNumberForDateQuery
(Session session, LocalDateTime localDateTime) Query<?>
RevisionInfoQueryCreator.getRevisionNumberForDateQuery
(Session session, Date date) Query<?>
RevisionInfoQueryCreator.getRevisionsQuery
(Session session, Set<Number> revisions) -
Uses of Query in org.hibernate.envers.internal.tools.query
Methods in org.hibernate.envers.internal.tools.query that return Query -
Uses of Query in org.hibernate.envers.query.internal.impl
Methods in org.hibernate.envers.query.internal.impl that return QueryMethods in org.hibernate.envers.query.internal.impl with parameters of type QueryModifier and TypeMethodDescriptionprotected void
AbstractAuditQuery.setQueryProperties
(Query query) -
Uses of Query in org.hibernate.internal
Methods in org.hibernate.internal with parameters of type QueryModifier and TypeMethodDescriptionprotected void
AbstractSharedSessionContract.applyQuerySettingsAndHints
(Query<?> query) protected void
SessionImpl.applyQuerySettingsAndHints
(Query<?> query) -
Uses of Query in org.hibernate.procedure.internal
Classes in org.hibernate.procedure.internal that implement QueryMethods in org.hibernate.procedure.internal that return Query -
Uses of Query in org.hibernate.procedure.spi
Subinterfaces of Query in org.hibernate.procedure.spi -
Uses of Query in org.hibernate.query
Subinterfaces of Query in org.hibernate.queryModifier and TypeInterfaceDescriptioninterface
NativeQuery<T>
Within the context of an active session, an instance of this type represents an executable query written in the native SQL dialect of the underlying database.Methods in org.hibernate.query that return QueryModifier and TypeMethodDescriptionQuery.addQueryHint
(String hint) Add a database query hint to the SQL query.Query.applyFetchGraph
(RootGraph graph) Apply the given graph using fetch semantics.Query.applyGraph
(RootGraph graph, GraphSemantic semantic) Apply the given graph using the given semanticQuery.applyLoadGraph
(RootGraph graph) Apply the given graph using load semantics.QueryProducer.createNamedQuery
(String name) Deprecated.<R> Query<R>
QueryProducer.createNamedQuery
(String name, Class<R> resultClass) Create a typedQuery
instance for the given named query.QueryProducer.createQuery
(CriteriaDelete deleteQuery) Deprecated.<R> Query<R>
QueryProducer.createQuery
(CriteriaQuery<R> criteriaQuery) Create aQuery
for the given JPACriteriaQuery
.QueryProducer.createQuery
(CriteriaUpdate updateQuery) Deprecated.<R> Query<R>
QueryProducer.createQuery
(TypedQueryReference<R> typedQueryReference) Create a typedQuery
instance for the given typed query reference.QueryProducer.createQuery
(String queryString) Deprecated.The overloaded formQueryProducer.createQuery(String, Class)
which takes a result type is strongly recommended in preference to this method, since it returns a typedQuery
object, and because it is able to use the given result type to infer theselect
list, and even sometimes thefrom
clause.<R> Query<R>
QueryProducer.createQuery
(String queryString, Class<R> resultClass) Create a typedQuery
instance for the given HQL query string and given query result type.Query.disableFetchProfile
(String profileName) Query.enableFetchProfile
(String profileName) QueryProducer.getNamedQuery
(String queryName) Deprecated.Query.setCacheable
(boolean cacheable) Query.setCacheMode
(CacheMode cacheMode) Query.setCacheRegion
(String cacheRegion) Query.setCacheRetrieveMode
(CacheRetrieveMode cacheRetrieveMode) Query.setCacheStoreMode
(CacheStoreMode cacheStoreMode) Query.setComment
(String comment) Set the comment for this query.Query.setEntityGraph
(EntityGraph<R> graph, GraphSemantic semantic) Query.setFetchSize
(int fetchSize) Query.setFirstResult
(int startPosition) Query.setFlushMode
(FlushModeType flushMode) Deprecated.Query.setHibernateFlushMode
(FlushMode flushMode) Deprecated.Query.setLockMode
(LockModeType lockMode) Query.setLockMode
(String alias, LockMode lockMode) Set theLockMode
to use for particular alias defined in theFROM
clause of the query.Query.setLockOptions
(LockOptions lockOptions) Apply the given lock options to this query.Query.setMaxResults
(int maxResult) Query.setParameter
(int parameter, Object argument) Bind the given argument to an ordinal query parameter.Query.setParameter
(int parameter, Instant argument, TemporalType temporalType) Bind anInstant
value to the ordinal query parameter using just the portion indicated by the givenTemporalType
.Query.setParameter
(int parameter, Calendar argument, TemporalType temporalType) Query
overrideQuery.setParameter
(int parameter, Date argument, TemporalType temporalType) Query
overrideQuery.setParameter
(int parameter, P argument, Class<P> type) Bind the given argument to an ordinal query parameter using the given Class reference to attempt to determine theBindableType
to use.Query.setParameter
(int parameter, P argument, BindableType<P> type) Bind the given argument to an ordinal query parameter using the givenBindableType
.Query.setParameter
(Parameter<Calendar> parameter, Calendar argument, TemporalType temporalType) Query
overrideQuery.setParameter
(Parameter<Date> parameter, Date argument, TemporalType temporalType) Query
overrideQuery.setParameter
(Parameter<T> parameter, T argument) Query
overrideQuery.setParameter
(String parameter, Object argument) Bind the given argument to a named query parameter.Query.setParameter
(String parameter, Instant argument, TemporalType temporalType) Bind anInstant
value to the named query parameter using just the portion indicated by the givenTemporalType
.Query.setParameter
(String parameter, Calendar argument, TemporalType temporalType) Query
overrideQuery.setParameter
(String parameter, Date argument, TemporalType temporalType) Query
overrideQuery.setParameter
(String parameter, P argument, Class<P> type) Bind the given argument to a named query parameter using the given Class reference to attempt to determine theBindableType
to use.Query.setParameter
(String parameter, P argument, BindableType<P> type) Bind the given argument to a named query parameter using the givenBindableType
.Query.setParameter
(QueryParameter<P> parameter, P argument, Class<P> type) Bind an argument to the query parameter represented by the givenQueryParameter
using the given Class reference to attempt to determine theBindableType
to use.Query.setParameter
(QueryParameter<P> parameter, P argument, BindableType<P> type) Bind an argument to the query parameter represented by the givenQueryParameter
using the givenBindableType
.Query.setParameter
(QueryParameter<T> parameter, T argument) Bind an argument to the query parameter represented by the givenQueryParameter
.Query.setParameterList
(int parameter, Object[] arguments) Bind multiple arguments to an ordinal query parameter.Query.setParameterList
(int parameter, Collection arguments) Bind multiple arguments to an ordinal query parameter.Query.setParameterList
(int parameter, Collection<? extends P> arguments, Class<P> javaType) Bind multiple arguments to an ordinal query parameter using the given Class reference to attempt to determine theBindableType
to use.Query.setParameterList
(int parameter, Collection<? extends P> arguments, BindableType<P> type) Bind multiple arguments to an ordinal query parameter using the givenBindableType
.Query.setParameterList
(int parameter, P[] arguments, Class<P> javaType) Bind multiple arguments to an ordinal query parameter using the givenClass
reference to attempt to determine theBindableType
to use.Query.setParameterList
(int parameter, P[] arguments, BindableType<P> type) Bind multiple arguments to an ordinal query parameter using the givenBindableType
.Query.setParameterList
(String parameter, Object[] values) Bind multiple arguments to a named query parameter.Query.setParameterList
(String parameter, Collection arguments) Bind multiple arguments to a named query parameter.Query.setParameterList
(String parameter, Collection<? extends P> arguments, Class<P> javaType) Bind multiple arguments to a named query parameter using the given Class reference to attempt to determine theBindableType
to use.Query.setParameterList
(String parameter, Collection<? extends P> arguments, BindableType<P> type) Bind multiple arguments to a named query parameter using the givenBindableType
.Query.setParameterList
(String parameter, P[] arguments, Class<P> javaType) Bind multiple arguments to a named query parameter using the given Class reference to attempt to determine theBindableType
to use.Query.setParameterList
(String parameter, P[] arguments, BindableType<P> type) Bind multiple arguments to a named query parameter using the givenBindableType
.Query.setParameterList
(QueryParameter<P> parameter, Collection<? extends P> arguments) Bind multiple arguments to the query parameter represented by the givenQueryParameter
.Query.setParameterList
(QueryParameter<P> parameter, Collection<? extends P> arguments, Class<P> javaType) Bind multiple arguments to the query parameter represented by the givenQueryParameter
using the given Class reference to attempt to determine theBindableType
to use.Query.setParameterList
(QueryParameter<P> parameter, Collection<? extends P> arguments, BindableType<P> type) Bind multiple arguments to the query parameter represented by the givenQueryParameter
, inferring theBindableType
.Query.setParameterList
(QueryParameter<P> parameter, P[] arguments) Bind multiple arguments to the query parameter represented by the givenQueryParameter
.Query.setParameterList
(QueryParameter<P> parameter, P[] arguments, Class<P> javaType) Bind multiple arguments to the query parameter represented by the givenQueryParameter
using the givenClass
reference to attempt to determine theBindableType
to use.Query.setParameterList
(QueryParameter<P> parameter, P[] arguments, BindableType<P> type) Bind multiple arguments to the query parameter represented by the givenQueryParameter
, inferring theBindableType
.Query.setProperties
(Object bean) Bind the property values of the given bean to named parameters of the query, matching property names with parameter names and mapping property types to Hibernate types using heuristics.Query.setProperties
(Map bean) Bind the values of the givenMap
for each named parameters of the query, matching key names with parameter names and mapping value types to Hibernate types using heuristics.Query.setQueryFlushMode
(QueryFlushMode queryFlushMode) Query.setReadOnly
(boolean readOnly) Query.setResultListTransformer
(ResultListTransformer<R> transformer) Set aResultListTransformer
.default <T> Query<T>
Query.setResultTransformer
(ResultTransformer<T> transformer) Query.setTimeout
(int timeout) <T> Query<T>
Query.setTupleTransformer
(TupleTransformer<T> transformer) Set aTupleTransformer
. -
Uses of Query in org.hibernate.query.hql.spi
Subinterfaces of Query in org.hibernate.query.hql.spiModifier and TypeInterfaceDescriptioninterface
QueryImplementor
specialization for SQM-based Query references -
Uses of Query in org.hibernate.query.spi
Subinterfaces of Query in org.hibernate.query.spiClasses in org.hibernate.query.spi that implement QueryMethods in org.hibernate.query.spi that return Query -
Uses of Query in org.hibernate.query.sql.internal
Classes in org.hibernate.query.sql.internal that implement QueryMethods in org.hibernate.query.sql.internal that return Query -
Uses of Query in org.hibernate.query.sql.spi
Subinterfaces of Query in org.hibernate.query.sql.spi -
Uses of Query in org.hibernate.query.sqm.internal
Classes in org.hibernate.query.sqm.internal that implement QueryMethods in org.hibernate.query.sqm.internal that return QueryModifier and TypeMethodDescriptionQuerySqmImpl.disableFetchProfile
(String profileName) QuerySqmImpl.enableFetchProfile
(String profileName) QuerySqmImpl.setEntityGraph
(EntityGraph<R> graph, GraphSemantic semantic)
QueryProducer.createMutationQuery(CriteriaDelete)