Class AbstractPersistentEntityCriteriaDelete<T>
java.lang.Object
io.micronaut.data.model.jpa.criteria.impl.AbstractPersistentEntityCriteriaDelete<T>
- Type Parameters:
T
- The entity type
- All Implemented Interfaces:
QueryModelPersistentEntityCriteriaQuery
,QueryResultPersistentEntityCriteriaQuery
,PersistentEntityCriteriaDelete<T>
,jakarta.persistence.criteria.CommonAbstractCriteria
,jakarta.persistence.criteria.CriteriaDelete<T>
@Internal
public abstract class AbstractPersistentEntityCriteriaDelete<T>
extends Object
implements PersistentEntityCriteriaDelete<T>, QueryResultPersistentEntityCriteriaQuery
The abstract implementation of
PersistentEntityCriteriaDelete
.- Since:
- 3.2
- Author:
- Denis Stepanov
-
Field Summary
Modifier and TypeFieldDescriptionprotected PersistentEntityRoot<T>
protected jakarta.persistence.criteria.Predicate
protected jakarta.persistence.criteria.Selection<?>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuildQuery
(QueryBuilder queryBuilder) protected @NonNull QueryModelPredicateVisitor
createPredicateVisitor
(QueryModel queryModel) Creates query model predicate visitor.abstract PersistentEntityRoot<T>
from
(PersistentEntity persistentEntity) abstract PersistentEntityRoot<T>
jakarta.persistence.criteria.Predicate
getRoot()
final boolean
The returning result of the query.returningMulti
(@NonNull jakarta.persistence.criteria.Selection<?>... selections) The returning result of the query.returningMulti
(List<jakarta.persistence.criteria.Selection<?>> selectionList) The returning result of the query.<U> jakarta.persistence.criteria.Subquery<U>
where
(jakarta.persistence.criteria.Predicate... restrictions)
-
Field Details
-
predicate
protected jakarta.persistence.criteria.Predicate predicate -
entityRoot
-
returning
protected jakarta.persistence.criteria.Selection<?> returning
-
-
Constructor Details
-
AbstractPersistentEntityCriteriaDelete
public AbstractPersistentEntityCriteriaDelete()
-
-
Method Details
-
getQueryModel
- Specified by:
getQueryModel
in interfaceQueryModelPersistentEntityCriteriaQuery
-
createPredicateVisitor
@NonNull protected @NonNull QueryModelPredicateVisitor createPredicateVisitor(QueryModel queryModel) Creates query model predicate visitor.- Parameters:
queryModel
- The query model- Returns:
- the visitor
-
buildQuery
- Specified by:
buildQuery
in interfaceQueryResultPersistentEntityCriteriaQuery
-
from
- Specified by:
from
in interfacejakarta.persistence.criteria.CriteriaDelete<T>
- Specified by:
from
in interfacePersistentEntityCriteriaDelete<T>
-
from
- Specified by:
from
in interfacePersistentEntityCriteriaDelete<T>
-
from
- Specified by:
from
in interfacejakarta.persistence.criteria.CriteriaDelete<T>
- Specified by:
from
in interfacePersistentEntityCriteriaDelete<T>
-
where
public PersistentEntityCriteriaDelete<T> where(jakarta.persistence.criteria.Expression<Boolean> restriction) - Specified by:
where
in interfacejakarta.persistence.criteria.CriteriaDelete<T>
- Specified by:
where
in interfacePersistentEntityCriteriaDelete<T>
-
where
public PersistentEntityCriteriaDelete<T> where(jakarta.persistence.criteria.Predicate... restrictions) - Specified by:
where
in interfacejakarta.persistence.criteria.CriteriaDelete<T>
- Specified by:
where
in interfacePersistentEntityCriteriaDelete<T>
-
getRoot
- Specified by:
getRoot
in interfacejakarta.persistence.criteria.CriteriaDelete<T>
- Specified by:
getRoot
in interfacePersistentEntityCriteriaDelete<T>
-
getRestriction
public jakarta.persistence.criteria.Predicate getRestriction()- Specified by:
getRestriction
in interfacejakarta.persistence.criteria.CommonAbstractCriteria
-
subquery
- Specified by:
subquery
in interfacejakarta.persistence.criteria.CommonAbstractCriteria
-
hasVersionRestriction
public final boolean hasVersionRestriction() -
returning
public PersistentEntityCriteriaDelete<T> returning(jakarta.persistence.criteria.Selection<? extends T> selection) Description copied from interface:PersistentEntityCriteriaDelete
The returning result of the query.- Specified by:
returning
in interfacePersistentEntityCriteriaDelete<T>
- Parameters:
selection
- The selection to return- Returns:
- The delete criteria.
-
returningMulti
public PersistentEntityCriteriaDelete<T> returningMulti(List<jakarta.persistence.criteria.Selection<?>> selectionList) Description copied from interface:PersistentEntityCriteriaDelete
The returning result of the query.- Specified by:
returningMulti
in interfacePersistentEntityCriteriaDelete<T>
- Parameters:
selectionList
- The multi selection to return- Returns:
- The delete criteria.
-
returningMulti
public PersistentEntityCriteriaDelete<T> returningMulti(@NonNull @NonNull jakarta.persistence.criteria.Selection<?>... selections) Description copied from interface:PersistentEntityCriteriaDelete
The returning result of the query.- Specified by:
returningMulti
in interfacePersistentEntityCriteriaDelete<T>
- Parameters:
selections
- The multi selection to return- Returns:
- The delete criteria.
-