Interface JPQLNextQuery<T,Q extends JPQLNextQuery<T,Q>>
- Type Parameters:
T- Query result typeQ- Concrete query type
- All Superinterfaces:
com.querydsl.core.types.Expression<T>,com.querydsl.core.support.ExtendedSubQuery<T>,com.querydsl.core.Fetchable<T>,com.querydsl.core.FetchableQuery<T,com.querydsl.jpa.JPQLQuery<T>>,com.querydsl.core.FilteredClause<com.querydsl.jpa.JPQLQuery<T>>,com.querydsl.jpa.JPQLQuery<T>,com.querydsl.core.Query<com.querydsl.jpa.JPQLQuery<T>>,Serializable,com.querydsl.core.SimpleQuery<com.querydsl.jpa.JPQLQuery<T>>,com.querydsl.core.types.SubQueryExpression<T>
- All Known Implementing Classes:
AbstractBlazeJPAQuery,BlazeJPAQuery
public interface JPQLNextQuery<T,Q extends JPQLNextQuery<T,Q>>
extends com.querydsl.jpa.JPQLQuery<T>
Query interface for JPQL.Next queries
- Since:
- 1.5.0
- Author:
- Jan-Willem Gmelig Meyling
-
Method Summary
Modifier and Type Method Description Qdistinct()<RT> SetExpression<RT>except(com.querydsl.core.types.SubQueryExpression<RT>... sq)Creates an except expression for the given subqueries.<RT> SetExpression<RT>except(List<com.querydsl.core.types.SubQueryExpression<RT>> sq)Creates an except expression for the given subqueries<RT> SetExpression<RT>exceptAll(com.querydsl.core.types.SubQueryExpression<RT>... sq)Creates an except expression for the given subqueries.<RT> SetExpression<RT>exceptAll(List<com.querydsl.core.types.SubQueryExpression<RT>> sq)Creates an except expression for the given subqueriesQfetchAll()QfetchJoin()<P> Qfrom(com.querydsl.core.types.CollectionExpression<?,P> target, com.querydsl.core.types.Path<P> alias)Qfrom(com.querydsl.core.types.EntityPath<?>... sources)<X> Qfrom(com.querydsl.core.types.SubQueryExpression<X> subQueryExpression, com.querydsl.core.types.Path<X> alias)Add sources to this query<X> QfromIdentifiableValues(com.querydsl.core.types.EntityPath<X> path, Collection<X> elements)Select from a set of values using theVALUESclause.<X> QfromIdentifiableValues(com.querydsl.core.types.Path<X> path, com.querydsl.core.types.Path<X> alias, Collection<X> elements)Select from a set of values using theVALUESclause.<X> QfromValues(com.querydsl.core.types.EntityPath<X> path, Collection<X> elements)Select from a set of values using theVALUESclause.<X> QfromValues(com.querydsl.core.types.Path<X> path, com.querydsl.core.types.Path<X> alias, Collection<X> elements)Select from a set of values using theVALUESclause.<P> QfullJoin(com.querydsl.core.types.CollectionExpression<?,P> target)Create a full join with the given target.<P> QfullJoin(com.querydsl.core.types.CollectionExpression<?,P> target, com.querydsl.core.types.Path<P> alias)Create a full join with the given target.<P> QfullJoin(com.querydsl.core.types.EntityPath<P> target)Create a full join with the given target.<P> QfullJoin(com.querydsl.core.types.EntityPath<P> target, com.querydsl.core.types.Path<P> alias)Create a full join with the given target.<P> QfullJoin(com.querydsl.core.types.MapExpression<?,P> target)Create a full join with the given target.<P> QfullJoin(com.querydsl.core.types.MapExpression<?,P> target, com.querydsl.core.types.Path<P> alias)Create a full join with the given target.<X> QfullJoin(com.querydsl.core.types.SubQueryExpression<X> o, com.querydsl.core.types.Path<X> alias)Adds a full join to the given target.QgroupBy(com.querydsl.core.types.Expression<?>... expressions)Qhaving(com.querydsl.core.types.Predicate... predicates)<P> QinnerJoin(com.querydsl.core.types.CollectionExpression<?,P> target)<P> QinnerJoin(com.querydsl.core.types.CollectionExpression<?,P> target, com.querydsl.core.types.Path<P> alias)<P> QinnerJoin(com.querydsl.core.types.EntityPath<P> target)<P> QinnerJoin(com.querydsl.core.types.EntityPath<P> target, com.querydsl.core.types.Path<P> alias)<P> QinnerJoin(com.querydsl.core.types.MapExpression<?,P> target)<P> QinnerJoin(com.querydsl.core.types.MapExpression<?,P> target, com.querydsl.core.types.Path<P> alias)<X> QinnerJoin(com.querydsl.core.types.SubQueryExpression<X> o, com.querydsl.core.types.Path<X> alias)Adds a inner join to the given target.<RT> SetExpression<RT>intersect(com.querydsl.core.types.SubQueryExpression<RT>... sq)Creates an intersect expression for the given subqueries.<RT> SetExpression<RT>intersect(List<com.querydsl.core.types.SubQueryExpression<RT>> sq)Creates an intersect expression for the given subqueries.<RT> SetExpression<RT>intersectAll(com.querydsl.core.types.SubQueryExpression<RT>... sq)Creates an intersect expression for the given subqueries.<RT> SetExpression<RT>intersectAll(List<com.querydsl.core.types.SubQueryExpression<RT>> sq)Creates an intersect expression for the given subqueries<P> Qjoin(com.querydsl.core.types.CollectionExpression<?,P> target)<P> Qjoin(com.querydsl.core.types.CollectionExpression<?,P> target, com.querydsl.core.types.Path<P> alias)<P> Qjoin(com.querydsl.core.types.EntityPath<P> target)<P> Qjoin(com.querydsl.core.types.EntityPath<P> target, com.querydsl.core.types.Path<P> alias)<P> Qjoin(com.querydsl.core.types.MapExpression<?,P> target)<P> Qjoin(com.querydsl.core.types.MapExpression<?,P> target, com.querydsl.core.types.Path<P> alias)Qlateral()Mark the last join as a lateral join.<P> QleftJoin(com.querydsl.core.types.CollectionExpression<?,P> target)<P> QleftJoin(com.querydsl.core.types.CollectionExpression<?,P> target, com.querydsl.core.types.Path<P> alias)<P> QleftJoin(com.querydsl.core.types.EntityPath<P> target)<P> QleftJoin(com.querydsl.core.types.EntityPath<P> target, com.querydsl.core.types.Path<P> alias)<P> QleftJoin(com.querydsl.core.types.MapExpression<?,P> target)<P> QleftJoin(com.querydsl.core.types.MapExpression<?,P> target, com.querydsl.core.types.Path<P> alias)<X> QleftJoin(com.querydsl.core.types.SubQueryExpression<X> o, com.querydsl.core.types.Path<X> alias)Adds a left join to the given subquery target.Qlimit(long l)Qoffset(long l)Qon(com.querydsl.core.types.Predicate... condition)QorderBy(com.querydsl.core.types.OrderSpecifier<?>... orderSpecifiers)Qrestrict(com.querydsl.core.QueryModifiers queryModifiers)<P> QrightJoin(com.querydsl.core.types.CollectionExpression<?,P> target)<P> QrightJoin(com.querydsl.core.types.CollectionExpression<?,P> target, com.querydsl.core.types.Path<P> alias)<P> QrightJoin(com.querydsl.core.types.EntityPath<P> target)<P> QrightJoin(com.querydsl.core.types.EntityPath<P> target, com.querydsl.core.types.Path<P> alias)<P> QrightJoin(com.querydsl.core.types.MapExpression<?,P> target)<P> QrightJoin(com.querydsl.core.types.MapExpression<?,P> target, com.querydsl.core.types.Path<P> alias)<X> QrightJoin(com.querydsl.core.types.SubQueryExpression<X> o, com.querydsl.core.types.Path<X> alias)Adds a right join to the given target.<U> Qset(com.querydsl.core.types.ParamExpression<U> paramExpression, U t)<RT> SetExpression<RT>union(com.querydsl.core.types.SubQueryExpression<RT>... sq)Creates an union expression for the given subqueries.<RT> SetExpression<RT>union(List<com.querydsl.core.types.SubQueryExpression<RT>> sq)Creates an union expression for the given subqueries.<RT> SetExpression<RT>unionAll(com.querydsl.core.types.SubQueryExpression<RT>... sq)Creates an union expression for the given subqueries.<RT> SetExpression<RT>unionAll(List<com.querydsl.core.types.SubQueryExpression<RT>> sq)Creates an union expression for the given subqueries.Qwhere(com.querydsl.core.types.Predicate... predicates)Qwindow(NamedWindow namedWindow)Add a named window to this query.WithBuilder<Q>with(com.querydsl.core.types.EntityPath<?> alias, com.querydsl.core.types.Path<?>... columns)Register a common table expression (CTE).<X> Qwith(com.querydsl.core.types.Path<X> alias, com.querydsl.core.types.SubQueryExpression<?> o)Register a common table expression (CTE).WithBuilder<Q>withRecursive(com.querydsl.core.types.EntityPath<?> alias, com.querydsl.core.types.Path<?>... columns)Register a recursive common table expression (CTE).<X> QwithRecursive(com.querydsl.core.types.Path<X> alias, com.querydsl.core.types.SubQueryExpression<?> o)Register a recursive common table expression (CTE).Methods inherited from interface com.querydsl.core.support.ExtendedSubQuery
contains, contains, eq, eq, exists, goe, goe, gt, gt, in, in, isNotNull, isNull, loe, loe, lt, lt, ne, ne, notExists
-
Method Details
-
with
Register a common table expression (CTE). Analog toProjectableSQLQuery.with(Path, SubQueryExpression).- Type Parameters:
X- CTE type- Parameters:
alias- The alias for the CTEo- The subquery expression- Returns:
- this query
-
withRecursive
<X> Q withRecursive(com.querydsl.core.types.Path<X> alias, com.querydsl.core.types.SubQueryExpression<?> o)Register a recursive common table expression (CTE). Analog toProjectableSQLQuery.withRecursive(Path, SubQueryExpression).- Type Parameters:
X- CTE type- Parameters:
alias- The alias for the CTEo- The subquery expression- Returns:
- this query
-
with
WithBuilder<Q> with(com.querydsl.core.types.EntityPath<?> alias, com.querydsl.core.types.Path<?>... columns)Register a common table expression (CTE). Returns a builder through which the CTE can be provided asSubQueryExpression.- Parameters:
alias- The alias for the CTEcolumns- The columns for the CTE- Returns:
- this query
- API Note:
- This version does not allow for set operands to use different column bindings.
For that purpose, use
with(Path, SubQueryExpression)instead, and wrap each select expression inside aJPQLNextOps.BINDoperation.
-
withRecursive
WithBuilder<Q> withRecursive(com.querydsl.core.types.EntityPath<?> alias, com.querydsl.core.types.Path<?>... columns)Register a recursive common table expression (CTE). Returns a builder through which the CTE can be provided asSubQueryExpression.- Parameters:
alias- The alias for the CTEcolumns- The columns for the CTE- Returns:
- this query
- API Note:
- This version does not allow for set operands to use different column bindings.
For that purpose, use
with(Path, SubQueryExpression)instead, and wrap each select expression inside aJPQLNextOps.BINDoperation.
-
fromValues
Select from a set of values using theVALUESclause.- Type Parameters:
X- The element type- Parameters:
path- Type of valueselements- The elements- Returns:
- this query
-
fromIdentifiableValues
Select from a set of values using theVALUESclause.- Type Parameters:
X- The element type- Parameters:
path- Type of valueselements- The elements- Returns:
- this query
-
fromValues
<X> Q fromValues(com.querydsl.core.types.Path<X> path, com.querydsl.core.types.Path<X> alias, Collection<X> elements)Select from a set of values using theVALUESclause.- Type Parameters:
X- The element type- Parameters:
path- Type of valuesalias- The alias from which the values can be referencedelements- The elements- Returns:
- this query
-
fromIdentifiableValues
<X> Q fromIdentifiableValues(com.querydsl.core.types.Path<X> path, com.querydsl.core.types.Path<X> alias, Collection<X> elements)Select from a set of values using theVALUESclause.- Type Parameters:
X- The element type- Parameters:
path- Type of valuesalias- The alias from which the values can be referencedelements- The elements- Returns:
- this query
-
fullJoin
Create a full join with the given target. Analog toSQLCommonQuery.fullJoin(EntityPath). UsefetchJoin()to add the fetchJoin parameter to this join. Uselateral()to use a lateral join for this join.- Type Parameters:
P- The type of the join target- Parameters:
target- The join target- Returns:
- this query
- API Note:
- Full joins are only supported by some ORMs, like Hibernate.
-
fullJoin
<P> Q fullJoin(com.querydsl.core.types.CollectionExpression<?,P> target, com.querydsl.core.types.Path<P> alias)Create a full join with the given target. Analog toSQLCommonQuery.fullJoin(EntityPath). UsefetchJoin()to add the fetchJoin parameter to this join. Uselateral()to use a lateral join for this join.- Type Parameters:
P- The type of the join target- Parameters:
target- The join targetalias- alias- Returns:
- the current object
- API Note:
- Full joins are only supported by some ORMs, like Hibernate.
-
fullJoin
Create a full join with the given target. Analog toSQLCommonQuery.fullJoin(EntityPath). UsefetchJoin()to add the fetchJoin parameter to this join. Uselateral()to use a lateral join for this join.- Type Parameters:
P- The type of the join target- Parameters:
target- The join target- Returns:
- the current object
- API Note:
- Full joins are only supported by some ORMs, like Hibernate.
-
fullJoin
<P> Q fullJoin(com.querydsl.core.types.EntityPath<P> target, com.querydsl.core.types.Path<P> alias)Create a full join with the given target. Analog toSQLCommonQuery.fullJoin(EntityPath). UsefetchJoin()to add the fetchJoin parameter to this join. Uselateral()to use a lateral join for this join.- Type Parameters:
P- The type of the join target- Parameters:
target- The join targetalias- The alias under which the join can be referenced- Returns:
- the current object
- API Note:
- Full joins are only supported by some ORMs, like Hibernate.
-
fullJoin
Create a full join with the given target. Analog toSQLCommonQuery.fullJoin(EntityPath). UsefetchJoin()to add the fetchJoin parameter to this join. Uselateral()to use a lateral join for this join.- Type Parameters:
P- The type of the join target- Parameters:
target- The join target- Returns:
- the current object
- API Note:
- Full joins are only supported by some ORMs, like Hibernate.
-
fullJoin
<P> Q fullJoin(com.querydsl.core.types.MapExpression<?,P> target, com.querydsl.core.types.Path<P> alias)Create a full join with the given target. Analog toSQLCommonQuery.fullJoin(EntityPath). UsefetchJoin()to add the fetchJoin parameter to this join. Uselateral()to use a lateral join for this join.- Type Parameters:
P- The type of the join target- Parameters:
target- The join targetalias- The alias under which the join can be referenced- Returns:
- the current object
- API Note:
- Full joins are only supported by some ORMs, like Hibernate.
-
from
<X> Q from(com.querydsl.core.types.SubQueryExpression<X> subQueryExpression, com.querydsl.core.types.Path<X> alias)Add sources to this query- Type Parameters:
X- Expression type- Parameters:
subQueryExpression- Subquery expressionalias- The alias for the subquery from which it can be referenced in the outer query- Returns:
- the current object
-
leftJoin
<X> Q leftJoin(com.querydsl.core.types.SubQueryExpression<X> o, com.querydsl.core.types.Path<X> alias)Adds a left join to the given subquery target. Analog toSQLCommonQuery.leftJoin(SubQueryExpression, Path).- Type Parameters:
X- Expression type- Parameters:
o- subqueryalias- alias- Returns:
- the current object
-
rightJoin
<X> Q rightJoin(com.querydsl.core.types.SubQueryExpression<X> o, com.querydsl.core.types.Path<X> alias)Adds a right join to the given target. Analog toSQLCommonQuery.rightJoin(SubQueryExpression, Path).- Type Parameters:
X- Expression type- Parameters:
o- subqueryalias- alias- Returns:
- the current object
-
fullJoin
<X> Q fullJoin(com.querydsl.core.types.SubQueryExpression<X> o, com.querydsl.core.types.Path<X> alias)Adds a full join to the given target. Analog toSQLCommonQuery.fullJoin(SubQueryExpression, Path).- Type Parameters:
X- Expression type- Parameters:
o- subqueryalias- alias- Returns:
- the current object
-
innerJoin
<X> Q innerJoin(com.querydsl.core.types.SubQueryExpression<X> o, com.querydsl.core.types.Path<X> alias)Adds a inner join to the given target. Analog toSQLCommonQuery.innerJoin(SubQueryExpression, Path).- Type Parameters:
X- Expression type- Parameters:
o- subqueryalias- alias- Returns:
- the current object
-
union
Creates an union expression for the given subqueries. Analog toProjectableSQLQuery.union(List).- Type Parameters:
RT- set operation type- Parameters:
sq- subqueries- Returns:
- the set operation result
-
unionAll
Creates an union expression for the given subqueries. Analog toProjectableSQLQuery.unionAll(List).- Type Parameters:
RT- set operation type- Parameters:
sq- subqueries- Returns:
- the set operation result
-
intersect
Creates an intersect expression for the given subqueries.- Type Parameters:
RT- set operation type- Parameters:
sq- subqueries- Returns:
- the set operation result
- See Also:
union(List)
-
intersectAll
Creates an intersect expression for the given subqueries- Type Parameters:
RT- set operation type- Parameters:
sq- subqueries- Returns:
- the set operation result
- See Also:
union(List)
-
except
Creates an except expression for the given subqueries- Type Parameters:
RT- set operation type- Parameters:
sq- subqueries- Returns:
- the set operation result
- See Also:
union(List)
-
exceptAll
Creates an except expression for the given subqueries- Type Parameters:
RT- set operation type- Parameters:
sq- subqueries- Returns:
- the set operation result
- See Also:
union(List)
-
union
Creates an union expression for the given subqueries. Analog toProjectableSQLQuery.union(List).- Type Parameters:
RT- set operation type- Parameters:
sq- subqueries- Returns:
- the set operation result
-
unionAll
Creates an union expression for the given subqueries. Analog toProjectableSQLQuery.unionAll(List).- Type Parameters:
RT- set operation type- Parameters:
sq- subqueries- Returns:
- the set operation result
-
intersect
Creates an intersect expression for the given subqueries.- Type Parameters:
RT- set operation type- Parameters:
sq- subqueries- Returns:
- the set operation result
-
intersectAll
Creates an intersect expression for the given subqueries.- Type Parameters:
RT- set operation type- Parameters:
sq- subqueries- Returns:
- the set operation result
-
except
Creates an except expression for the given subqueries.- Type Parameters:
RT- set operation type- Parameters:
sq- subqueries- Returns:
- the set operation result
-
exceptAll
Creates an except expression for the given subqueries.- Type Parameters:
RT- set operation type- Parameters:
sq- subqueries- Returns:
- the set operation result
-
lateral
Q lateral()Mark the last join as a lateral join.- Returns:
- this query
-
from
- Specified by:
fromin interfacecom.querydsl.jpa.JPQLQuery<T>
-
from
<P> Q from(com.querydsl.core.types.CollectionExpression<?,P> target, com.querydsl.core.types.Path<P> alias)- Specified by:
fromin interfacecom.querydsl.jpa.JPQLQuery<T>
-
innerJoin
- Specified by:
innerJoinin interfacecom.querydsl.jpa.JPQLQuery<T>
-
innerJoin
<P> Q innerJoin(com.querydsl.core.types.EntityPath<P> target, com.querydsl.core.types.Path<P> alias)- Specified by:
innerJoinin interfacecom.querydsl.jpa.JPQLQuery<T>
-
innerJoin
- Specified by:
innerJoinin interfacecom.querydsl.jpa.JPQLQuery<T>
-
innerJoin
<P> Q innerJoin(com.querydsl.core.types.CollectionExpression<?,P> target, com.querydsl.core.types.Path<P> alias)- Specified by:
innerJoinin interfacecom.querydsl.jpa.JPQLQuery<T>
-
innerJoin
- Specified by:
innerJoinin interfacecom.querydsl.jpa.JPQLQuery<T>
-
innerJoin
<P> Q innerJoin(com.querydsl.core.types.MapExpression<?,P> target, com.querydsl.core.types.Path<P> alias)- Specified by:
innerJoinin interfacecom.querydsl.jpa.JPQLQuery<T>
-
join
- Specified by:
joinin interfacecom.querydsl.jpa.JPQLQuery<T>
-
join
- Specified by:
joinin interfacecom.querydsl.jpa.JPQLQuery<T>
-
join
- Specified by:
joinin interfacecom.querydsl.jpa.JPQLQuery<T>
-
join
<P> Q join(com.querydsl.core.types.CollectionExpression<?,P> target, com.querydsl.core.types.Path<P> alias)- Specified by:
joinin interfacecom.querydsl.jpa.JPQLQuery<T>
-
join
- Specified by:
joinin interfacecom.querydsl.jpa.JPQLQuery<T>
-
join
<P> Q join(com.querydsl.core.types.MapExpression<?,P> target, com.querydsl.core.types.Path<P> alias)- Specified by:
joinin interfacecom.querydsl.jpa.JPQLQuery<T>
-
leftJoin
- Specified by:
leftJoinin interfacecom.querydsl.jpa.JPQLQuery<T>
-
leftJoin
<P> Q leftJoin(com.querydsl.core.types.EntityPath<P> target, com.querydsl.core.types.Path<P> alias)- Specified by:
leftJoinin interfacecom.querydsl.jpa.JPQLQuery<T>
-
leftJoin
- Specified by:
leftJoinin interfacecom.querydsl.jpa.JPQLQuery<T>
-
leftJoin
<P> Q leftJoin(com.querydsl.core.types.CollectionExpression<?,P> target, com.querydsl.core.types.Path<P> alias)- Specified by:
leftJoinin interfacecom.querydsl.jpa.JPQLQuery<T>
-
leftJoin
- Specified by:
leftJoinin interfacecom.querydsl.jpa.JPQLQuery<T>
-
leftJoin
<P> Q leftJoin(com.querydsl.core.types.MapExpression<?,P> target, com.querydsl.core.types.Path<P> alias)- Specified by:
leftJoinin interfacecom.querydsl.jpa.JPQLQuery<T>
-
rightJoin
- Specified by:
rightJoinin interfacecom.querydsl.jpa.JPQLQuery<T>
-
rightJoin
<P> Q rightJoin(com.querydsl.core.types.EntityPath<P> target, com.querydsl.core.types.Path<P> alias)- Specified by:
rightJoinin interfacecom.querydsl.jpa.JPQLQuery<T>
-
rightJoin
- Specified by:
rightJoinin interfacecom.querydsl.jpa.JPQLQuery<T>
-
rightJoin
<P> Q rightJoin(com.querydsl.core.types.CollectionExpression<?,P> target, com.querydsl.core.types.Path<P> alias)- Specified by:
rightJoinin interfacecom.querydsl.jpa.JPQLQuery<T>
-
rightJoin
- Specified by:
rightJoinin interfacecom.querydsl.jpa.JPQLQuery<T>
-
rightJoin
<P> Q rightJoin(com.querydsl.core.types.MapExpression<?,P> target, com.querydsl.core.types.Path<P> alias)- Specified by:
rightJoinin interfacecom.querydsl.jpa.JPQLQuery<T>
-
on
- Specified by:
onin interfacecom.querydsl.jpa.JPQLQuery<T>
-
fetchJoin
Q fetchJoin()- Specified by:
fetchJoinin interfacecom.querydsl.jpa.JPQLQuery<T>
-
fetchAll
Q fetchAll()- Specified by:
fetchAllin interfacecom.querydsl.jpa.JPQLQuery<T>
-
groupBy
- Specified by:
groupByin interfacecom.querydsl.core.Query<T>
-
having
- Specified by:
havingin interfacecom.querydsl.core.Query<T>
-
limit
- Specified by:
limitin interfacecom.querydsl.core.SimpleQuery<T>
-
offset
- Specified by:
offsetin interfacecom.querydsl.core.SimpleQuery<T>
-
restrict
- Specified by:
restrictin interfacecom.querydsl.core.SimpleQuery<T>
-
orderBy
- Specified by:
orderByin interfacecom.querydsl.core.SimpleQuery<T>
-
set
- Specified by:
setin interfacecom.querydsl.core.SimpleQuery<T>
-
distinct
Q distinct()- Specified by:
distinctin interfacecom.querydsl.core.SimpleQuery<T>
-
where
- Specified by:
wherein interfacecom.querydsl.core.FilteredClause<T>
-
window
Add a named window to this query.- Parameters:
namedWindow- The window definition to add- Returns:
- this query
-