Top Description Fields Constructors Methods
org.hibernate.query.criteria.internal

public abstract Class AbstractManipulationCriteriaQuery<T>

extends Object
implements CompilableCriteria, CommonAbstractCriteria
Class Inheritance
All Implemented Interfaces
javax.persistence.criteria.CommonAbstractCriteria, org.hibernate.query.criteria.internal.compile.CompilableCriteria
Known Direct Subclasses
org.hibernate.query.criteria.internal.CriteriaDeleteImpl, org.hibernate.query.criteria.internal.CriteriaUpdateImpl
Imports
java.util.HashMap, .List, .Map, javax.persistence.criteria.CommonAbstractCriteria, .Expression, .Predicate, .Root, .Subquery, javax.persistence.metamodel.EntityType, org.hibernate.engine.spi.SessionImplementor, .SharedSessionContractImplementor, org.hibernate.jpa.spi.HibernateEntityManagerImplementor, org.hibernate.query.criteria.internal.compile.CompilableCriteria, .CriteriaInterpretation, .ImplicitParameterBinding, .InterpretedParameterMetadata, .RenderingContext, org.hibernate.query.criteria.internal.path.RootImpl, org.hibernate.query.spi.QueryImplementor, org.hibernate.sql.ast.Clause

Base class for commonality between javax.persistence.criteria.CriteriaUpdate and javax.persistence.criteria.CriteriaDelete
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final CriteriaBuilderImpl
private Predicate
private RootImpl<T>

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
protected CriteriaBuilderImpl
public Root<X>
from(Class<T> entityClass)

public Root<T>
from(EntityType<T> entityType)

public Predicate
getRestriction()

Implements javax.persistence.criteria.CommonAbstractCriteria.getRestriction.

Return the predicate that corresponds to the where clause restriction(s), or null if no restrictions have been specified.
public Root<T>
public CriteriaInterpretation
protected abstract String
renderQuery(RenderingContext renderingContext)

protected void
protected void
renderRoot(StringBuilder jpaql, RenderingContext renderingContext)

protected void
public void
setRestriction(Predicate... restrictions)

public <U> Subquery<U>
subquery(Class<U>
the subquery result type
type
)

Implements javax.persistence.criteria.CommonAbstractCriteria.subquery.

Create a subquery of the query.
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

criteriaBuilderback to summary
private final CriteriaBuilderImpl criteriaBuilder
restrictionback to summary
private Predicate restriction
rootback to summary
private RootImpl<T> root

Constructor Detail

AbstractManipulationCriteriaQueryback to summary
protected AbstractManipulationCriteriaQuery(CriteriaBuilderImpl criteriaBuilder)

Method Detail

criteriaBuilderback to summary
protected CriteriaBuilderImpl criteriaBuilder()
fromback to summary
public Root<X> from(Class<T> entityClass)
fromback to summary
public Root<T> from(EntityType<T> entityType)
getRestrictionback to summary
public Predicate getRestriction()

Implements javax.persistence.criteria.CommonAbstractCriteria.getRestriction.

Doc from javax.persistence.criteria.CommonAbstractCriteria.getRestriction.

Return the predicate that corresponds to the where clause restriction(s), or null if no restrictions have been specified.

Returns:Predicate

where clause predicate

getRootback to summary
public Root<T> getRoot()
interpretback to summary
public CriteriaInterpretation interpret(RenderingContext renderingContext)

Implements org.hibernate.query.criteria.internal.compile.CompilableCriteria.interpret.

Annotations
@Override
renderQueryback to summary
protected abstract String renderQuery(RenderingContext renderingContext)
renderRestrictionsback to summary
protected void renderRestrictions(StringBuilder jpaql, RenderingContext renderingContext)
renderRootback to summary
protected void renderRoot(StringBuilder jpaql, RenderingContext renderingContext)
setRestrictionback to summary
protected void setRestriction(Expression<Boolean> restriction)
setRestrictionback to summary
public void setRestriction(Predicate... restrictions)
subqueryback to summary
public <U> Subquery<U> subquery(Class<U> type)

Implements javax.persistence.criteria.CommonAbstractCriteria.subquery.

Doc from javax.persistence.criteria.CommonAbstractCriteria.subquery.

Create a subquery of the query.

Parameters
type:Class<U>

the subquery result type

Returns:Subquery<U>

subquery

validateback to summary
public void validate()

Implements org.hibernate.query.criteria.internal.compile.CompilableCriteria.validate.