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

public Class CriteriaDeleteImpl<T>

extends AbstractManipulationCriteriaQuery<T>
implements CriteriaDelete<T>
Class Inheritance
All Implemented Interfaces
javax.persistence.criteria.CriteriaDelete, javax.persistence.criteria.CommonAbstractCriteria
Imports
javax.persistence.criteria.CriteriaDelete, .Expression, .Predicate, org.hibernate.query.criteria.internal.compile.RenderingContext

Hibernate implementation of the JPA 2.1 CriteriaDelete contract.
Author
Steve Ebersole

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
protected String
public CriteriaDelete<T>
where(Expression<Boolean>
a simple or compound boolean expression
restriction
)

Implements javax.persistence.criteria.CriteriaDelete.where.

Modify the delete query to restrict the target of the deletion according to the specified boolean expression.
public CriteriaDelete<T>
where(Predicate...
zero or more restriction predicates
restrictions
)

Implements javax.persistence.criteria.CriteriaDelete.where.

Modify the delete query to restrict the target of the deletion according to the conjunction of the specified restriction predicates.
Inherited from org.hibernate.query.criteria.internal.AbstractManipulationCriteriaQuery:
criteriaBuilderfromfromgetRestrictiongetRootinterpretrenderRestrictionsrenderRootsetRestrictionsetRestrictionsubqueryvalidate

Constructor Detail

CriteriaDeleteImplback to summary
protected CriteriaDeleteImpl(CriteriaBuilderImpl criteriaBuilder)

Method Detail

renderQueryback to summary
protected String renderQuery(RenderingContext renderingContext)

Implements abstract org.hibernate.query.criteria.internal.AbstractManipulationCriteriaQuery.renderQuery.

Annotations
@Override
whereback to summary
public CriteriaDelete<T> where(Expression<Boolean> restriction)

Implements javax.persistence.criteria.CriteriaDelete.where.

Doc from javax.persistence.criteria.CriteriaDelete.where.

Modify the delete query to restrict the target of the deletion according to the specified boolean expression. Replaces the previously added restriction(s), if any.

Parameters
restriction:Expression<Boolean>

a simple or compound boolean expression

Returns:CriteriaDelete<T>

the modified delete query

Annotations
@Override
whereback to summary
public CriteriaDelete<T> where(Predicate... restrictions)

Implements javax.persistence.criteria.CriteriaDelete.where.

Doc from javax.persistence.criteria.CriteriaDelete.where.

Modify the delete query to restrict the target of the deletion according to the conjunction of the specified restriction predicates. Replaces the previously added restriction(s), if any. If no restrictions are specified, any previously added restrictions are simply removed.

Parameters
restrictions:Predicate[]

zero or more restriction predicates

Returns:CriteriaDelete<T>

the modified delete query

Annotations
@Override