Class AbstractPersistentEntityCriteriaDelete<T>
java.lang.Object
io.micronaut.data.model.jpa.criteria.impl.AbstractPersistentEntityCriteriaDelete<T>
- Type Parameters:
T
- The entity type
- All Implemented Interfaces:
QueryResultPersistentEntityCriteriaQuery
,PersistentEntityCommonAbstractCriteria
,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
(io.micronaut.core.annotation.AnnotationMetadata annotationMetadata, QueryBuilder2 queryBuilder) 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> PersistentEntitySubquery<U>
subquery
(ExpressionType<U> type) Create a subquery from the expression type.where
(jakarta.persistence.criteria.Predicate... restrictions) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.data.model.jpa.criteria.PersistentEntityCommonAbstractCriteria
subquery
Methods inherited from interface io.micronaut.data.model.jpa.criteria.impl.QueryResultPersistentEntityCriteriaQuery
buildQuery
-
Field Details
-
predicate
protected jakarta.persistence.criteria.Predicate predicate -
entityRoot
-
returning
protected jakarta.persistence.criteria.Selection<?> returning
-
-
Constructor Details
-
AbstractPersistentEntityCriteriaDelete
public AbstractPersistentEntityCriteriaDelete()
-
-
Method Details
-
buildQuery
public QueryResult buildQuery(io.micronaut.core.annotation.AnnotationMetadata annotationMetadata, QueryBuilder2 queryBuilder) - 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
Description copied from interface:PersistentEntityCommonAbstractCriteria
Create a subquery from the expression type.- Specified by:
subquery
in interfacePersistentEntityCommonAbstractCriteria
- Type Parameters:
U
- The subquery type- Parameters:
type
- The type- Returns:
- A new subquery
-
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.
-