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() |
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) |
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()
getRestriction
in interface CommonAbstractCriteria
public <U> Subquery<U> subquery(Class<U> type)
subquery
in interface CommonAbstractCriteria
public void validate()
validate
in interface CompilableCriteria
public CriteriaInterpretation interpret(RenderingContext renderingContext)
interpret
in interface CompilableCriteria
protected abstract String renderQuery(RenderingContext renderingContext)
protected void renderRoot(StringBuilder jpaql, RenderingContext renderingContext)
protected void renderRestrictions(StringBuilder jpaql, RenderingContext renderingContext)
Copyright © 2001-2017 Red Hat, Inc. All Rights Reserved.