Package org.hibernate.query.criteria
Interface JpaCriteriaDelete<T>
- All Superinterfaces:
CommonAbstractCriteria,CriteriaDelete<T>,JpaCriteriaBase,JpaCriteriaNode,JpaCteContainer,JpaManipulationCriteria<T>,JpaQueryableCriteria<T>,Serializable
- All Known Implementing Classes:
SqmDeleteStatement
- Author:
- Steve Ebersole
-
Method Summary
Modifier and TypeMethodDescriptionfrom(EntityType<T> entity) Create and add a query root corresponding to the entity that is the target of the delete.Create and add a query root corresponding to the entity that is the target of the delete.getRoot()Return the query root.where(Expression<Boolean> restriction) Modify the delete query to restrict the target of the deletion according to the specified boolean expression.Modify the delete query to restrict the target of the deletion according to the conjunction of the specified restriction predicates.Methods inherited from interface org.hibernate.query.criteria.JpaCriteriaBase
getRestriction, subqueryMethods inherited from interface org.hibernate.query.criteria.JpaCteContainer
getCteCriteria, getCteCriterias, with, with, withRecursiveUnionAll, withRecursiveUnionAll, withRecursiveUnionDistinct, withRecursiveUnionDistinctMethods inherited from interface org.hibernate.query.criteria.JpaManipulationCriteria
getTarget, setTarget
-
Method Details
-
from
Description copied from interface:CriteriaDeleteCreate and add a query root corresponding to the entity that is the target of the delete. ACriteriaDeleteobject has a single root, the entity that is being deleted.- Specified by:
fromin interfaceCriteriaDelete<T>- Parameters:
entityClass- the entity class- Returns:
- query root corresponding to the given entity
-
from
Description copied from interface:CriteriaDeleteCreate and add a query root corresponding to the entity that is the target of the delete. ACriteriaDeleteobject has a single root, the entity that is being deleted.- Specified by:
fromin interfaceCriteriaDelete<T>- Parameters:
entity- metamodel entity representing the entity of type X- Returns:
- query root corresponding to the given entity
-
getRoot
Description copied from interface:CriteriaDeleteReturn the query root.- Specified by:
getRootin interfaceCriteriaDelete<T>- Returns:
- the query root
-
where
Description copied from interface:CriteriaDeleteModify the delete query to restrict the target of the deletion according to the specified boolean expression. Replaces the previously added restriction(s), if any.- Specified by:
wherein interfaceCriteriaDelete<T>- Parameters:
restriction- a simple or compound boolean expression- Returns:
- the modified delete query
-
where
Description copied from interface:CriteriaDeleteModify 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.- Specified by:
wherein interfaceCriteriaDelete<T>- Parameters:
restrictions- zero or more restriction predicates- Returns:
- the modified delete query
-