| Modifier and Type | Field and Description |
|---|---|
| private Set | |
| private final SqmQuerySource |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public | SqmSelectStatement(SqmQueryPart<T> queryPart, Class<T> resultType, SqmQuerySource querySource, NodeBuilder builder)
|
| public | SqmSelectStatement(SqmQueryPart<T> queryPart, Class<T> resultType, Map<String, SqmCteStatement<?>> cteStatements, SqmQuerySource querySource, NodeBuilder builder)
|
| public | |
| public | |
| private | SqmSelectStatement(NodeBuilder builder, Map<String, SqmCteStatement<?>> cteStatements, Class<T> resultType, SqmQuerySource querySource, Set<SqmParameter<?>> parameters)
|
| Modifier and Type | Method and Description |
|---|---|
| public <X> X | accept(SemanticQueryWalker<X> walker)
Implements org. |
| public void | addParameter(SqmParameter<?> parameter)
Implements org. |
| private void | |
| public boolean | |
| private boolean | |
| public SqmSelectStatement | |
| public JpaCriteriaQuery | createCountQuery()
Implements org. |
| public SqmSelectStatement | distinct(boolean
boolean value specifying whether duplicate
results must be eliminated from the query result or
whether they must be retained distinct)Overrides org. Implements org. |
| public JpaCriteriaQuery | fetch(JpaExpression<? extends Number> fetch)
Implements org. |
| public JpaCriteriaQuery | fetch(JpaExpression<? extends Number> fetch, FetchClauseType fetchClauseType)
Implements org. |
| public JpaCriteriaQuery | |
| public JpaCriteriaQuery | fetch(Number fetch, FetchClauseType fetchClauseType)
Implements org. |
| public JpaExpression | |
| public FetchClauseType | |
| public JpaExpression | |
| public Set | getParameters()
Implements org. |
| public SqmQuerySource | |
| public SqmQuerySpec | |
| public Set | getSqmParameters()
Implements org. |
| public SqmSelectStatement | groupBy(Expression<?>...
zero or more grouping expressions expressions)Overrides org. Implements org. |
| public SqmSelectStatement | groupBy(List<Expression<?>>
list of zero or more grouping expressions grouping)Overrides org. Implements org. |
| public SqmSelectStatement | having(Expression<Boolean>
a simple or compound boolean expression booleanExpression)Overrides org. Implements org. |
| public SqmSelectStatement | having(Predicate...
zero or more restriction predicates predicates)Overrides org. Implements org. |
| public SqmSelectStatement | multiselect(Selection<?>...
selection items corresponding to the
results to be returned by the query selections)Implements org. |
| public SqmSelectStatement | multiselect(List<Selection<?>>
list of selection items corresponding
to the results to be returned by the query selectionList)Implements org. |
| public JpaCriteriaQuery | offset(JpaExpression<? extends Number> offset)
Implements org. |
| public JpaCriteriaQuery | |
| public SqmSelectStatement | orderBy(Order...
zero or more ordering expressions orders)Implements org. |
| public SqmSelectStatement | orderBy(List<Order>
list of zero or more ordering expressions orders)Implements org. |
| public boolean | |
| private boolean | |
| private void | |
| private void | |
| public SqmStatement. | |
| public SqmSelectStatement | select(Selection<? extends T>
selection specifying the item that
is to be returned in the query result selection)Implements org. |
| public <U> SqmSubQuery | subquery(Class<U>
the subquery result type type)Implements jakarta. |
| public boolean | |
| private boolean | |
| private void | |
| public SqmSelectStatement | where(Expression<Boolean>
a simple or compound boolean expression restriction)Overrides org. Implements org. |
| public SqmSelectStatement | where(Predicate...
zero or more restriction predicates restrictions)Overrides org. Implements org. |
| parameters | back to summary |
|---|---|
| private Set<SqmParameter<?>> parameters | |
| querySource | back to summary |
|---|---|
| private final SqmQuerySource querySource | |
| SqmSelectStatement | back to summary |
|---|---|
| public SqmSelectStatement(NodeBuilder nodeBuilder) | |
| SqmSelectStatement | back to summary |
|---|---|
| public SqmSelectStatement(SqmQuerySource querySource, NodeBuilder nodeBuilder) | |
| SqmSelectStatement | back to summary |
|---|---|
| public SqmSelectStatement(Class<T> resultJavaType, SqmQuerySource querySource, NodeBuilder nodeBuilder) | |
| SqmSelectStatement | back to summary |
|---|---|
| public SqmSelectStatement(SqmQueryPart<T> queryPart, Class<T> resultType, SqmQuerySource querySource, NodeBuilder builder) | |
| SqmSelectStatement | back to summary |
|---|---|
| public SqmSelectStatement(SqmQueryPart<T> queryPart, Class<T> resultType, Map<String, SqmCteStatement<?>> cteStatements, SqmQuerySource querySource, NodeBuilder builder) | |
| SqmSelectStatement | back to summary |
|---|---|
| public SqmSelectStatement(Class<T> resultJavaType, NodeBuilder nodeBuilder)
Implementation Note This form is used from the criteria query API. | |
| SqmSelectStatement | back to summary |
|---|---|
| public SqmSelectStatement(SqmSelectStatement<T> original)
Implementation Note This form is used when transforming HQL to criteria. All it does is change the SqmQuerySource to CRITERIA in order to allow correct parameter handing. | |
| SqmSelectStatement | back to summary |
|---|---|
| private SqmSelectStatement(NodeBuilder builder, Map<String, SqmCteStatement<?>> cteStatements, Class<T> resultType, SqmQuerySource querySource, Set<SqmParameter<?>> parameters) | |
| accept | back to summary |
|---|---|
| public <X> X accept(SemanticQueryWalker<X> walker) Implements org. Doc from org. Accept the walker per visitation
| |
| addParameter | back to summary |
|---|---|
| public void addParameter(SqmParameter<?> parameter) Implements org.
| |
| checkSelectionIsJpaCompliant | back to summary |
|---|---|
| private void checkSelectionIsJpaCompliant(Selection<?> selection) | |
| containsCollectionFetches | back to summary |
|---|---|
| public boolean containsCollectionFetches() | |
| containsCollectionFetches | back to summary |
|---|---|
| private boolean containsCollectionFetches(SqmQueryPart<?> queryPart) | |
| copy | back to summary |
|---|---|
| public SqmSelectStatement Implements org.
| |
| createCountQuery | back to summary |
|---|---|
| public JpaCriteriaQuery Implements org. Doc from org. Wraps this query in a subquery and returns a count query based on that subquery in the from clause.
| |
| distinct | back to summary |
|---|---|
| public SqmSelectStatement Overrides org. Implements org. Doc from jakarta. Specify whether duplicate query results will be eliminated.
A true value will cause duplicates to be eliminated.
A false value will cause duplicates to be retained.
If distinct has not been specified, duplicate results must
be retained.
This method only overrides the return type of the
corresponding
| |
| fetch | back to summary |
|---|---|
| public JpaCriteriaQuery Implements org.
| |
| fetch | back to summary |
|---|---|
| public JpaCriteriaQuery Implements org.
| |
| fetch | back to summary |
|---|---|
| public JpaCriteriaQuery Implements org.
| |
| fetch | back to summary |
|---|---|
| public JpaCriteriaQuery Implements org.
| |
| getFetch | back to summary |
|---|---|
| public JpaExpression Implements org.
| |
| getFetchClauseType | back to summary |
|---|---|
| public FetchClauseType getFetchClauseType() Implements org.
| |
| getOffset | back to summary |
|---|---|
| public JpaExpression Implements org.
| |
| getParameters | back to summary |
|---|---|
| public Set Implements org. Doc from org. Return the parameters of the query. Returns empty set if there are no parameters. Modifications to the set do not affect the query.
| |
| getQuerySource | back to summary |
|---|---|
| public SqmQuerySource getQuerySource() Implements org.
| |
| getQuerySpec | back to summary |
|---|---|
| public SqmQuerySpec Overrides org. Implements org. Doc from org. The query structure. See
| |
| getSqmParameters | back to summary |
|---|---|
| public Set Implements org. Doc from org. Access to the (potentially still growing) collection of parameters for the statement.
| |
| groupBy | back to summary |
|---|---|
| public SqmSelectStatement Overrides org. Implements org. Doc from jakarta. Specify the expressions that are used to form groups over
the query results.
Replaces the previous specified grouping expressions, if any.
If no grouping expressions are specified, any previously
added grouping expressions are simply removed.
This method only overrides the return type of the
corresponding
| |
| groupBy | back to summary |
|---|---|
| public SqmSelectStatement Overrides org. Implements org. Doc from jakarta. Specify the expressions that are used to form groups over
the query results.
Replaces the previous specified grouping expressions, if any.
If no grouping expressions are specified, any previously
added grouping expressions are simply removed.
This method only overrides the return type of the
corresponding
| |
| having | back to summary |
|---|---|
| public SqmSelectStatement Overrides org. Implements org. Doc from jakarta. Specify a restriction over the groups of the query.
Replaces the previous having restriction(s), if any.
This method only overrides the return type of the
corresponding
| |
| having | back to summary |
|---|---|
| public SqmSelectStatement Overrides org. Implements org. Doc from jakarta. Specify restrictions over the groups of the query
according the conjunction of the specified restriction
predicates.
Replaces the previously added having restriction(s), if any.
If no restrictions are specified, any previously added
restrictions are simply removed.
This method only overrides the return type of the
corresponding
| |
| multiselect | back to summary |
|---|---|
| public SqmSelectStatement Implements org. Doc from jakarta. Specify the selection items that are to be returned in the query result. Replaces the previously specified selection(s), if any. The type of the result of the query execution depends on the specification of the type of the criteria query object created as well as the arguments to the multiselect method. An argument to the multiselect method must not be a tuple- or array-valued compound selection item. The semantics of this method are as follows:
| |
| multiselect | back to summary |
|---|---|
| public SqmSelectStatement Implements org. Doc from jakarta. Specify the selection items that are to be returned in the query result. Replaces the previously specified selection(s), if any. The type of the result of the query execution depends on
the specification of the type of the criteria query object
created as well as the argument to the The semantics of this method are as follows:
| |
| offset | back to summary |
|---|---|
| public JpaCriteriaQuery Implements org.
| |
| offset | back to summary |
|---|---|
| public JpaCriteriaQuery Implements org.
| |
| orderBy | back to summary |
|---|---|
| public SqmSelectStatement Implements org. Doc from jakarta. Specify the ordering expressions that are used to order the query results. Replaces the previous ordering expressions, if any. If no ordering expressions are specified, the previous ordering, if any, is simply removed, and results will be returned in no particular order. The left-to-right sequence of the ordering expressions determines the precedence, whereby the leftmost has highest precedence.
| |
| orderBy | back to summary |
|---|---|
| public SqmSelectStatement Implements org. Doc from jakarta. Specify the ordering expressions that are used to order the query results. Replaces the previous ordering expressions, if any. If no ordering expressions are specified, the previous ordering, if any, is simply removed, and results will be returned in no particular order. The order of the ordering expressions in the list determines the precedence, whereby the first element in the list has highest precedence.
| |
| producesUniqueResults | back to summary |
|---|---|
| public boolean producesUniqueResults() | |
| producesUniqueResults | back to summary |
|---|---|
| private boolean producesUniqueResults(SqmQueryPart<?> queryPart) | |
| resetSelections | back to summary |
|---|---|
| private void resetSelections(SqmQueryPart<?> queryPart) | |
| resetSelections | back to summary |
|---|---|
| private void resetSelections(SqmQuerySpec<?> querySpec) | |
| resolveParameters | back to summary |
|---|---|
| public SqmStatement. Implements org.
| |
| select | back to summary |
|---|---|
| public SqmSelectStatement Implements org. Doc from jakarta. Specify the item that is to be returned in the query result. Replaces the previously specified selection(s), if any. Note Applications using the string-based API may need to specify the type of the select item when it results from a get or join operation and the query result type is specified.
For example:
CriteriaQuery<String> q = cb.createQuery(String.class);
Root<Order> order = q.from(Order.class);
q.select(order.get("shippingAddress").<String>get("state"));
CriteriaQuery<Product> q2 = cb.createQuery(Product.class);
q2.select(q2.from(Order.class)
.join("items")
.<Item,Product>join("product"));
| |
| subquery | back to summary |
|---|---|
| public <U> SqmSubQuery Implements jakarta. Doc from jakarta. Create a subquery of the query.
| |
| usesDistinct | back to summary |
|---|---|
| public boolean usesDistinct() | |
| usesDistinct | back to summary |
|---|---|
| private boolean usesDistinct(SqmQueryPart<?> queryPart) | |
| validateComplianceFetchOffset | back to summary |
|---|---|
| private void validateComplianceFetchOffset() | |
| where | back to summary |
|---|---|
| public SqmSelectStatement Overrides org. Implements org. Doc from jakarta. Modify the query to restrict the query result according
to the specified boolean expression.
Replaces the previously added restriction(s), if any.
This method only overrides the return type of the
corresponding
| |
| where | back to summary |
|---|---|
| public SqmSelectStatement Overrides org. Implements org. Doc from jakarta. Modify the query to restrict the query result according
to the conjunction of the specified restriction predicates.
Replaces the previously added restriction(s), if any.
If no restrictions are specified, any previously added
restrictions are simply removed.
This method only overrides the return type of the
corresponding
| |