public class CriteriaQueryImpl<T> extends AbstractNode implements CriteriaQuery<T>, CompilableCriteria, Serializable
CriteriaQuery
contract. Mostly a set of delegation to its
internal QueryStructure
.Constructor and Description |
---|
CriteriaQueryImpl(CriteriaBuilderImpl criteriaBuilder,
Class<T> returnType) |
criteriaBuilder
public CriteriaQueryImpl(CriteriaBuilderImpl criteriaBuilder, Class<T> returnType)
public Class<T> getResultType()
getResultType
in interface AbstractQuery<T>
public CriteriaQuery<T> distinct(boolean applyDistinction)
distinct
in interface AbstractQuery<T>
distinct
in interface CriteriaQuery<T>
public boolean isDistinct()
isDistinct
in interface AbstractQuery<T>
public Selection<T> getSelection()
getSelection
in interface AbstractQuery<T>
public CriteriaQuery<T> select(Selection<? extends T> selection)
select
in interface CriteriaQuery<T>
public CriteriaQuery<T> multiselect(Selection<?>... selections)
multiselect
in interface CriteriaQuery<T>
public CriteriaQuery<T> multiselect(List<Selection<?>> selections)
multiselect
in interface CriteriaQuery<T>
public Set<Root<?>> getRoots()
getRoots
in interface AbstractQuery<T>
public <X> Root<X> from(EntityType<X> entityType)
from
in interface AbstractQuery<T>
public <X> Root<X> from(Class<X> entityClass)
from
in interface AbstractQuery<T>
public Predicate getRestriction()
getRestriction
in interface CommonAbstractCriteria
public CriteriaQuery<T> where(Expression<Boolean> expression)
where
in interface AbstractQuery<T>
where
in interface CriteriaQuery<T>
public CriteriaQuery<T> where(Predicate... predicates)
where
in interface AbstractQuery<T>
where
in interface CriteriaQuery<T>
public List<Expression<?>> getGroupList()
getGroupList
in interface AbstractQuery<T>
public CriteriaQuery<T> groupBy(Expression<?>... groupings)
groupBy
in interface AbstractQuery<T>
groupBy
in interface CriteriaQuery<T>
public CriteriaQuery<T> groupBy(List<Expression<?>> groupings)
groupBy
in interface AbstractQuery<T>
groupBy
in interface CriteriaQuery<T>
public Predicate getGroupRestriction()
getGroupRestriction
in interface AbstractQuery<T>
public CriteriaQuery<T> having(Expression<Boolean> expression)
having
in interface AbstractQuery<T>
having
in interface CriteriaQuery<T>
public CriteriaQuery<T> having(Predicate... predicates)
having
in interface AbstractQuery<T>
having
in interface CriteriaQuery<T>
public List<Order> getOrderList()
getOrderList
in interface CriteriaQuery<T>
public CriteriaQuery<T> orderBy(Order... orders)
orderBy
in interface CriteriaQuery<T>
public CriteriaQuery<T> orderBy(List<Order> orders)
orderBy
in interface CriteriaQuery<T>
public Set<ParameterExpression<?>> getParameters()
getParameters
in interface CriteriaQuery<T>
public <U> Subquery<U> subquery(Class<U> subqueryType)
subquery
in interface CommonAbstractCriteria
public void validate()
validate
in interface CompilableCriteria
public CriteriaInterpretation interpret(RenderingContext renderingContext)
interpret
in interface CompilableCriteria
Copyright © 2001-2017 Red Hat, Inc. All Rights Reserved.