public abstract class AbstractManipulationCriteriaQuery<T> extends Object implements CompilableCriteria, CommonAbstractCriteria
CriteriaUpdate and
CriteriaDelete| Modifier | Constructor and Description |
|---|---|
protected |
AbstractManipulationCriteriaQuery(CriteriaBuilderImpl criteriaBuilder) |
| Modifier and Type | Method and Description |
|---|---|
protected CriteriaBuilderImpl |
criteriaBuilder() |
Root |
from(Class<T> entityClass) |
Root<T> |
from(EntityType<T> entityType) |
Predicate |
getRestriction()
Return the predicate that corresponds to the where clause
restriction(s), or null if no restrictions have been
specified.
|
Root<T> |
getRoot() |
CriteriaInterpretation |
interpret(RenderingContext renderingContext) |
protected abstract String |
renderQuery(RenderingContext renderingContext) |
protected void |
renderRestrictions(StringBuilder jpaql,
RenderingContext renderingContext) |
protected void |
renderRoot(StringBuilder jpaql,
RenderingContext renderingContext) |
protected void |
setRestriction(Expression<Boolean> restriction) |
void |
setRestriction(Predicate... restrictions) |
<U> Subquery<U> |
subquery(Class<U> type)
Create a subquery of the query.
|
void |
validate() |
protected AbstractManipulationCriteriaQuery(CriteriaBuilderImpl criteriaBuilder)
protected CriteriaBuilderImpl criteriaBuilder()
public Root<T> from(EntityType<T> entityType)
protected void setRestriction(Expression<Boolean> restriction)
public void setRestriction(Predicate... restrictions)
public Predicate getRestriction()
CommonAbstractCriteriagetRestriction in interface CommonAbstractCriteriapublic <U> Subquery<U> subquery(Class<U> type)
CommonAbstractCriteriasubquery in interface CommonAbstractCriteriatype - the subquery result typepublic void validate()
validate in interface CompilableCriteriapublic CriteriaInterpretation interpret(RenderingContext renderingContext)
interpret in interface CompilableCriteriaprotected abstract String renderQuery(RenderingContext renderingContext)
protected void renderRoot(StringBuilder jpaql, RenderingContext renderingContext)
protected void renderRestrictions(StringBuilder jpaql, RenderingContext renderingContext)
Copyright © 2017 JBoss by Red Hat. All rights reserved.