public class CriteriaSubqueryImpl<T> extends ExpressionImpl<T> implements Subquery<T>, Serializable
Subquery
contract. Mostlty a set of delegation to its internal
QueryStructure
.Modifier and Type | Class and Description |
---|---|
static class |
CriteriaSubqueryImpl.SubquerySelection<S> |
ParameterContainer.Helper
Constructor and Description |
---|
CriteriaSubqueryImpl(CriteriaBuilderImpl criteriaBuilder,
Class<T> javaType,
CommonAbstractCriteria parent) |
as, asBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asString, in, in, in, in, isNotNull, isNull
alias, getCompoundSelectionItems, getValueHandlers, isCompoundSelection
forceConversion, getAlias, getJavaType, getValueHandler, resetJavaType, setAlias
criteriaBuilder
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
as, in, in, in, in, isNotNull, isNull
alias, getCompoundSelectionItems, isCompoundSelection
getAlias, getJavaType
getValueHandlers
getValueHandler
public CriteriaSubqueryImpl(CriteriaBuilderImpl criteriaBuilder, Class<T> javaType, CommonAbstractCriteria parent)
public AbstractQuery<?> getParent()
public CommonAbstractCriteria getContainingQuery()
getContainingQuery
in interface Subquery<T>
public void registerParameters(ParameterRegistry registry)
ParameterContainer
registerParameters
in interface ParameterContainer
registry
- The parameter registry with which to register.public Class<T> getResultType()
getResultType
in interface AbstractQuery<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 boolean isDistinct()
isDistinct
in interface AbstractQuery<T>
public Expression<T> getSelection()
getSelection
in interface AbstractQuery<T>
getSelection
in interface Subquery<T>
public Subquery<T> select(Expression<T> expression)
public Predicate getRestriction()
getRestriction
in interface CommonAbstractCriteria
public Subquery<T> where(Expression<Boolean> expression)
public List<Expression<?>> getGroupList()
getGroupList
in interface AbstractQuery<T>
public Subquery<T> groupBy(Expression<?>... groupings)
public Subquery<T> groupBy(List<Expression<?>> groupings)
public Predicate getGroupRestriction()
getGroupRestriction
in interface AbstractQuery<T>
public Subquery<T> having(Expression<Boolean> expression)
public Set<Join<?,?>> getCorrelatedJoins()
getCorrelatedJoins
in interface Subquery<T>
public <X,Y> CollectionJoin<X,Y> correlate(CollectionJoin<X,Y> source)
public <U> Subquery<U> subquery(Class<U> subqueryType)
subquery
in interface CommonAbstractCriteria
public String render(RenderingContext renderingContext)
render
in interface Renderable
public String renderProjection(RenderingContext renderingContext)
renderProjection
in interface Renderable
Copyright © 2001-2017 Red Hat, Inc. All Rights Reserved.