public class QueryStructure<T> extends Object implements Serializable
CriteriaQuery
and
Subquery
.
Note the ORDER BY specs are neglected here. That's because it is not valid
for a subquery to define an ORDER BY clause. So we just handle them on the
root query directly...Constructor and Description |
---|
QueryStructure(AbstractQuery<T> owner,
CriteriaBuilderImpl criteriaBuilder) |
Modifier and Type | Method and Description |
---|---|
void |
addCorrelationRoot(FromImplementor fromImplementor) |
Set<Join<?,?>> |
collectCorrelatedJoins() |
<X> Root<X> |
from(Class<X> entityClass) |
<X> Root<X> |
from(EntityType<X> entityType) |
List<Expression<?>> |
getGroupings() |
Predicate |
getHaving() |
Set<ParameterExpression<?>> |
getParameters() |
Predicate |
getRestriction() |
Set<Root<?>> |
getRoots() |
Selection<? extends T> |
getSelection() |
List<Subquery<?>> |
getSubqueries() |
List<Subquery<?>> |
internalGetSubqueries() |
boolean |
isDistinct() |
void |
render(StringBuilder jpaqlQuery,
RenderingContext renderingContext) |
void |
setDistinct(boolean distinct) |
void |
setGroupings(Expression<?>... groupings) |
void |
setGroupings(List<Expression<?>> groupings) |
void |
setHaving(Predicate having) |
void |
setRestriction(Predicate restriction) |
void |
setSelection(Selection<? extends T> selection) |
<U> Subquery<U> |
subquery(Class<U> subqueryType) |
public QueryStructure(AbstractQuery<T> owner, CriteriaBuilderImpl criteriaBuilder)
public Set<ParameterExpression<?>> getParameters()
public boolean isDistinct()
public void setDistinct(boolean distinct)
public <X> Root<X> from(EntityType<X> entityType)
public void addCorrelationRoot(FromImplementor fromImplementor)
public Predicate getRestriction()
public void setRestriction(Predicate restriction)
public List<Expression<?>> getGroupings()
public void setGroupings(List<Expression<?>> groupings)
public void setGroupings(Expression<?>... groupings)
public Predicate getHaving()
public void setHaving(Predicate having)
public void render(StringBuilder jpaqlQuery, RenderingContext renderingContext)
Copyright © 2019 JBoss by Red Hat. All rights reserved.