| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private Class | |
| private SqmQueryPart |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| protected | AbstractSqmSelectQuery(NodeBuilder builder, Map<String, SqmCteStatement<?>> cteStatements, Class<T> resultType)
|
| public | AbstractSqmSelectQuery(SqmQueryPart<T> queryPart, Map<String, SqmCteStatement<?>> cteStatements, Class<T> resultType, NodeBuilder builder)
|
| Modifier and Type | Method and Description |
|---|---|
| private <X> SqmRoot | |
| public void | |
| protected Map | |
| public SqmSelectQuery | distinct(boolean
boolean value specifying whether duplicate
results must be eliminated from the query result or
whether they must be retained distinct)Implements org. |
| public <X> SqmRoot | from(Class<X>
the entity class entityClass)Implements org. |
| public <X> SqmDerivedRoot | from(Subquery<X>
the subquery subquery)Implements org. |
| public <X> JpaRoot | from(JpaCteCriteria<X>
the cte criteria cte)Implements org. |
| public <X> SqmRoot | from(EntityType<X>
metamodel entity representing the entity
of type X entityType)Implements org. |
| public <X> JpaCteCriteria | getCteCriteria(String cteName)
Implements org. |
| public Collection | getCteCriterias()
Implements org. |
| public SqmCteStatement | getCteStatement(String cteLabel)
Implements org. |
| pack-priv Map | |
| public Collection | |
| public List | getGroupList()
Implements jakarta. |
| public SqmPredicate | getGroupRestriction()
Implements org. |
| public SqmQueryPart | getQueryPart()
Implements org. |
| public SqmQuerySpec | getQuerySpec()
Implements org. |
| public SqmPredicate | getRestriction()
Implements org. |
| protected Selection | |
| public Class | getResultType()
Implements jakarta. |
| public List | |
| public Set | |
| public JpaSelection | getSelection()
Implements org. |
| public SqmSelectQuery | groupBy(Expression<?>...
zero or more grouping expressions expressions)Implements org. |
| public SqmSelectQuery | groupBy(List<Expression<?>>
list of zero or more grouping expressions grouping)Implements org. |
| public SqmSelectQuery | having(Expression<Boolean>
a simple or compound boolean expression booleanExpression)Implements org. |
| public SqmSelectQuery | having(Predicate...
zero or more restriction predicates predicates)Implements org. |
| public boolean | isDistinct()
Implements jakarta. |
| public void | |
| protected void | |
| private void | |
| private String | |
| public SqmSelectQuery | where(Expression<Boolean>
a simple or compound boolean expression restriction)Implements org. |
| public SqmSelectQuery | where(Predicate...
zero or more restriction predicates restrictions)Implements org. |
| public <X> JpaCteCriteria | with(AbstractQuery<X> criteria)
Implements org. CriteriaQuery and returns a JpaCteCriteria,
which can be used for querying.
|
| public <X> JpaCteCriteria | with(String name, AbstractQuery<X> criteria)
Implements org. with(AbstractQuery) but assigns an explicit CTE name.
|
| private <X> JpaCteCriteria | |
| private <X> JpaCteCriteria | withInternal(String name, AbstractQuery<X> baseCriteria, boolean unionDistinct, Function<JpaCteCriteria<X>, AbstractQuery<X>> recursiveCriteriaProducer)
|
| public <X> JpaCteCriteria | withRecursiveUnionAll(AbstractQuery<X> baseCriteria, Function<JpaCteCriteria<X>, AbstractQuery<X>> recursiveCriteriaProducer)
Implements org. |
| public <X> JpaCteCriteria | withRecursiveUnionAll(String name, AbstractQuery<X> baseCriteria, Function<JpaCteCriteria<X>, AbstractQuery<X>> recursiveCriteriaProducer)
Implements org. withRecursiveUnionAll(AbstractQuery, Function) but assigns an explicit CTE name.
|
| public <X> JpaCteCriteria | withRecursiveUnionDistinct(AbstractQuery<X> baseCriteria, Function<JpaCteCriteria<X>, AbstractQuery<X>> recursiveCriteriaProducer)
Implements org. |
| public <X> JpaCteCriteria | withRecursiveUnionDistinct(String name, AbstractQuery<X> baseCriteria, Function<JpaCteCriteria<X>, AbstractQuery<X>> recursiveCriteriaProducer)
Implements org. withRecursiveUnionDistinct(AbstractQuery, Function) but assigns an explicit CTE name.
|
| cteStatements | back to summary |
|---|---|
| private final Map<String, SqmCteStatement<?>> cteStatements | |
| resultType | back to summary |
|---|---|
| private Class<T> resultType | |
| sqmQueryPart | back to summary |
|---|---|
| private SqmQueryPart<T> sqmQueryPart | |
| AbstractSqmSelectQuery | back to summary |
|---|---|
| public AbstractSqmSelectQuery(Class<T> resultType, NodeBuilder builder) | |
| AbstractSqmSelectQuery | back to summary |
|---|---|
| public AbstractSqmSelectQuery(SqmQueryPart<T> queryPart, Class<T> resultType, NodeBuilder builder) | |
| AbstractSqmSelectQuery | back to summary |
|---|---|
| protected AbstractSqmSelectQuery(NodeBuilder builder, Map<String, SqmCteStatement<?>> cteStatements, Class<T> resultType) | |
| AbstractSqmSelectQuery | back to summary |
|---|---|
| public AbstractSqmSelectQuery(SqmQueryPart<T> queryPart, Map<String, SqmCteStatement<?>> cteStatements, Class<T> resultType, NodeBuilder builder) | |
| addRoot | back to summary |
|---|---|
| private <X> SqmRoot | |
| appendHqlString | back to summary |
|---|---|
| public void appendHqlString(StringBuilder sb) | |
| copyCteStatements | back to summary |
|---|---|
| protected Map | |
| distinct | back to summary |
|---|---|
| public SqmSelectQuery 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.
| |
| from | back to summary |
|---|---|
| public <X> SqmRoot Implements org. Doc from jakarta. Create and add a query root corresponding to the given entity, forming a cartesian product with any existing roots. | |
| from | back to summary |
|---|---|
| public <X> SqmDerivedRoot Implements org. Doc from org. Create and add a query root corresponding to the given subquery, forming a cartesian product with any existing roots.
| |
| from | back to summary |
|---|---|
| public <X> JpaRoot Implements org. Doc from org. Create and add a query root corresponding to the given cte, forming a cartesian product with any existing roots.
| |
| from | back to summary |
|---|---|
| public <X> SqmRoot Implements org. Doc from jakarta. Create and add a query root corresponding to the given entity, forming a cartesian product with any existing roots.
| |
| getCteCriteria | back to summary |
|---|---|
| public <X> JpaCteCriteria Implements org. Doc from org. Returns a CTE that is registered by the given name on this container, or any of its parents.
| |
| getCteCriterias | back to summary |
|---|---|
| public Collection Implements org. Doc from org. Returns the CTEs that are registered on this container.
| |
| getCteStatement | back to summary |
|---|---|
| public SqmCteStatement Implements org.
| |
| getCteStatementMap | back to summary |
|---|---|
| pack-priv Map | |
| getCteStatements | back to summary |
|---|---|
| public Collection Implements org.
| |
| getGroupList | back to summary |
|---|---|
| public List Implements jakarta. Doc from jakarta. Return a list of the grouping expressions. Returns empty list if no grouping expressions have been specified. Modifications to the list do not affect the query.
| |
| getGroupRestriction | back to summary |
|---|---|
| public SqmPredicate getGroupRestriction() Implements org. Doc from jakarta. Return the predicate that corresponds to the restriction(s) over the grouping items, or null if no restrictions have been specified.
| |
| getQueryPart | back to summary |
|---|---|
| public SqmQueryPart Implements org. Doc from org. The query structure. See
| |
| getQuerySpec | back to summary |
|---|---|
| public SqmQuerySpec Implements org. Doc from org. The query structure. See
| |
| getRestriction | back to summary |
|---|---|
| public SqmPredicate getRestriction() Implements org. Doc from jakarta. Return the predicate that corresponds to the where clause restriction(s), or null if no restrictions have been specified.
| |
| getResultSelection | back to summary |
|---|---|
| protected Selection | |
| getResultType | back to summary |
|---|---|
| public Class Implements jakarta. Doc from jakarta. Return the result type of the query or subquery. If a result
type was specified as an argument to the
| |
| getRootList | back to summary |
|---|---|
| public List | |
| getRoots | back to summary |
|---|---|
| public Set Implements jakarta. Doc from jakarta. Return the query roots. These are the roots that have
been defined for the
| |
| getSelection | back to summary |
|---|---|
| public JpaSelection Implements org. Doc from jakarta. Return the selection of the query, or null if no selection has been set.
| |
| groupBy | back to summary |
|---|---|
| public SqmSelectQuery 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.
| |
| groupBy | back to summary |
|---|---|
| public SqmSelectQuery 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.
| |
| having | back to summary |
|---|---|
| public SqmSelectQuery Implements org. Doc from jakarta. Specify a restriction over the groups of the query. Replaces the previous having restriction(s), if any.
| |
| having | back to summary |
|---|---|
| public SqmSelectQuery Implements org. Doc from jakarta. Specify restrictions over the groups of the query according the conjunction of the specified restriction predicates. Replaces the previously having added restriction(s), if any. If no restrictions are specified, any previously added restrictions are simply removed.
| |
| isDistinct | back to summary |
|---|---|
| public boolean isDistinct() Implements jakarta. Doc from jakarta. Return whether duplicate query results must be eliminated or retained.
| |
| setQueryPart | back to summary |
|---|---|
| public void setQueryPart(SqmQueryPart<T> sqmQueryPart) | |
| setResultType | back to summary |
|---|---|
| protected void setResultType(Class<T> resultType) | |
| validateComplianceFromSubQuery | back to summary |
|---|---|
| private void validateComplianceFromSubQuery() | |
| validateCteName | back to summary |
|---|---|
| private String validateCteName(String name) | |
| where | back to summary |
|---|---|
| public SqmSelectQuery Implements org. Doc from jakarta. Modify the query to restrict the query results according to the specified boolean expression. Replaces the previously added restriction(s), if any.
| |
| where | back to summary |
|---|---|
| public SqmSelectQuery Implements org. Doc from jakarta. Modify the query to restrict the query results 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.
| |
| with | back to summary |
|---|---|
| public <X> JpaCteCriteria Implements org. Doc from org. Registers the given
| |
| with | back to summary |
|---|---|
| public <X> JpaCteCriteria Implements org. Doc from org. Like
| |
| withInternal | back to summary |
|---|---|
| private <X> JpaCteCriteria | |
| withInternal | back to summary |
|---|---|
| private <X> JpaCteCriteria | |
| withRecursiveUnionAll | back to summary |
|---|---|
| public <X> JpaCteCriteria Implements org. Doc from org. Allows to register a recursive CTE. The base
| |
| withRecursiveUnionAll | back to summary |
|---|---|
| public <X> JpaCteCriteria Implements org. Doc from org. Like
| |
| withRecursiveUnionDistinct | back to summary |
|---|---|
| public <X> JpaCteCriteria Implements org. Doc from org. Allows to register a recursive CTE. The base
| |
| withRecursiveUnionDistinct | back to summary |
|---|---|
| public <X> JpaCteCriteria Implements org. Doc from org. Like
| |