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>>,java.io.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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description JPQLQuery<T>fetchJoin()Add the "fetchJoin" flag to the last defined join<P> JPQLQuery<T>from(CollectionExpression<?,P> target, Path<P> alias)Add a query sourceJPQLQuery<T>from(EntityPath<?>... sources)Add sources to this query<P> JPQLQuery<T>innerJoin(CollectionExpression<?,P> target)Create a inner join with the given target.<P> JPQLQuery<T>innerJoin(CollectionExpression<?,P> target, Path<P> alias)Create a inner join with the given target and alias.<P> JPQLQuery<T>innerJoin(EntityPath<P> target)Create a inner join with the given target.<P> JPQLQuery<T>innerJoin(EntityPath<P> target, Path<P> alias)Create a inner join with the given target and alias.<P> JPQLQuery<T>innerJoin(MapExpression<?,P> target)Create a inner join with the given target.<P> JPQLQuery<T>innerJoin(MapExpression<?,P> target, Path<P> alias)Create a inner join with the given target and alias.<P> JPQLQuery<T>join(CollectionExpression<?,P> target)Create a join with the given target.<P> JPQLQuery<T>join(CollectionExpression<?,P> target, Path<P> alias)Create a join with the given target Use fetchJoin() to add the fetchJoin parameter to this join<P> JPQLQuery<T>join(EntityPath<P> target)Create a join with the given target.<P> JPQLQuery<T>join(EntityPath<P> target, Path<P> alias)Create a join with the given target and alias.<P> JPQLQuery<T>join(MapExpression<?,P> target)Create a join with the given target.<P> JPQLQuery<T>join(MapExpression<?,P> target, Path<P> alias)Create a join with the given target and alias.<P> JPQLQuery<T>leftJoin(CollectionExpression<?,P> target)Create a left join with the given target.<P> JPQLQuery<T>leftJoin(CollectionExpression<?,P> target, Path<P> alias)Create a left join with the given target and alias.<P> JPQLQuery<T>leftJoin(EntityPath<P> target)Create a left join with the given target.<P> JPQLQuery<T>leftJoin(EntityPath<P> target, Path<P> alias)Create a left join with the given target and alias.<P> JPQLQuery<T>leftJoin(MapExpression<?,P> target)Create a left join with the given target.<P> JPQLQuery<T>leftJoin(MapExpression<?,P> target, Path<P> alias)Create a left join with the given target and alias.JPQLQuery<T>on(Predicate... condition)Add join conditions to the last added join<P> JPQLQuery<T>rightJoin(CollectionExpression<?,P> target)Create a right join with the given target.<P> JPQLQuery<T>rightJoin(CollectionExpression<?,P> target, Path<P> alias)Create a right join with the given target and alias.<P> JPQLQuery<T>rightJoin(EntityPath<P> target)Create a right join with the given target.<P> JPQLQuery<T>rightJoin(EntityPath<P> target, Path<P> alias)Create a right join with the given target and alias.<P> JPQLQuery<T>rightJoin(MapExpression<?,P> target)Create a right join with the given target.<P> JPQLQuery<T>rightJoin(MapExpression<?,P> target, Path<P> alias)Create a right join with the given target and alias.JPQLQuery<Tuple>select(Expression<?>... exprs)<U> JPQLQuery<U>select(Expression<U> expr)-
Methods inherited from interface com.querydsl.core.types.Expression
accept, getType
-
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
-
Methods inherited from interface com.querydsl.core.Fetchable
fetch, fetchCount, fetchFirst, fetchOne, fetchResults, iterate, stream
-
Methods inherited from interface com.querydsl.core.FetchableQuery
transform
-
Methods inherited from interface com.querydsl.core.FilteredClause
where
-
Methods inherited from interface com.querydsl.core.SimpleQuery
distinct, limit, offset, orderBy, restrict, set
-
Methods inherited from interface com.querydsl.core.types.SubQueryExpression
getMetadata
-
-
-
-
Method Detail
-
from
JPQLQuery<T> from(EntityPath<?>... sources)
Add sources to this query- Parameters:
sources- sources- Returns:
- the current object
-
from
<P> JPQLQuery<T> from(CollectionExpression<?,P> target, Path<P> alias)
Add a query source- Type Parameters:
P-- Parameters:
target- collectionalias- alias- Returns:
- the current object
-
innerJoin
<P> JPQLQuery<T> innerJoin(EntityPath<P> target)
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
<P> JPQLQuery<T> innerJoin(EntityPath<P> target, Path<P> alias)
Create a inner join with the given target and alias.- Type Parameters:
P-- Parameters:
target- targetalias- alias- Returns:
- the current object
-
innerJoin
<P> JPQLQuery<T> innerJoin(CollectionExpression<?,P> target)
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
<P> JPQLQuery<T> innerJoin(CollectionExpression<?,P> target, Path<P> alias)
Create a inner join with the given target and alias.- Type Parameters:
P-- Parameters:
target- targetalias- alias- Returns:
- the current object
-
innerJoin
<P> JPQLQuery<T> innerJoin(MapExpression<?,P> target)
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
<P> JPQLQuery<T> innerJoin(MapExpression<?,P> target, Path<P> alias)
Create a inner join with the given target and alias.- Type Parameters:
P-- Parameters:
target- targetalias- alias- Returns:
- the current object
-
join
<P> JPQLQuery<T> join(EntityPath<P> target)
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
<P> JPQLQuery<T> join(EntityPath<P> target, Path<P> alias)
Create a join with the given target and alias.- Type Parameters:
P-- Parameters:
target- targetalias- alias- Returns:
- the current object
-
join
<P> JPQLQuery<T> join(CollectionExpression<?,P> target)
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
<P> JPQLQuery<T> join(CollectionExpression<?,P> target, Path<P> alias)
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
<P> JPQLQuery<T> join(MapExpression<?,P> target)
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
<P> JPQLQuery<T> join(MapExpression<?,P> target, Path<P> alias)
Create a join with the given target and alias.- Type Parameters:
P-- Parameters:
target- targetalias- alias- Returns:
- the current object
-
leftJoin
<P> JPQLQuery<T> leftJoin(EntityPath<P> target)
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
<P> JPQLQuery<T> leftJoin(EntityPath<P> target, Path<P> alias)
Create a left join with the given target and alias.- Type Parameters:
P-- Parameters:
target- targetalias- alias- Returns:
- the current object
-
leftJoin
<P> JPQLQuery<T> leftJoin(CollectionExpression<?,P> target)
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
<P> JPQLQuery<T> leftJoin(CollectionExpression<?,P> target, Path<P> alias)
Create a left join with the given target and alias.- Type Parameters:
P-- Parameters:
target- targetalias- alias- Returns:
- the current object
-
leftJoin
<P> JPQLQuery<T> leftJoin(MapExpression<?,P> target)
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
<P> JPQLQuery<T> leftJoin(MapExpression<?,P> target, Path<P> alias)
Create a left join with the given target and alias.- Type Parameters:
P-- Parameters:
target- targetalias- alias- Returns:
- the current object
-
rightJoin
<P> JPQLQuery<T> rightJoin(EntityPath<P> target)
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
<P> JPQLQuery<T> rightJoin(EntityPath<P> target, Path<P> alias)
Create a right join with the given target and alias.- Type Parameters:
P-- Parameters:
target- targetalias- alias- Returns:
- the current object
-
rightJoin
<P> JPQLQuery<T> rightJoin(CollectionExpression<?,P> target)
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
<P> JPQLQuery<T> rightJoin(CollectionExpression<?,P> target, Path<P> alias)
Create a right join with the given target and alias.- Type Parameters:
P-- Parameters:
target- targetalias- alias- Returns:
- the current object
-
rightJoin
<P> JPQLQuery<T> rightJoin(MapExpression<?,P> target)
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
<P> JPQLQuery<T> rightJoin(MapExpression<?,P> target, Path<P> alias)
Create a right join with the given target and alias.- Type Parameters:
P-- Parameters:
target- targetalias- alias- Returns:
- the current object
-
on
JPQLQuery<T> on(Predicate... condition)
Add join conditions to the last added join- Parameters:
condition- join conditions- Returns:
- the current object
-
fetchJoin
JPQLQuery<T> fetchJoin()
Add the "fetchJoin" flag to the last defined joinMind that collection joins might result in duplicate rows and that "inner join fetchJoin" will restrict your result set.
- Returns:
- the current object
-
select
<U> JPQLQuery<U> select(Expression<U> expr)
- Specified by:
selectin interfaceFetchableQuery<T,JPQLQuery<T>>
-
select
JPQLQuery<Tuple> select(Expression<?>... exprs)
- Specified by:
selectin interfaceFetchableQuery<T,JPQLQuery<T>>
-
-