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.
Implements and extends the JPA-defined entity graph API.
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(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.<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.default <R> SelectionQuery<R> SharedSessionContract.createQuery(Class<R> resultClass, String hqlString) Synonym for SharedSessionContract.createQuery(String,Class), offering generally easier readability for use code.<T> SelectionQuery<T> SharedSessionContract.createQuery(String hqlString, 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) <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.graph
Methods in org.hibernate.graph that return SelectionQueryModifier and TypeMethodDescriptionstatic <R> SelectionQuery<R> EntityGraphs.applyGraph(StatementOrTypedQuery statementOrTypedQuery, EntityGraph<R> graph, GraphSemantic semantic) Convenience method to apply the given graph to the given query without the need for a cast when working with JPA API. -
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 TypeMethodDescriptionSelectionQuery.addOption(TypedQuery.Option option) SelectionQuery.addQueryHint(String hint) Add a database query hint to the SQL query.MutationOrSelectionQuery.asSelectionQuery()Casts this query as aSelectionQuery.<X> SelectionQuery<X> MutationOrSelectionQuery.asSelectionQuery(EntityGraph<X> entityGraph) Casts this query as aSelectionQuerywith the given result graph.<X> SelectionQuery<X> MutationOrSelectionQuery.asSelectionQuery(EntityGraph<X> entityGraph, GraphSemantic graphSemantic) Overload of MutationOrSelectionQuery.asSelectionQuery(EntityGraph) allowing a specific semantic (load/fetch) for the graph.<R> SelectionQuery<R> MutationOrSelectionQuery.asSelectionQuery(Class<R> type) Casts this query as aSelectionQuerywith the given 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.<R> SelectionQuery<R> SelectionQuery.setCacheable(boolean cacheable) Enable/disable second-level query (result) caching for this query.SelectionQuery.setCacheMode(CacheMode cacheMode) Set the currentCacheModein effect for this query.SelectionQuery.setCacheRegion(String cacheRegion) Set the name of the cache region where query results should be cached (assumingSelectionQuery.isCacheable()).SelectionQuery.setCacheRetrieveMode(CacheRetrieveMode cacheRetrieveMode) SelectionQuery.setCacheStoreMode(CacheStoreMode cacheStoreMode) SelectionQuery.setComment(String comment) Set the comment for this query.<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) Deprecated, for removal: This API element is subject to removal in a future version.Prefer passing the entity-graph while creating the query - SharedSessionContract.createSelectionQuery(String, EntityGraph)SelectionQuery.setEntityGraph(EntityGraph<? super R> graph, GraphSemantic semantic) Deprecated, for removal: This API element is subject to removal in a future version.Prefer passing the entity-graph while creating the query - SharedSessionContract.createSelectionQuery(String, EntityGraph)SelectionQuery.setFetchSize(int fetchSize) Sets a JDBC fetch size hint for the query.SelectionQuery.setFirstResult(int startPosition) SelectionQuery.setFlushMode(FlushModeType flushMode) Set theFlushModeTypeto use for this query.SelectionQuery.setFollowOnStrategy(Locking.FollowOn followOnStrategy) Specifies whether follow-on locking should be appliedSelectionQuery.setHibernateLockMode(LockMode lockMode) Set a hint.SelectionQuery.setLockMode(LockModeType lockMode) SelectionQuery.setLockScope(PessimisticLockScope lockScope) SelectionQuery.setLockTimeout(Timeout lockTimeout) Specify a pessimistic lock timeout.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.setParameters(Object... arguments) SelectionQuery.setProperties(Object bean) SelectionQuery.setProperties(Map bean) SelectionQuery.setQueryFlushMode(QueryFlushMode queryFlushMode) Set theQueryFlushModeto use for this query.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.NativeQuery.setResultListTransformer(ResultListTransformer<T> transformer) SelectionQuery.setResultListTransformer(ResultListTransformer<R> transformer) Set aResultListTransformer.SelectionQuery.setTimeout(int timeout) Specify a JDBC query timeout to use when executing the query.SelectionQuery.setTimeout(Timeout timeout) Specify a JDBC query timeout to use when executing the query.SelectionQuery.setTimeout(Integer timeout) Specify a JDBC query timeout to use when executing the query.<X> SelectionQuery<X> NativeQuery.setTupleTransformer(TupleTransformer<X> transformer) <X> SelectionQuery<X> SelectionQuery.setTupleTransformer(TupleTransformer<X> transformer) Set aTupleTransformer.<R> SelectionQuery<R> MutationOrSelectionQuery.withEntityGraph(EntityGraph<R> graph) <R> SelectionQuery<R> MutationOrSelectionQuery.withResultSetMapping(jakarta.persistence.sql.ResultSetMapping<R> mapping) -
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(EntityHandler entityHandler) SelectionSpecification.createQuery(EntityHandler entityHandler) SimpleProjectionSpecification.createQuery(EntityHandler entityHandler) -
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