Package com.querydsl.jpa
Interface JPQLQuery<T>
- Type Parameters:
T- result type
- All Superinterfaces:
Expression<T>,ExtendedSubQuery<T>,Fetchable<T>,FetchableQuery<T,,JPQLQuery<T>> FilteredClause<JPQLQuery<T>>,Query<JPQLQuery<T>>,Serializable,SimpleQuery<JPQLQuery<T>>,SubQueryExpression<T>
- All Known Implementing Classes:
AbstractHibernateQuery,AbstractJPAQuery,HibernateQuery,JPAQuery,JPAQueryBase
public interface JPQLQuery<T>
extends FetchableQuery<T,JPQLQuery<T>>, Query<JPQLQuery<T>>, ExtendedSubQuery<T>
Query interface for JPQL queries
- Author:
- tiwe
-
Method Summary
Modifier and TypeMethodDescriptionfetchAll()Add the "fetchJoin all properties" flag to the last defined join.Add the "fetchJoin" flag to the last defined join Mind that collection joins might result in duplicate rows and that "inner join fetchJoin" will restrict your result set.from(CollectionExpression<?, P> target, Path<P> alias) Add a query sourcefrom(EntityPath<?>... sources) Add sources to this queryinnerJoin(CollectionExpression<?, P> target) Create a inner join with the given target.innerJoin(CollectionExpression<?, P> target, Path<P> alias) Create a inner join with the given target and alias.innerJoin(EntityPath<P> target) Create a inner join with the given target.innerJoin(EntityPath<P> target, Path<P> alias) Create a inner join with the given target and alias.innerJoin(MapExpression<?, P> target) Create a inner join with the given target.innerJoin(MapExpression<?, P> target, Path<P> alias) Create a inner join with the given target and alias.join(CollectionExpression<?, P> target) Create a join with the given target.join(CollectionExpression<?, P> target, Path<P> alias) Create a join with the given target Use fetchJoin() to add the fetchJoin parameter to this joinjoin(EntityPath<P> target) Create a join with the given target.join(EntityPath<P> target, Path<P> alias) Create a join with the given target and alias.join(MapExpression<?, P> target) Create a join with the given target.join(MapExpression<?, P> target, Path<P> alias) Create a join with the given target and alias.leftJoin(CollectionExpression<?, P> target) Create a left join with the given target.leftJoin(CollectionExpression<?, P> target, Path<P> alias) Create a left join with the given target and alias.leftJoin(EntityPath<P> target) Create a left join with the given target.leftJoin(EntityPath<P> target, Path<P> alias) Create a left join with the given target and alias.leftJoin(MapExpression<?, P> target) Create a left join with the given target.leftJoin(MapExpression<?, P> target, Path<P> alias) Create a left join with the given target and alias.Add join conditions to the last added joinrightJoin(CollectionExpression<?, P> target) Create a right join with the given target.rightJoin(CollectionExpression<?, P> target, Path<P> alias) Create a right join with the given target and alias.rightJoin(EntityPath<P> target) Create a right join with the given target.rightJoin(EntityPath<P> target, Path<P> alias) Create a right join with the given target and alias.rightJoin(MapExpression<?, P> target) Create a right join with the given target.rightJoin(MapExpression<?, P> target, Path<P> alias) Create a right join with the given target and alias.select(Expression<?>... exprs) <U> JPQLQuery<U>select(Expression<U> expr) Methods inherited from interface com.querydsl.core.types.Expression
accept, getTypeMethods 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, notExistsMethods inherited from interface com.querydsl.core.Fetchable
fetch, fetchCount, fetchFirst, fetchOne, fetchResults, iterate, streamMethods inherited from interface com.querydsl.core.FetchableQuery
transformMethods inherited from interface com.querydsl.core.FilteredClause
whereMethods inherited from interface com.querydsl.core.SimpleQuery
distinct, limit, offset, orderBy, restrict, setMethods inherited from interface com.querydsl.core.types.SubQueryExpression
getMetadata
-
Method Details
-
from
Add sources to this query- Parameters:
sources- sources- Returns:
- the current object
-
from
Add a query source- Type Parameters:
P-- Parameters:
target- collectionalias- alias- Returns:
- the current object
-
innerJoin
Create a inner join with the given target. Use fetchJoin() to add the fetchJoin parameter to this join.- Type Parameters:
P-- Parameters:
target- target- Returns:
- the current object
-
innerJoin
Create a inner join with the given target and alias.- Type Parameters:
P-- Parameters:
target- targetalias- alias- Returns:
- the current object
-
innerJoin
Create a inner join with the given target. Use fetchJoin() to add the fetchJoin parameter to this join.- Type Parameters:
P-- Parameters:
target- target- Returns:
- the current object
-
innerJoin
Create a inner join with the given target and alias.- Type Parameters:
P-- Parameters:
target- targetalias- alias- Returns:
- the current object
-
innerJoin
Create a inner join with the given target. Use fetchJoin() to add the fetchJoin parameter to this join.- Type Parameters:
P-- Parameters:
target- target- Returns:
- the current object
-
innerJoin
Create a inner join with the given target and alias.- Type Parameters:
P-- Parameters:
target- targetalias- alias- Returns:
- the current object
-
join
Create a join with the given target. Use fetchJoin() to add the fetchJoin parameter to this join.- Type Parameters:
P-- Parameters:
target- target- Returns:
- the current object
-
join
Create a join with the given target and alias.- Type Parameters:
P-- Parameters:
target- targetalias- alias- Returns:
- the current object
-
join
Create a join with the given target. Use fetchJoin() to add the fetchJoin parameter to this join.- Type Parameters:
P-- Parameters:
target- target- Returns:
- the current object
-
join
Create a join with the given target Use fetchJoin() to add the fetchJoin parameter to this join- Type Parameters:
P-- Parameters:
target- targetalias- alias- Returns:
- the current object
-
join
Create a join with the given target. Use fetchJoin() to add the fetchJoin parameter to this join.- Type Parameters:
P-- Parameters:
target- target- Returns:
- the current object
-
join
Create a join with the given target and alias.- Type Parameters:
P-- Parameters:
target- targetalias- alias- Returns:
- the current object
-
leftJoin
Create a left join with the given target. Use fetchJoin() to add the fetchJoin parameter to this join.- Type Parameters:
P-- Parameters:
target- target- Returns:
- the current object
-
leftJoin
Create a left join with the given target and alias.- Type Parameters:
P-- Parameters:
target- targetalias- alias- Returns:
- the current object
-
leftJoin
Create a left join with the given target. Use fetchJoin() to add the fetchJoin parameter to this join.- Type Parameters:
P-- Parameters:
target- target- Returns:
- the current object
-
leftJoin
Create a left join with the given target and alias.- Type Parameters:
P-- Parameters:
target- targetalias- alias- Returns:
- the current object
-
leftJoin
Create a left join with the given target. Use fetchJoin() to add the fetchJoin parameter to this join.- Type Parameters:
P-- Parameters:
target- target- Returns:
- the current object
-
leftJoin
Create a left join with the given target and alias.- Type Parameters:
P-- Parameters:
target- targetalias- alias- Returns:
- the current object
-
rightJoin
Create a right join with the given target. Use fetchJoin() to add the fetchJoin parameter to this join.- Type Parameters:
P-- Parameters:
target- target- Returns:
- the current object
-
rightJoin
Create a right join with the given target and alias.- Type Parameters:
P-- Parameters:
target- targetalias- alias- Returns:
- the current object
-
rightJoin
Create a right join with the given target. Use fetchJoin() to add the fetchJoin parameter to this join.- Type Parameters:
P-- Parameters:
target- target- Returns:
- the current object
-
rightJoin
Create a right join with the given target and alias.- Type Parameters:
P-- Parameters:
target- targetalias- alias- Returns:
- the current object
-
rightJoin
Create a right join with the given target. Use fetchJoin() to add the fetchJoin parameter to this join.- Type Parameters:
P-- Parameters:
target- target- Returns:
- the current object
-
rightJoin
Create a right join with the given target and alias.- Type Parameters:
P-- Parameters:
target- targetalias- alias- Returns:
- the current object
-
on
Add join conditions to the last added join- Parameters:
condition- join conditions- Returns:
- the current object
-
fetchJoin
Add the "fetchJoin" flag to the last defined join Mind that collection joins might result in duplicate rows and that "inner join fetchJoin" will restrict your result set.- Returns:
- the current object
-
fetchAll
Add the "fetchJoin all properties" flag to the last defined join.- Returns:
- the current object
-
select
- Specified by:
selectin interfaceFetchableQuery<T,JPQLQuery<T>>
-
select
- Specified by:
selectin interfaceFetchableQuery<T,JPQLQuery<T>>
-