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
-
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
<U> jakarta.persistence.criteria.Subquery<U>
where
(jakarta.persistence.criteria.Predicate... restrictions)
-
Field Details
-
predicate
protected jakarta.persistence.criteria.Predicate predicate -
entityRoot
-
-
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()
-