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.
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.
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.
-
Uses of SelectionQuery in org.hibernate
Methods in org.hibernate that return SelectionQueryModifier and TypeMethodDescription<R> SelectionQuery<R> Session.createNamedQuery(String name, Class<R> resultClass) Create a typedQueryinstance for the given named query.<R> SelectionQuery<R> SharedSessionContract.createNamedQuery(String name, Class<R> resultClass) Create a typedQueryinstance for the given named query.<R> SelectionQuery<R> SharedSessionContract.createNamedSelectionQuery(String name, Class<R> resultType) Create aSelectionQueryinstance for the namedNamedQuerywith the given result type.<R> SelectionQuery<R> Session.createQuery(CriteriaQuery<R> criteriaQuery) Create aQueryfor the given JPACriteriaQuery.<R> SelectionQuery<R> Session.createQuery(TypedQueryReference<R> typedQueryReference) Create a typedQueryinstance for the given typed query reference.<R> SelectionQuery<R> Session.createQuery(String queryString, Class<R> resultClass) Create a typedQueryinstance for the given HQL query string and given query result type.<R> SelectionQuery<R> SharedSessionContract.createQuery(CriteriaQuery<R> criteriaQuery) Create aQueryfor the given JPACriteriaQuery.<T> SelectionQuery<T> SharedSessionContract.createQuery(CriteriaSelect<T> criteriaSelect) <R> SelectionQuery<R> SharedSessionContract.createQuery(TypedQueryReference<R> typedQueryReference) Create a typedQueryinstance for the given typed query reference.<T> SelectionQuery<T> SharedSessionContract.createQuery(String s, EntityGraph<T> entityGraph) <R> SelectionQuery<R> SharedSessionContract.createQuery(String queryString, Class<R> resultClass) Create a typedQueryinstance for the given HQL query string and given query result type.<R> SelectionQuery<R> SharedSessionContract.createSelectionQuery(CriteriaQuery<R> criteria) Create aSelectionQueryreference for the givenCriteriaQuery.<R> SelectionQuery<R> SharedSessionContract.createSelectionQuery(CriteriaSelect<R> criteria) Create aSelectionQueryreference for the givenCriteriaQuery.<R> SelectionQuery<R> SharedSessionContract.createSelectionQuery(String hqlString, EntityGraph<R> resultGraph) Create aSelectionQueryinstance for the given HQL query string and givenEntityGraph, which is interpreted as a load graph.<R> SelectionQuery<R> SharedSessionContract.createSelectionQuery(String hqlString, Class<R> resultType) Create aSelectionQueryinstance for the given HQL query string and given query result type.Methods in org.hibernate with parameters of type SelectionQueryModifier and TypeMethodDescriptionvoidEnabledFetchProfile.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 TypeMethodDescription<R> SelectionQuery<R> SessionLazyDelegator.createNamedQuery(String name, Class<R> resultClass) <R> SelectionQuery<R> SessionDelegatorBaseImpl.createNamedSelectionQuery(String name, Class<R> resultType) <R> SelectionQuery<R> SessionLazyDelegator.createNamedSelectionQuery(String name, Class<R> resultType) <R> SelectionQuery<R> SharedSessionDelegatorBaseImpl.createNamedSelectionQuery(String name, Class<R> resultType) <R> SelectionQuery<R> SessionLazyDelegator.createQuery(CriteriaQuery<R> criteriaQuery) <T> SelectionQuery<T> SessionLazyDelegator.createQuery(CriteriaSelect<T> selectQuery) <R> SelectionQuery<R> SessionLazyDelegator.createQuery(TypedQueryReference<R> typedQueryReference) <T> SelectionQuery<T> SessionLazyDelegator.createQuery(String query, EntityGraph<T> entityGraph) <R> SelectionQuery<R> SessionLazyDelegator.createQuery(String queryString, Class<R> resultClass) <R> SelectionQuery<R> SessionDelegatorBaseImpl.createSelectionQuery(CriteriaQuery<R> criteria) <R> SelectionQuery<R> SessionDelegatorBaseImpl.createSelectionQuery(CriteriaSelect<R> criteria) <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) <R> SelectionQuery<R> SessionLazyDelegator.createSelectionQuery(CriteriaSelect<R> criteria) <R> SelectionQuery<R> SessionLazyDelegator.createSelectionQuery(String hqlString, EntityGraph<R> resultGraph) <R> SelectionQuery<R> SessionLazyDelegator.createSelectionQuery(String hqlString, Class<R> resultType) -
Uses of SelectionQuery in org.hibernate.query
Subinterfaces of SelectionQuery 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 SelectionQueryModifier and TypeMethodDescriptionCommonQueryContract.asSelectionQuery()Casts this query as aSelectionQuery.<X> SelectionQuery<X> CommonQueryContract.asSelectionQuery(EntityGraph<X> entityGraph) Casts this query as aSelectionQuerywith the given result graph.<X> SelectionQuery<X> CommonQueryContract.asSelectionQuery(EntityGraph<X> entityGraph, GraphSemantic graphSemantic) Overload of Query.withEntityGraph(EntityGraph) allowing a specific semantic (load/fetch) for the graph.<R> SelectionQuery<R> CommonQueryContract.asSelectionQuery(Class<R> type) Casts this query as aSelectionQuerywith the given result type.Query.asSelectionQuery()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.<R> SelectionQuery<R> Covariant override of Query.ofType(Class).NativeQuery.setCacheable(boolean cacheable) SelectionQuery.setCacheable(boolean cacheable) Enable/disable second level query (result) caching for this query.NativeQuery.setCacheMode(CacheMode cacheMode) SelectionQuery.setCacheMode(CacheMode cacheMode) Set the currentCacheModein effect for this query.NativeQuery.setCacheRegion(String cacheRegion) SelectionQuery.setCacheRegion(String cacheRegion) Set the name of the cache region where query results should be cached (assumingSelectionQuery.isCacheable()).NativeQuery.setCacheRetrieveMode(CacheRetrieveMode cacheRetrieveMode) SelectionQuery.setCacheRetrieveMode(CacheRetrieveMode cacheRetrieveMode) NativeQuery.setCacheStoreMode(CacheStoreMode cacheStoreMode) SelectionQuery.setCacheStoreMode(CacheStoreMode cacheStoreMode) SelectionQuery.setComment(String comment) <P> SelectionQuery<R> SelectionQuery.setConvertedParameter(int position, P value, Class<? extends AttributeConverter<P, ?>> converter) <P> SelectionQuery<R> SelectionQuery.setConvertedParameter(String name, P value, Class<? extends AttributeConverter<P, ?>> converter) default SelectionQuery<R> SelectionQuery.setEntityGraph(EntityGraph<? super R> entityGraph) Apply anEntityGraphto the query using load graph semantics.SelectionQuery.setEntityGraph(EntityGraph<? super R> graph, GraphSemantic semantic) Apply anEntityGraphto the query.NativeQuery.setFetchSize(int fetchSize) SelectionQuery.setFetchSize(int fetchSize) Sets a JDBC fetch size hint for the query.NativeQuery.setFirstResult(int startPosition) SelectionQuery.setFirstResult(int startPosition) SelectionQuery.setFlushMode(FlushModeType flushMode) SelectionQuery.setFollowOnStrategy(Locking.FollowOn followOnStrategy) Specifies whether follow-on locking should be appliedNativeQuery.setHibernateLockMode(LockMode lockMode) SelectionQuery.setHibernateLockMode(LockMode lockMode) Specify the rootLockModefor the queryNativeQuery.setLockMode(LockModeType lockMode) Not applicable to native SQL queries, due to an unfortunate requirement of the JPA specification.SelectionQuery.setLockMode(LockModeType lockMode) NativeQuery.setLockScope(PessimisticLockScope lockScope) Apply a scope to any pessimistic locking applied to the query.SelectionQuery.setLockScope(PessimisticLockScope lockScope) Apply a scope to any pessimistic locking applied to the query.SelectionQuery.setLockTimeout(Timeout lockTimeout) NativeQuery.setMaxResults(int maxResults) SelectionQuery.setMaxResults(int maxResults) 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.NativeQuery.setReadOnly(boolean readOnly) SelectionQuery.setReadOnly(boolean readOnly) Set the read-only/modifiable mode for entities and proxies loaded by thisQuery.NativeQuery.setResultListTransformer(ResultListTransformer<T> transformer) SelectionQuery.setResultListTransformer(ResultListTransformer<R> transformer) Set aResultListTransformer.SelectionQuery.setTimeout(int timeout) SelectionQuery.setTimeout(Timeout timeout) SelectionQuery.setTimeout(Integer timeout) <X> SelectionQuery<X> NativeQuery.setTupleTransformer(TupleTransformer<X> transformer) <X> SelectionQuery<X> SelectionQuery.setTupleTransformer(TupleTransformer<X> transformer) Set aTupleTransformer.<R> SelectionQuery<R> Query.withEntityGraph(EntityGraph<R> entityGraph) Covariant override of Query.withEntityGraph(EntityGraph). -
Uses of SelectionQuery in org.hibernate.query.criteria
Methods in org.hibernate.query.criteria that return SelectionQueryModifier and TypeMethodDescriptionCriteriaDefinition.createSelectionQuery(SharedSessionContract session) -
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.spi -
Uses of SelectionQuery in org.hibernate.query.sql.spi
Subinterfaces of SelectionQuery in org.hibernate.query.sql.spi