Uses of Interface
org.hibernate.query.SelectionQuery
Packages that use SelectionQuery
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.
The JPA-standard criteria query API defines all the operations needed express
any query written in standard JPQL.
SPIs for HQL support.
Support for SelectionSpecification
and MutationSpecification which
is similar in concept to criteria queries, but focused on ease-of-use and less verbosity.
Contains a range of internal abstractions for dealing with query execution,
query plans, query options, and query parameters.
SPIs for native SQL query support.
This package defines a semantic model of HQL queries.
SPI-level SQM contracts
-
Uses of SelectionQuery in org.hibernate
Methods in org.hibernate with parameters of type SelectionQueryModifier and TypeMethodDescriptionvoid
EnabledFetchProfile.enable
(SelectionQuery<?> query) Enable the fetch profile represented by this object during execution of the given query. -
Uses of SelectionQuery in org.hibernate.engine.spi
Methods in org.hibernate.engine.spi that return SelectionQueryModifier and TypeMethodDescriptionSessionDelegatorBaseImpl.createNamedSelectionQuery
(String name) <R> SelectionQuery
<R> SessionDelegatorBaseImpl.createNamedSelectionQuery
(String name, Class<R> resultType) SessionLazyDelegator.createNamedSelectionQuery
(String name) <R> SelectionQuery
<R> SessionLazyDelegator.createNamedSelectionQuery
(String name, Class<R> resultType) SharedSessionDelegatorBaseImpl.createNamedSelectionQuery
(String name) <R> SelectionQuery
<R> SharedSessionDelegatorBaseImpl.createNamedSelectionQuery
(String name, Class<R> resultType) <R> SelectionQuery
<R> SessionDelegatorBaseImpl.createSelectionQuery
(CriteriaQuery<R> criteria) SessionDelegatorBaseImpl.createSelectionQuery
(String hqlString) <R> SelectionQuery
<R> SessionDelegatorBaseImpl.createSelectionQuery
(String hqlString, EntityGraph<R> resultGraph) <R> SelectionQuery
<R> SessionDelegatorBaseImpl.createSelectionQuery
(String hqlString, Class<R> resultType) <R> SelectionQuery
<R> SessionLazyDelegator.createSelectionQuery
(CriteriaQuery<R> criteria) SessionLazyDelegator.createSelectionQuery
(String hqlString) <R> SelectionQuery
<R> SessionLazyDelegator.createSelectionQuery
(String hqlString, EntityGraph<R> resultGraph) <R> SelectionQuery
<R> SessionLazyDelegator.createSelectionQuery
(String hqlString, Class<R> resultType) <R> SelectionQuery
<R> SharedSessionDelegatorBaseImpl.createSelectionQuery
(CriteriaQuery<R> criteria) SharedSessionDelegatorBaseImpl.createSelectionQuery
(String hqlString) <R> SelectionQuery
<R> SharedSessionDelegatorBaseImpl.createSelectionQuery
(String hqlString, EntityGraph<R> resultGraph) <R> SelectionQuery
<R> SharedSessionDelegatorBaseImpl.createSelectionQuery
(String hqlString, Class<R> resultType) -
Uses of SelectionQuery in org.hibernate.procedure.spi
Subinterfaces of SelectionQuery in org.hibernate.procedure.spi -
Uses of SelectionQuery in org.hibernate.query
Subinterfaces of SelectionQuery 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.interface
Query<R>
Within the context of an active session, an instance of this type represents an executable query, either: a query written in HQL, a named query written in HQL or native SQL, or a criteria query.Methods in org.hibernate.query that return SelectionQueryModifier and TypeMethodDescriptionQueryProducer.createNamedSelectionQuery
(String name) Deprecated.<R> SelectionQuery
<R> QueryProducer.createNamedSelectionQuery
(String name, Class<R> resultType) Create aSelectionQuery
instance for the namedNamedQuery
with the given result type.<R> SelectionQuery
<R> QueryProducer.createSelectionQuery
(CriteriaQuery<R> criteria) Create aSelectionQuery
reference for the givenCriteriaQuery
.QueryProducer.createSelectionQuery
(String hqlString) Deprecated.The overloaded formQueryProducer.createSelectionQuery(String, Class)
which takes a result type is strongly recommended in preference to this method, since it returns a typedSelectionQuery
object, and because it is able to use the given result type to infer theselect
list, and even sometimes thefrom
clause.<R> SelectionQuery
<R> QueryProducer.createSelectionQuery
(String hqlString, EntityGraph<R> resultGraph) Create aSelectionQuery
instance for the given HQL query string and givenEntityGraph
, which is interpreted as a load graph.<R> SelectionQuery
<R> QueryProducer.createSelectionQuery
(String hqlString, Class<R> resultType) Create aSelectionQuery
instance for the given HQL query string and given query result type.SelectionQuery.disableFetchProfile
(String profileName) Disable the fetch profile with the given name in this session.SelectionQuery.enableFetchProfile
(String profileName) Enable the fetch profile with the given name during execution of this query.SelectionQuery.setCacheable
(boolean cacheable) Enable/disable second level query (result) caching for this query.SelectionQuery.setCacheMode
(CacheMode cacheMode) Set the currentCacheMode
in effect for this query.SelectionQuery.setCacheRegion
(String cacheRegion) Set the name of the cache region where query results should be cached (assumingisCacheable()
).SelectionQuery.setCacheRetrieveMode
(CacheRetrieveMode cacheRetrieveMode) SelectionQuery.setCacheStoreMode
(CacheStoreMode cacheStoreMode) SelectionQuery.setComment
(String comment) SelectionQuery.setEntityGraph
(EntityGraph<? super R> graph, GraphSemantic semantic) Apply anEntityGraph
to the query.SelectionQuery.setFetchSize
(int fetchSize) Sets a JDBC fetch size hint for the query.SelectionQuery.setFirstResult
(int startPosition) Set the first query result row to return.SelectionQuery.setFlushMode
(FlushModeType flushMode) Deprecated.SelectionQuery.setFollowOnLocking
(boolean enable) Deprecated.Use setFollowOnStrategy(Locking.FollowOn) insteadSelectionQuery.setFollowOnStrategy
(Locking.FollowOn followOnStrategy) Specifies whether follow-on locking should be appliedSelectionQuery.setHibernateFlushMode
(FlushMode flushMode) Deprecated.SelectionQuery.setHibernateLockMode
(LockMode lockMode) Specify the rootLockMode
for the querySelectionQuery.setLockMode
(LockModeType lockMode) Specify the rootLockModeType
for the querySelectionQuery.setLockMode
(String alias, LockMode lockMode) Deprecated.Use setLockScope(Locking.Scope) instead.SelectionQuery.setLockScope
(PessimisticLockScope lockScope) Deprecated.Use setLockScope(Locking.Scope) instead.SelectionQuery.setLockScope
(Locking.Scope lockScope) Apply a scope to any pessimistic locking applied to the query.SelectionQuery.setMaxResults
(int maxResults) Set the maximum number of query result rows to return.Set the page of results to return.SelectionQuery.setParameter
(int position, Object value) SelectionQuery.setParameter
(int position, Instant value, TemporalType temporalType) Deprecated.SelectionQuery.setParameter
(int position, Calendar value, TemporalType temporalType) Deprecated.SelectionQuery.setParameter
(int position, Date value, TemporalType temporalType) Deprecated.<P> SelectionQuery
<R> SelectionQuery.setParameter
(int position, P value, Type<P> type) <P> SelectionQuery
<R> SelectionQuery.setParameter
(int position, P value, Class<P> type) SelectionQuery.setParameter
(Parameter<Calendar> param, Calendar value, TemporalType temporalType) Deprecated.SelectionQuery.setParameter
(Parameter<Date> param, Date value, TemporalType temporalType) Deprecated.<T> SelectionQuery
<R> SelectionQuery.setParameter
(Parameter<T> param, T value) SelectionQuery.setParameter
(String name, Object value) SelectionQuery.setParameter
(String name, Instant value, TemporalType temporalType) Deprecated.SelectionQuery.setParameter
(String name, Calendar value, TemporalType temporalType) Deprecated.SelectionQuery.setParameter
(String name, Date value, TemporalType temporalType) Deprecated.<P> SelectionQuery
<R> SelectionQuery.setParameter
(String name, P value, Type<P> type) <P> SelectionQuery
<R> SelectionQuery.setParameter
(String name, P value, Class<P> type) <P> SelectionQuery
<R> SelectionQuery.setParameter
(QueryParameter<P> parameter, P val, Type<P> type) <P> SelectionQuery
<R> SelectionQuery.setParameter
(QueryParameter<P> parameter, P value, Class<P> type) <T> SelectionQuery
<R> SelectionQuery.setParameter
(QueryParameter<T> parameter, T value) SelectionQuery.setParameterList
(int position, Object[] values) SelectionQuery.setParameterList
(int position, Collection values) <P> SelectionQuery
<R> SelectionQuery.setParameterList
(int position, Collection<? extends P> values, Type<P> type) <P> SelectionQuery
<R> SelectionQuery.setParameterList
(int position, Collection<? extends P> values, Class<P> javaType) <P> SelectionQuery
<R> SelectionQuery.setParameterList
(int position, P[] values, Type<P> type) <P> SelectionQuery
<R> SelectionQuery.setParameterList
(int position, P[] values, Class<P> javaType) SelectionQuery.setParameterList
(String name, Object[] values) SelectionQuery.setParameterList
(String name, Collection values) <P> SelectionQuery
<R> SelectionQuery.setParameterList
(String name, Collection<? extends P> values, Type<P> type) <P> SelectionQuery
<R> SelectionQuery.setParameterList
(String name, Collection<? extends P> values, Class<P> javaType) <P> SelectionQuery
<R> SelectionQuery.setParameterList
(String name, P[] values, Type<P> type) <P> SelectionQuery
<R> SelectionQuery.setParameterList
(String name, P[] values, Class<P> javaType) <P> SelectionQuery
<R> SelectionQuery.setParameterList
(QueryParameter<P> parameter, Collection<? extends P> values) <P> SelectionQuery
<R> SelectionQuery.setParameterList
(QueryParameter<P> parameter, Collection<? extends P> values, Type<P> type) <P> SelectionQuery
<R> SelectionQuery.setParameterList
(QueryParameter<P> parameter, Collection<? extends P> values, Class<P> javaType) <P> SelectionQuery
<R> SelectionQuery.setParameterList
(QueryParameter<P> parameter, P[] values) <P> SelectionQuery
<R> SelectionQuery.setParameterList
(QueryParameter<P> parameter, P[] values, Type<P> type) <P> SelectionQuery
<R> SelectionQuery.setParameterList
(QueryParameter<P> parameter, P[] values, Class<P> javaType) SelectionQuery.setProperties
(Object bean) SelectionQuery.setProperties
(Map bean) SelectionQuery.setQueryFlushMode
(QueryFlushMode queryFlushMode) SelectionQuery.setQueryPlanCacheable
(boolean queryPlanCacheable) Enable/disable query plan caching for this query.SelectionQuery.setReadOnly
(boolean readOnly) Set the read-only/modifiable mode for entities and proxies loaded by thisQuery
.SelectionQuery.setResultListTransformer
(ResultListTransformer<R> transformer) Set aResultListTransformer
.SelectionQuery.setTimeout
(int timeout) <T> SelectionQuery
<T> SelectionQuery.setTupleTransformer
(TupleTransformer<T> transformer) Set aTupleTransformer
. -
Uses of SelectionQuery in org.hibernate.query.criteria
Methods in org.hibernate.query.criteria that return SelectionQuery -
Uses of SelectionQuery in org.hibernate.query.hql.spi
Subinterfaces of SelectionQuery in org.hibernate.query.hql.spiModifier and TypeInterfaceDescriptioninterface
QueryImplementor
specialization for SQM-based Query references -
Uses of SelectionQuery in org.hibernate.query.specification
Methods in org.hibernate.query.specification that return SelectionQueryModifier and TypeMethodDescriptionProjectionSpecification.createQuery
(EntityManager entityManager) ProjectionSpecification.createQuery
(Session session) ProjectionSpecification.createQuery
(StatelessSession session) SelectionSpecification.createQuery
(EntityManager entityManager) SelectionSpecification.createQuery
(Session session) SelectionSpecification.createQuery
(StatelessSession session) SimpleProjectionSpecification.createQuery
(EntityManager entityManager) SimpleProjectionSpecification.createQuery
(Session session) SimpleProjectionSpecification.createQuery
(StatelessSession session) -
Uses of SelectionQuery in org.hibernate.query.spi
Subinterfaces of SelectionQuery in org.hibernate.query.spiClasses in org.hibernate.query.spi that implement SelectionQueryModifier and TypeClassDescriptionclass
Base implementation ofQuery
.class
Base implementation ofSelectionQuery
.Methods in org.hibernate.query.spi that return SelectionQueryModifier and TypeMethodDescriptionAbstractSelectionQuery.disableFetchProfile
(String profileName) AbstractSelectionQuery.enableFetchProfile
(String profileName) AbstractSelectionQuery.setCacheable
(boolean cacheable) AbstractSelectionQuery.setCacheMode
(CacheMode cacheMode) AbstractSelectionQuery.setCacheRegion
(String regionName) AbstractSelectionQuery.setCacheRetrieveMode
(CacheRetrieveMode cacheRetrieveMode) AbstractSelectionQuery.setCacheStoreMode
(CacheStoreMode cacheStoreMode) AbstractSelectionQuery.setComment
(String comment) AbstractSelectionQuery.setEntityGraph
(EntityGraph<? super R> graph, GraphSemantic semantic) AbstractSelectionQuery.setFetchSize
(int fetchSize) AbstractSelectionQuery.setFirstResult
(int startPosition) AbstractSelectionQuery.setFlushMode
(FlushModeType flushMode) AbstractSelectionQuery.setFollowOnLocking
(boolean enable) Specifies whether follow-on locking should be applied?AbstractSelectionQuery.setFollowOnStrategy
(Locking.FollowOn followOnStrategy) AbstractSelectionQuery.setHibernateFlushMode
(FlushMode flushMode) AbstractSelectionQuery.setHibernateLockMode
(LockMode lockMode) Specify the root LockMode for the queryAbstractSelectionQuery.setLockMode
(LockModeType lockMode) Specify the root LockModeType for the queryAbstractSelectionQuery.setLockMode
(String alias, LockMode lockMode) AbstractSelectionQuery.setLockScope
(PessimisticLockScope lockScope) AbstractSelectionQuery.setLockScope
(Locking.Scope lockScope) AbstractSelectionQuery.setMaxResults
(int maxResults) AbstractSelectionQuery.setParameter
(int position, Object value) AbstractSelectionQuery.setParameter
(int position, Instant value, TemporalType temporalType) Deprecated.AbstractSelectionQuery.setParameter
(int position, Calendar value, TemporalType temporalType) Deprecated.AbstractSelectionQuery.setParameter
(int position, Date value, TemporalType temporalType) Deprecated.<P> SelectionQuery
<R> AbstractSelectionQuery.setParameter
(int position, P value, Type<P> type) <P> SelectionQuery
<R> AbstractSelectionQuery.setParameter
(int position, P value, Class<P> javaType) AbstractSelectionQuery.setParameter
(Parameter<Calendar> param, Calendar value, TemporalType temporalType) Deprecated.AbstractSelectionQuery.setParameter
(Parameter<Date> param, Date value, TemporalType temporalType) Deprecated.<P> SelectionQuery
<R> AbstractSelectionQuery.setParameter
(Parameter<P> parameter, P value) AbstractSelectionQuery.setParameter
(String name, Object value) AbstractSelectionQuery.setParameter
(String name, Instant value, TemporalType temporalType) Deprecated.AbstractSelectionQuery.setParameter
(String name, Calendar value, TemporalType temporalType) Deprecated.AbstractSelectionQuery.setParameter
(String name, Date value, TemporalType temporalType) Deprecated.<P> SelectionQuery
<R> AbstractSelectionQuery.setParameter
(String name, P value, Type<P> type) <P> SelectionQuery
<R> AbstractSelectionQuery.setParameter
(String name, P value, Class<P> javaType) <P> SelectionQuery
<R> AbstractSelectionQuery.setParameter
(QueryParameter<P> parameter, P value) <P> SelectionQuery
<R> AbstractSelectionQuery.setParameter
(QueryParameter<P> parameter, P value, Type<P> type) <P> SelectionQuery
<R> AbstractSelectionQuery.setParameter
(QueryParameter<P> parameter, P value, Class<P> javaType) AbstractSelectionQuery.setParameterList
(int position, Object[] values) AbstractSelectionQuery.setParameterList
(int position, Collection values) <P> SelectionQuery
<R> AbstractSelectionQuery.setParameterList
(int position, Collection<? extends P> values, Type<P> type) <P> SelectionQuery
<R> AbstractSelectionQuery.setParameterList
(int position, Collection<? extends P> values, Class<P> javaType) <P> SelectionQuery
<R> AbstractSelectionQuery.setParameterList
(int position, P[] values, Type<P> type) <P> SelectionQuery
<R> AbstractSelectionQuery.setParameterList
(int position, P[] values, Class<P> javaType) AbstractSelectionQuery.setParameterList
(String name, Object[] values) AbstractSelectionQuery.setParameterList
(String name, Collection values) <P> SelectionQuery
<R> AbstractSelectionQuery.setParameterList
(String name, Collection<? extends P> values, Type<P> type) <P> SelectionQuery
<R> AbstractSelectionQuery.setParameterList
(String name, Collection<? extends P> values, Class<P> javaType) <P> SelectionQuery
<R> AbstractSelectionQuery.setParameterList
(String name, P[] values, Type<P> type) <P> SelectionQuery
<R> AbstractSelectionQuery.setParameterList
(String name, P[] values, Class<P> javaType) <P> SelectionQuery
<R> AbstractSelectionQuery.setParameterList
(QueryParameter<P> parameter, Collection<? extends P> values) <P> SelectionQuery
<R> AbstractSelectionQuery.setParameterList
(QueryParameter<P> parameter, Collection<? extends P> values, Type<P> type) <P> SelectionQuery
<R> AbstractSelectionQuery.setParameterList
(QueryParameter<P> parameter, Collection<? extends P> values, Class<P> javaType) <P> SelectionQuery
<R> AbstractSelectionQuery.setParameterList
(QueryParameter<P> parameter, P[] values) <P> SelectionQuery
<R> AbstractSelectionQuery.setParameterList
(QueryParameter<P> parameter, P[] values, Type<P> type) <P> SelectionQuery
<R> AbstractSelectionQuery.setParameterList
(QueryParameter<P> parameter, P[] values, Class<P> javaType) AbstractSelectionQuery.setProperties
(Object bean) AbstractSelectionQuery.setProperties
(Map map) AbstractSelectionQuery.setQueryFlushMode
(QueryFlushMode queryFlushMode) AbstractSelectionQuery.setQueryPlanCacheable
(boolean queryPlanCacheable) AbstractSelectionQuery.setReadOnly
(boolean readOnly) AbstractSelectionQuery.setTimeout
(int timeout) AbstractSelectionQuery.setTimeout
(Timeout timeout) -
Uses of SelectionQuery in org.hibernate.query.sql.spi
Subinterfaces of SelectionQuery in org.hibernate.query.sql.spi -
Uses of SelectionQuery in org.hibernate.query.sqm
Subinterfaces of SelectionQuery in org.hibernate.query.sqm -
Uses of SelectionQuery in org.hibernate.query.sqm.spi
Subinterfaces of SelectionQuery in org.hibernate.query.sqm.spiClasses in org.hibernate.query.sqm.spi that implement SelectionQueryMethods in org.hibernate.query.sqm.spi that return SelectionQueryModifier and TypeMethodDescriptionDelegatingSqmSelectionQueryImplementor.setFollowOnStrategy
(Locking.FollowOn followOnStrategy) DelegatingSqmSelectionQueryImplementor.setLockScope
(Locking.Scope lockScope)
QueryProducer.createNamedSelectionQuery(String, Class)