Class AbstractPersistentEntityCriteriaQuery<T>
java.lang.Object
io.micronaut.data.model.jpa.criteria.impl.AbstractPersistentEntityQuery<T,PersistentEntityCriteriaQuery<T>>
io.micronaut.data.model.jpa.criteria.impl.AbstractPersistentEntityCriteriaQuery<T>
- Type Parameters:
T
- The result type
- All Implemented Interfaces:
QueryResultPersistentEntityCriteriaQuery
,PersistentEntityCommonAbstractCriteria
,PersistentEntityCriteriaQuery<T>
,PersistentEntityQuery<T>
,jakarta.persistence.criteria.AbstractQuery<T>
,jakarta.persistence.criteria.CommonAbstractCriteria
,jakarta.persistence.criteria.CriteriaQuery<T>
@Internal
public abstract class AbstractPersistentEntityCriteriaQuery<T>
extends AbstractPersistentEntityQuery<T,PersistentEntityCriteriaQuery<T>>
implements PersistentEntityCriteriaQuery<T>
The abstract implementation of
PersistentEntityCriteriaQuery
.- Since:
- 3.2
- Author:
- Denis Stepanov
-
Field Summary
Fields inherited from class io.micronaut.data.model.jpa.criteria.impl.AbstractPersistentEntityQuery
criteriaBuilder, distinct, entityRoot, forUpdate, max, offset, orders, parametersInRole, predicate, resultType, selection
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractPersistentEntityCriteriaQuery
(ExpressionType<T> resultType, jakarta.persistence.criteria.CriteriaBuilder criteriaBuilder) -
Method Summary
Modifier and TypeMethodDescriptionList<jakarta.persistence.criteria.Order>
Set<jakarta.persistence.criteria.ParameterExpression<?>>
multiselect
(jakarta.persistence.criteria.Selection<?>... selections) multiselect
(List<jakarta.persistence.criteria.Selection<?>> selectionList) orderBy
(jakarta.persistence.criteria.Order... orders) Ordering of the query.Ordering of the query.protected PersistentEntityCriteriaQuery<T>
self()
Methods inherited from class io.micronaut.data.model.jpa.criteria.impl.AbstractPersistentEntityQuery
buildQuery, distinct, forUpdate, from, from, from, getGroupList, getGroupRestriction, getParametersInRole, getRestriction, getResultType, getRoots, getSelection, groupBy, groupBy, hasOnlyIdRestriction, hasVersionRestriction, having, having, isDistinct, limit, offset, toSelectQueryDefinition, where, where
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface jakarta.persistence.criteria.AbstractQuery
getGroupList, getGroupRestriction, getResultType, getRoots, getSelection, isDistinct
Methods inherited from interface jakarta.persistence.criteria.CommonAbstractCriteria
getRestriction
Methods inherited from interface io.micronaut.data.model.jpa.criteria.PersistentEntityCommonAbstractCriteria
subquery, subquery
Methods inherited from interface io.micronaut.data.model.jpa.criteria.PersistentEntityCriteriaQuery
distinct, forUpdate, from, from, from, groupBy, groupBy, having, having, limit, offset, where, where
Methods inherited from interface io.micronaut.data.model.jpa.criteria.impl.QueryResultPersistentEntityCriteriaQuery
buildQuery
-
Constructor Details
-
AbstractPersistentEntityCriteriaQuery
protected AbstractPersistentEntityCriteriaQuery(ExpressionType<T> resultType, jakarta.persistence.criteria.CriteriaBuilder criteriaBuilder)
-
-
Method Details
-
self
- Specified by:
self
in classAbstractPersistentEntityQuery<T,
PersistentEntityCriteriaQuery<T>> - Returns:
- The self instance
-
select
public PersistentEntityCriteriaQuery<T> select(jakarta.persistence.criteria.Selection<? extends T> selection) - Specified by:
select
in interfacejakarta.persistence.criteria.CriteriaQuery<T>
- Specified by:
select
in interfacePersistentEntityCriteriaQuery<T>
-
multiselect
public PersistentEntityCriteriaQuery<T> multiselect(jakarta.persistence.criteria.Selection<?>... selections) - Specified by:
multiselect
in interfacejakarta.persistence.criteria.CriteriaQuery<T>
- Specified by:
multiselect
in interfacePersistentEntityCriteriaQuery<T>
-
multiselect
public PersistentEntityCriteriaQuery<T> multiselect(List<jakarta.persistence.criteria.Selection<?>> selectionList) - Specified by:
multiselect
in interfacejakarta.persistence.criteria.CriteriaQuery<T>
- Specified by:
multiselect
in interfacePersistentEntityCriteriaQuery<T>
-
orderBy
Description copied from interface:PersistentEntityQuery
Ordering of the query.- Specified by:
orderBy
in interfacejakarta.persistence.criteria.CriteriaQuery<T>
- Specified by:
orderBy
in interfacePersistentEntityCriteriaQuery<T>
- Specified by:
orderBy
in interfacePersistentEntityQuery<T>
- Parameters:
orders
- The order- Returns:
- The query
-
orderBy
Description copied from interface:PersistentEntityQuery
Ordering of the query.- Specified by:
orderBy
in interfacejakarta.persistence.criteria.CriteriaQuery<T>
- Specified by:
orderBy
in interfacePersistentEntityCriteriaQuery<T>
- Specified by:
orderBy
in interfacePersistentEntityQuery<T>
- Parameters:
orders
- The order- Returns:
- The query
-
getOrderList
- Specified by:
getOrderList
in interfacejakarta.persistence.criteria.CriteriaQuery<T>
-
getParameters
- Specified by:
getParameters
in interfacejakarta.persistence.criteria.CriteriaQuery<T>
-