Purpose: Contains the implementation of the CriteriaDelete interface of the JPA criteria API.
Description: This is the container class for the components that define a Delete Query.
CriteriaDelete
| Modifier and Type | Field and Description |
|---|---|
| protected Root | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Root | from(Class<T>
the entity class entityClass)Implements jakarta. |
| public Root | from(EntityType<T>
metamodel entity representing the entity
of type X entity)Implements jakarta. |
| protected Expression | |
| protected DatabaseQuery | |
| public Root | |
| protected void | integrateRoot(RootImpl<X> root)
Implements abstract org. |
| public CriteriaDelete | where(Expression<Boolean>
a simple or compound boolean expression restriction)Overrides org. Implements jakarta. |
| public CriteriaDelete | where(Predicate...
zero or more restriction predicates restrictions)Overrides org. Implements jakarta. |
| root | back to summary |
|---|---|
| protected Root<T> root | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides org. | |
| CriteriaDeleteImpl | back to summary |
|---|---|
| public CriteriaDeleteImpl(Metamodel metamodel, CriteriaBuilderImpl queryBuilder, Class<T> resultType) | |
| from | back to summary |
|---|---|
| public Root Implements jakarta. Doc from jakarta. Create and add a query root corresponding to the entity
that is the target of the delete.
A | |
| from | back to summary |
|---|---|
| public Root Implements jakarta. Doc from jakarta. Create and add a query root corresponding to the entity
that is the target of the delete.
A
| |
| getBaseExpression | back to summary |
|---|---|
| protected Expression getBaseExpression() Implements abstract org.
| |
| getDatabaseQuery | back to summary |
|---|---|
| protected DatabaseQuery getDatabaseQuery() Implements abstract org.
| |
| getRoot | back to summary |
|---|---|
| public Root Implements jakarta. Doc from jakarta. Return the query root. | |
| integrateRoot | back to summary |
|---|---|
| protected void integrateRoot(RootImpl<X> root) Implements abstract org. Doc from org. Used to use a root from a different query.
| |
| where | back to summary |
|---|---|
| public CriteriaDelete Overrides org. Implements jakarta. Doc from jakarta. 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 Overrides org. Implements jakarta. Doc from jakarta. 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.
| |