Interface JpaSelectCriteria<T>
- All Superinterfaces:
AbstractQuery<T>, CommonAbstractCriteria, JpaCriteriaBase, JpaCriteriaNode, Serializable
- All Known Subinterfaces:
JpaCriteriaQuery<T>, JpaSubQuery<T>, SqmSelectQuery<T>
- All Known Implementing Classes:
AbstractSqmSelectQuery, CriteriaDefinition, SqmSelectStatement, SqmSubQuery
Commonality between a JPA
JpaCriteriaQuery and JpaSubQuery,
mainly in the form of delegation to JpaQueryStructure-
Method Summary
Modifier and TypeMethodDescriptiondistinct(boolean distinct) <X> JpaDerivedRoot<X> Create and add a query root corresponding to the given subquery, forming a cartesian product with any existing roots.<X> JpaRoot<X> from(EntityType<X> entity) <X> JpaRoot<X> <X> JpaRoot<X> from(JpaCteCriteria<X> cte) Create and add a query root corresponding to the given cte, forming a cartesian product with any existing roots.<X> JpaFunctionRoot<X> from(JpaSetReturningFunction<X> function) Create and add a query root corresponding to the given set-returning function, forming a cartesian product with any existing roots.The query structure.The query structure.groupBy(Expression<?>... grouping) groupBy(List<Expression<?>> grouping) having(BooleanExpression... restrictions) having(Expression<Boolean> restriction) having(List<? extends Expression<Boolean>> restrictions) where(BooleanExpression... restrictions) where(Expression<Boolean> restriction) where(List<? extends Expression<Boolean>> restrictions) Methods inherited from interface AbstractQuery
getGroupList, getResultType, getRootList, getRoots, isDistinctMethods inherited from interface CommonAbstractCriteria
getParameters, subqueryMethods inherited from interface JpaCriteriaBase
subquery
-
Method Details
-
getQuerySpec
The query structure. SeeJpaQueryStructurefor details -
getQueryPart
The query structure. SeeJpaQueryStructurefor details -
from
Create and add a query root corresponding to the given subquery, forming a cartesian product with any existing roots.- Parameters:
subquery- the subquery- Returns:
- query root corresponding to the given subquery
-
from
Create and add a query root corresponding to the given cte, forming a cartesian product with any existing roots.- Parameters:
cte- the cte criteria- Returns:
- query root corresponding to the given cte
-
from
Create and add a query root corresponding to the given set-returning function, forming a cartesian product with any existing roots.- Parameters:
function- the set-returning function- Returns:
- query root corresponding to the given function
-
distinct
- Specified by:
distinctin interfaceAbstractQuery<T>
-
getSelection
- Specified by:
getSelectionin interfaceAbstractQuery<T>
-
from
-
from
- Specified by:
fromin interfaceAbstractQuery<T>
-
getRestriction
- Specified by:
getRestrictionin interfaceCommonAbstractCriteria- Specified by:
getRestrictionin interfaceJpaCriteriaBase
-
where
- Specified by:
wherein interfaceAbstractQuery<T>
-
where
- Specified by:
wherein interfaceAbstractQuery<T>
-
where
- Specified by:
wherein interfaceAbstractQuery<T>
-
groupBy
- Specified by:
groupByin interfaceAbstractQuery<T>
-
groupBy
- Specified by:
groupByin interfaceAbstractQuery<T>
-
getGroupRestriction
- Specified by:
getGroupRestrictionin interfaceAbstractQuery<T>
-
having
- Specified by:
havingin interfaceAbstractQuery<T>
-
having
- Specified by:
havingin interfaceAbstractQuery<T>
-
having
- Specified by:
havingin interfaceAbstractQuery<T>
-