CriteriaDelete interface defines functionality for performing
bulk delete operations using the Criteria API
Criteria API bulk delete operations map directly to database delete operations. The persistence context is not synchronized with the result of the bulk delete.
A CriteriaDelete object must have a single root.
| Modifier and Type | Method and Description |
|---|---|
| public Root | |
| public Root | Returns: query root corresponding to the given entitymetamodel entity representing the entity
of type X entity)Create and add a query root corresponding to the entity that is the target of the delete. |
| public Root | |
| public CriteriaDelete | Returns: the modified delete querya simple or compound boolean expression restriction)Modify the delete query to restrict the target of the deletion according to the specified boolean expression. |
| public CriteriaDelete |
| from | back to summary |
|---|---|
| public Root Create and add a query root corresponding to the entity
that is the target of the delete.
A | |
| from | back to summary |
|---|---|
| public Root Create and add a query root corresponding to the entity
that is the target of the delete.
A
| |
| getRoot | back to summary |
|---|---|
| public Root Return the query root.
| |
| where | back to summary |
|---|---|
| public CriteriaDelete 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.
| |
| where | back to summary |
|---|---|
| public CriteriaDelete 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.
| |