Top Fields Constructors Methods
org.hibernate.query.sqm.internal

public Class SqmSelectionQueryImpl<R>

extends AbstractSelectionQuery<R>
implements SqmSelectionQueryImplementor<R>, InterpretationsKeySource
Class Inheritance
All Implemented Interfaces
org.hibernate.query.sqm.internal.SqmInterpretationsKey.InterpretationsKeySource, org.hibernate.query.sqm.internal.SqmInterpretationsKey.CacheabilityInfluencers, org.hibernate.query.sqm.spi.SqmSelectionQueryImplementor, org.hibernate.query.sqm.SqmSelectionQuery, org.hibernate.query.SelectionQuery, org.hibernate.query.CommonQueryContract, org.hibernate.query.spi.SqmQuery
Imports
java.time.Instant, java.util.ArrayList, .Calendar, .Collection, .Date, .List, .Map, java.util.function.Supplier, jakarta.persistence.CacheRetrieveMode, .CacheStoreMode, .FlushModeType, .LockModeType, .Parameter, .TemporalType, org.hibernate.CacheMode, .FlushMode, .HibernateException, .LockMode, .ScrollMode, org.hibernate.cfg.AvailableSettings, org.hibernate.engine.spi.LoadQueryInfluencers, .SharedSessionContractImplementor, org.hibernate.graph.spi.AppliedGraph, org.hibernate.internal.util.collections.IdentitySet, org.hibernate.query.BindableType, .Order, .Page, .QueryLogging, .QueryParameter, .SelectionQuery, org.hibernate.query.criteria.internal.NamedCriteriaQueryMementoImpl, org.hibernate.query.hql.internal.NamedHqlQueryMementoImpl, .QuerySplitter, org.hibernate.query.internal.DelegatingDomainQueryExecutionContext, .ParameterMetadataImpl, .QueryParameterBindingsImpl, org.hibernate.query.spi.AbstractSelectionQuery, .DomainQueryExecutionContext, .HqlInterpretation, .MutableQueryOptions, .ParameterMetadataImplementor, .QueryEngine, .QueryInterpretationCache, .QueryOptions, .QueryParameterBindings, .ScrollableResultsImplementor, .SelectQueryPlan, org.hibernate.query.sqm.SqmSelectionQuery, org.hibernate.query.sqm.internal.SqmInterpretationsKey.InterpretationsKeySource, org.hibernate.query.sqm.spi.SqmSelectionQueryImplementor, org.hibernate.query.sqm.tree.SqmCopyContext, org.hibernate.query.sqm.tree.expression.JpaCriteriaParameter, .SqmJpaCriteriaParameterWrapper, .SqmParameter, org.hibernate.query.sqm.tree.select.SqmSelectStatement, .SqmSelection, org.hibernate.sql.results.internal.TupleMetadata, org.hibernate.sql.results.spi.ResultsConsumer, org.hibernate.type.descriptor.java.JavaType

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final DomainParameterXref
private final Class<R>
private final String
private final QueryParameterBindingsImpl
private final ParameterMetadataImplementor
private final Class<?>
private SqmSelectStatement<R>
private final TupleMetadata
Inherited from org.hibernate.query.spi.AbstractSelectionQuery:
CRITERIA_HQL_STRING

Constructor Summary

AccessConstructor and Description
public
SqmSelectionQueryImpl(String hql, HqlInterpretation hqlInterpretation, Class<R> expectedResultType, SharedSessionContractImplementor session)

public
public
public

Method Summary

Modifier and TypeMethod and Description
private <T> void
private SelectQueryPlan<R>
buildAggregatedQueryPlan(SqmSelectStatement<?>[] concreteSqmStatements)

private SelectQueryPlan<R>
buildConcreteQueryPlan(SqmSelectStatement<?> concreteSqmStatement, QueryOptions queryOptions)

private SelectQueryPlan<R>
protected void
private Class<?>
protected List<R>
protected ScrollableResultsImplementor<R>
public <T> T
public DomainParameterXref
public LoadQueryInfluencers
public ParameterMetadataImplementor
public QueryParameterBindings
public String
public Class<?>
public SqmSelectStatement<R>
public TupleMetadata
protected boolean
public Supplier<Boolean>
public boolean
protected void
protected boolean
private SelectQueryPlan<R>
public SqmSelectionQuery<R>
public SqmSelectionQuery<R>
public SqmSelectionQuery<R>
public SqmSelectionQuery<R>
public SqmSelectionQuery<R>
public SqmSelectionQuery<R>
public SqmSelectionQuery<R>
public SqmSelectionQuery<R>
public SqmSelectionQuery<R>
setFollowOnLocking(boolean enable)

Overrides org.hibernate.query.spi.AbstractSelectionQuery.setFollowOnLocking.

Implements org.hibernate.query.SelectionQuery.setFollowOnLocking.

Specifies whether follow-on locking should be applied?
public SqmSelectionQuery<R>
public SqmSelectionQuery<R>
public SqmSelectionQuery<R>
public SqmSelectionQuery<R>
setLockMode(String alias, LockMode lockMode)

Overrides org.hibernate.query.spi.AbstractSelectionQuery.setLockMode.

Implements org.hibernate.query.SelectionQuery.setLockMode.

Specify a LockMode to apply to a specific alias defined in the query
public SelectionQuery<R>
setOrder(List<Order<? super R>>
one or more instances of Order
orderList
)

Implements org.hibernate.query.SelectionQuery.setOrder.

If the result type of this query is an entity class, add one or more rules for ordering the query results.
public SelectionQuery<R>
setOrder(Order<? super R>
an instance of Order
order
)

Implements org.hibernate.query.SelectionQuery.setOrder.

If the result type of this query is an entity class, add a rule for ordering the query results.
public SelectionQuery<R>
setPage(Page page)

Implements org.hibernate.query.SelectionQuery.setPage.

Set the page of results to return.
public SqmSelectionQuery<R>
public <P> SqmSelectionQuery<R>
public <P> SqmSelectionQuery<R>
public SqmSelectionQuery<R>
public SqmSelectionQuery<R>
public <P> SqmSelectionQuery<R>
setParameter(int position, P value, Class<P> javaType)

Overrides org.hibernate.query.spi.AbstractSelectionQuery.setParameter.

Implements org.hibernate.query.sqm.SqmSelectionQuery.setParameter, org.hibernate.query.SelectionQuery.setParameter, org.hibernate.query.CommonQueryContract.setParameter.

Bind the given argument to an ordinal query parameter using the given Class reference to attempt to infer the BindableType.
public <P> SqmSelectionQuery<R>
public SqmSelectionQuery<R>
public <P> SqmSelectionQuery<R>
setParameter(QueryParameter<P>
the query parameter memento
parameter
,
P
the argument, which might be null
value
)

Overrides org.hibernate.query.spi.AbstractSelectionQuery.setParameter.

Implements org.hibernate.query.sqm.SqmSelectionQuery.setParameter, org.hibernate.query.SelectionQuery.setParameter, org.hibernate.query.CommonQueryContract.setParameter.

Bind an argument to the query parameter represented by the given QueryParameter.
public <P> SqmSelectionQuery<R>
setParameter(QueryParameter<P>
the query parameter memento
parameter
,
P
the argument, which might be null
value
,
Class<P>
a BindableType representing the type of the parameter
javaType
)

Overrides org.hibernate.query.spi.AbstractSelectionQuery.setParameter.

Implements org.hibernate.query.sqm.SqmSelectionQuery.setParameter, org.hibernate.query.SelectionQuery.setParameter, org.hibernate.query.CommonQueryContract.setParameter.

Bind an argument to the query parameter represented by the given QueryParameter, using the given Class reference to attempt to infer the BindableType to use.
public <P> SqmSelectionQuery<R>
setParameter(QueryParameter<P>
the query parameter memento
parameter
,
P
the argument, which might be null
value
,
BindableType<P>
a BindableType representing the type of the parameter
type
)

Overrides org.hibernate.query.spi.AbstractSelectionQuery.setParameter.

Implements org.hibernate.query.sqm.SqmSelectionQuery.setParameter, org.hibernate.query.SelectionQuery.setParameter, org.hibernate.query.CommonQueryContract.setParameter.

Bind an argument to the query parameter represented by the given QueryParameter, using the given BindableType.
public <P> SqmSelectionQuery<R>
public SqmSelectionQuery<R>
public SqmSelectionQuery<R>
public SqmSelectionQuery<R>
public SqmSelectionQuery<R>
public SqmSelectionQuery<R>
public SqmSelectionQuery<R>
public SqmSelectionQuery<R>
public <P> SqmSelectionQuery<R>
setParameterList(String name, Collection<? extends P> values, Class<P> javaType)

Overrides org.hibernate.query.spi.AbstractSelectionQuery.setParameterList.

Implements org.hibernate.query.sqm.SqmSelectionQuery.setParameterList, org.hibernate.query.SelectionQuery.setParameterList, org.hibernate.query.CommonQueryContract.setParameterList.

Bind multiple arguments to a named query parameter using the given Class reference to attempt to infer the BindableType If unable to infer an appropriate BindableType, fall back to setParameterList(String, Collection).
public <P> SqmSelectionQuery<R>
public SqmSelectionQuery<R>
public <P> SqmSelectionQuery<R>
setParameterList(String name, P[] values, Class<P> javaType)

Overrides org.hibernate.query.spi.AbstractSelectionQuery.setParameterList.

Implements org.hibernate.query.sqm.SqmSelectionQuery.setParameterList, org.hibernate.query.SelectionQuery.setParameterList, org.hibernate.query.CommonQueryContract.setParameterList.

Bind multiple arguments to a named query parameter using the given Class reference to attempt to determine the BindableType to use.
public <P> SqmSelectionQuery<R>
public SqmSelectionQuery<R>
public <P> SqmSelectionQuery<R>
setParameterList(int position, Collection<? extends P> values, Class<P> javaType)

Overrides org.hibernate.query.spi.AbstractSelectionQuery.setParameterList.

Implements org.hibernate.query.sqm.SqmSelectionQuery.setParameterList, org.hibernate.query.SelectionQuery.setParameterList, org.hibernate.query.CommonQueryContract.setParameterList.

Bind multiple arguments to an ordinal query parameter using the given Class reference to attempt to infer the BindableType.
public <P> SqmSelectionQuery<R>
public SqmSelectionQuery<R>
public <P> SqmSelectionQuery<R>
public <P> SqmSelectionQuery<R>
public <P> SqmSelectionQuery<R>
public <P> SqmSelectionQuery<R>
setParameterList(QueryParameter<P> parameter, Collection<? extends P> values, Class<P> javaType)

Overrides org.hibernate.query.spi.AbstractSelectionQuery.setParameterList.

Implements org.hibernate.query.sqm.SqmSelectionQuery.setParameterList, org.hibernate.query.SelectionQuery.setParameterList, org.hibernate.query.CommonQueryContract.setParameterList.

Bind multiple arguments to the query parameter represented by the given QueryParameter using the given Class reference to attempt to infer the BindableType to use.
public <P> SqmSelectionQuery<R>
public <P> SqmSelectionQuery<R>
public <P> SqmSelectionQuery<R>
setParameterList(QueryParameter<P> parameter, P[] values, Class<P> javaType)

Overrides org.hibernate.query.spi.AbstractSelectionQuery.setParameterList.

Implements org.hibernate.query.sqm.SqmSelectionQuery.setParameterList, org.hibernate.query.SelectionQuery.setParameterList, org.hibernate.query.CommonQueryContract.setParameterList.

Bind multiple arguments to the query parameter represented by the given QueryParameter using the given Class reference to attempt to infer the BindableType to use.
public <P> SqmSelectionQuery<R>
public SqmSelectionQuery<R>
setProperties(Map<K, V>
a Map of names to arguments
map
)

Overrides org.hibernate.query.spi.AbstractSelectionQuery.setProperties.

Implements org.hibernate.query.sqm.SqmSelectionQuery.setProperties, org.hibernate.query.SelectionQuery.setProperties, org.hibernate.query.CommonQueryContract.setProperties.

Bind the values of the given Map to named parameters of the query, matching key names with parameter names and mapping value types to Hibernate types using heuristics.
public SqmSelectionQuery<R>
setProperties(Object
any JavaBean or POJO
bean
)

Overrides org.hibernate.query.spi.AbstractSelectionQuery.setProperties.

Implements org.hibernate.query.sqm.SqmSelectionQuery.setProperties, org.hibernate.query.SelectionQuery.setProperties, org.hibernate.query.CommonQueryContract.setProperties.

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.
public SqmSelectionQuery<R>
setQueryPlanCacheable(boolean queryPlanCacheable)

Overrides org.hibernate.query.spi.AbstractSelectionQuery.setQueryPlanCacheable.

Implements org.hibernate.query.SelectionQuery.setQueryPlanCacheable.

Enable/disable query plan caching for this query.
public SqmSelectionQuery<R>
setReadOnly(boolean
true indicates that entities and proxies loaded by the query are to be put in read-only mode; false indicates that entities and proxies loaded by the query will be put in modifiable mode
readOnly
)

Overrides org.hibernate.query.spi.AbstractSelectionQuery.setReadOnly.

Implements org.hibernate.query.sqm.SqmSelectionQuery.setReadOnly, org.hibernate.query.SelectionQuery.setReadOnly.

Set the read-only/modifiable mode for entities and proxies loaded by this Query.
public SqmSelectionQuery<R>
Inherited from org.hibernate.query.spi.AbstractSelectionQuery:
afterQueryafterQueryafterQueryHandlingFetchProfilesapplyOptionsapplyOptionsbeforeQuerybeforeQueryHandlingFetchProfilesbuildTupleMetadatacheckQueryReturnTypedisableFetchProfileenableFetchProfilegetCacheModegetCacheRegiongetCacheRetrieveModegetCacheStoreModegetCallbackgetFetchSizegetFlushModegetHibernateLockModegetLockModegetLockOptionsgetResultStreamgetSessionFactorygetSingleResultgetSingleResultOrNullhasAppliedGraphhasCallbackActionshasLimitisCacheableisReadOnlylistrequiresTxnresetCallbackscrollscrollsetCommentsetEntityGraphsetFirstResultsetHintsetMaxResultsstreamuniqueElementuniqueResultuniqueResultOptionalverifyResultTypevisitQueryReturnType