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.
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.
SPIs for native SQL query support.
-
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.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 TypeInterfaceDescriptioninterfaceNativeQuery<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) Deprecated.UseQuery.setEntityGraph(EntityGraph, GraphSemantic)which is more type safeQuery.applyGraph(RootGraph graph, GraphSemantic semantic) Deprecated.UseQuery.setEntityGraph(EntityGraph, GraphSemantic)which is more type safeQuery.applyLoadGraph(RootGraph graph) Deprecated.UseQuery.setEntityGraph(EntityGraph, GraphSemantic)which is more type safeQueryProducer.createNamedQuery(String name) Deprecated.<R> Query<R> QueryProducer.createNamedQuery(String name, Class<R> resultClass) Create a typedQueryinstance for the given named query.QueryProducer.createQuery(CriteriaDelete deleteQuery) Deprecated.<R> Query<R> QueryProducer.createQuery(CriteriaQuery<R> criteriaQuery) Create aQueryfor the given JPACriteriaQuery.QueryProducer.createQuery(CriteriaUpdate updateQuery) Deprecated.<R> Query<R> QueryProducer.createQuery(TypedQueryReference<R> typedQueryReference) Create a typedQueryinstance 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 typedQueryobject, and because it is able to use the given result type to infer theselectlist, and even sometimes thefromclause.<R> Query<R> QueryProducer.createQuery(String queryString, Class<R> resultClass) Create a typedQueryinstance 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<? super 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.setLockOptions(LockOptions lockOptions) Deprecated, for removal: This API element is subject to removal in a future version.Query.setLockScope(PessimisticLockScope lockScope) Apply a scope to any pessimistic locking applied to the query.Query.setMaxResults(int maxResults) Query.setParameter(int parameter, Object argument) Bind the given argument to an ordinal query parameter.Query.setParameter(int parameter, Instant argument, TemporalType temporalType) Deprecated.Query.setParameter(int parameter, Calendar argument, TemporalType temporalType) Deprecated.Query.setParameter(int parameter, Date argument, TemporalType temporalType) Deprecated.Query.setParameter(int parameter, P argument, Type<P> type) Bind the given argument to an ordinal query parameter using the givenType.Query.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 theTypeto use.Query.setParameter(Parameter<Calendar> parameter, Calendar argument, TemporalType temporalType) Deprecated.Query.setParameter(Parameter<Date> parameter, Date argument, TemporalType temporalType) Deprecated.Query.setParameter(Parameter<T> parameter, T argument) QueryoverrideQuery.setParameter(String parameter, Object argument) Bind the given argument to a named query parameter.Query.setParameter(String parameter, Instant argument, TemporalType temporalType) Deprecated.Query.setParameter(String parameter, Calendar argument, TemporalType temporalType) Deprecated.Query.setParameter(String parameter, Date argument, TemporalType temporalType) Deprecated.Query.setParameter(String parameter, P argument, Type<P> type) Bind the given argument to a named query parameter using the givenType.Query.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 theTypeto use.Query.setParameter(QueryParameter<P> parameter, P argument, Type<P> type) Bind an argument to the query parameter represented by the givenQueryParameterusing the givenType.Query.setParameter(QueryParameter<P> parameter, P argument, Class<P> type) Bind an argument to the query parameter represented by the givenQueryParameterusing the given Class reference to attempt to determine theTypeto use.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, Type<P> type) Bind multiple arguments to an ordinal query parameter using the givenType.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 theTypeto use.Query.setParameterList(int parameter, P[] arguments, Type<P> type) Bind multiple arguments to an ordinal query parameter using the givenType.Query.setParameterList(int parameter, P[] arguments, Class<P> javaType) 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, Type<P> type) Bind multiple arguments to a named query parameter using the givenType.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 theTypeto use.Query.setParameterList(String parameter, P[] arguments, Type<P> type) Bind multiple arguments to a named query parameter using the givenType.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 theTypeto use.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, Type<P> type) Bind multiple arguments to the query parameter represented by the givenQueryParameter, inferring theType.Query.setParameterList(QueryParameter<P> parameter, Collection<? extends P> arguments, Class<P> javaType) Bind multiple arguments to the query parameter represented by the givenQueryParameterusing the given Class reference to attempt to determine theTypeto use.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, Type<P> type) Bind multiple arguments to the query parameter represented by the givenQueryParameter, inferring theType.Query.setParameterList(QueryParameter<P> parameter, P[] arguments, Class<P> javaType) Bind multiple arguments to the query parameter represented by the givenQueryParameterusing the givenClassreference to attempt to determine theTypeto use.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 givenMapfor 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) Query.setTimeout(Timeout timeout) Apply a timeout to the corresponding database query.<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 TypeInterfaceDescriptioninterfaceQueryImplementorspecialization 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 Query -
Uses of Query in org.hibernate.query.sql.spi
Subinterfaces of Query in org.hibernate.query.sql.spi
QueryProducer.createMutationQuery(CriteriaDelete)