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 CommonAbstractCriteriapublic <U> Subquery<U> subquery(Class<U> type)
subquery in interface CommonAbstractCriteriapublic 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 © 2001-2015 Red Hat, Inc. All Rights Reserved.