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) Set whether duplicate query results are eliminated.<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) Create a query root for the given entity type.<X> JpaRoot<X> Create a query root for the given entity type.<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.Return the group restriction.The query structure.The query structure.Return the restriction.Return the query selection.groupBy(Expression<?>... grouping) Set the grouping expressions.groupBy(List<Expression<?>> grouping) Set the grouping expressions.having(BooleanExpression... restrictions) Set the group restriction.having(Expression<Boolean> restriction) Set the group restriction.having(List<? extends Expression<Boolean>> restrictions) Set the group restriction.where(BooleanExpression... restrictions) Set the restriction.where(Expression<Boolean> restriction) Set the restriction.where(List<? extends Expression<Boolean>> restrictions) Set the restriction.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
Set whether duplicate query results are eliminated.- Specified by:
distinctin interfaceAbstractQuery<T>
-
getSelection
Return the query selection.- Specified by:
getSelectionin interfaceAbstractQuery<T>
-
from
-
from
Create a query root for the given entity type.- Specified by:
fromin interfaceAbstractQuery<T>
-
getRestriction
Return the restriction.- Specified by:
getRestrictionin interfaceCommonAbstractCriteria- Specified by:
getRestrictionin interfaceJpaCriteriaBase
-
where
Set the restriction.- Specified by:
wherein interfaceAbstractQuery<T>
-
where
Set the restriction.- Specified by:
wherein interfaceAbstractQuery<T>
-
where
Set the restriction.- Specified by:
wherein interfaceAbstractQuery<T>
-
groupBy
Set the grouping expressions.- Specified by:
groupByin interfaceAbstractQuery<T>
-
groupBy
Set the grouping expressions.- Specified by:
groupByin interfaceAbstractQuery<T>
-
getGroupRestriction
Return the group restriction.- Specified by:
getGroupRestrictionin interfaceAbstractQuery<T>
-
having
Set the group restriction.- Specified by:
havingin interfaceAbstractQuery<T>
-
having
Set the group restriction.- Specified by:
havingin interfaceAbstractQuery<T>
-
having
Set the group restriction.- Specified by:
havingin interfaceAbstractQuery<T>
-