Package com.querydsl.jpa
Class JPAQueryBase<T,Q extends JPAQueryBase<T,Q>>
- java.lang.Object
-
- com.querydsl.core.support.QueryBase<Q>
-
- com.querydsl.core.support.FetchableQueryBase<T,Q>
-
- com.querydsl.core.support.FetchableSubQueryBase<T,Q>
-
- com.querydsl.jpa.JPAQueryBase<T,Q>
-
- Type Parameters:
T- result typeQ- concrete subtype
- All Implemented Interfaces:
Fetchable<T>,FetchableQuery<T,JPQLQuery<T>>,FilteredClause<JPQLQuery<T>>,Query<JPQLQuery<T>>,SimpleQuery<JPQLQuery<T>>,ExtendedSubQuery<T>,Expression<T>,SubQueryExpression<T>,JPQLQuery<T>,java.io.Serializable
- Direct Known Subclasses:
AbstractHibernateQuery,AbstractJPAQuery
public abstract class JPAQueryBase<T,Q extends JPAQueryBase<T,Q>> extends FetchableSubQueryBase<T,Q> implements JPQLQuery<T>
JPAQueryBaseis a base Query class for JPA queries- Author:
- tiwe
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected JPAQueryMixin<Q>queryMixin-
Fields inherited from class com.querydsl.core.support.QueryBase
MDC_PARAMETERS, MDC_QUERY
-
-
Constructor Summary
Constructors Constructor Description JPAQueryBase(QueryMetadata md, JPQLTemplates templates)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Qclone()protected abstract JPQLSerializercreateSerializer()QfetchJoin()Add the "fetchJoin" flag to the last defined join<P> Qfrom(CollectionExpression<?,P> target, Path<P> alias)Add a query sourceQfrom(EntityPath<?> arg)Qfrom(EntityPath<?>... args)Add sources to this queryprotected JPQLTemplatesgetTemplates()<P> QinnerJoin(CollectionExpression<?,P> target)Create a inner join with the given target.<P> QinnerJoin(CollectionExpression<?,P> target, Path<P> alias)Create a inner join with the given target and alias.<P> QinnerJoin(EntityPath<P> target)Create a inner join with the given target.<P> QinnerJoin(EntityPath<P> target, Path<P> alias)Create a inner join with the given target and alias.<P> QinnerJoin(MapExpression<?,P> target)Create a inner join with the given target.<P> QinnerJoin(MapExpression<?,P> target, Path<P> alias)Create a inner join with the given target and alias.<P> Qjoin(CollectionExpression<?,P> target)Create a join with the given target.<P> Qjoin(CollectionExpression<?,P> target, Path<P> alias)Create a join with the given target Use fetchJoin() to add the fetchJoin parameter to this join<P> Qjoin(EntityPath<P> target)Create a join with the given target.<P> Qjoin(EntityPath<P> target, Path<P> alias)Create a join with the given target and alias.<P> Qjoin(MapExpression<?,P> target)Create a join with the given target.<P> Qjoin(MapExpression<?,P> target, Path<P> alias)Create a join with the given target and alias.<P> QleftJoin(CollectionExpression<?,P> target)Create a left join with the given target.<P> QleftJoin(CollectionExpression<?,P> target, Path<P> alias)Create a left join with the given target and alias.<P> QleftJoin(EntityPath<P> target)Create a left join with the given target.<P> QleftJoin(EntityPath<P> target, Path<P> alias)Create a left join with the given target and alias.<P> QleftJoin(MapExpression<?,P> target)Create a left join with the given target.<P> QleftJoin(MapExpression<?,P> target, Path<P> alias)Create a left join with the given target and alias.Qon(Predicate condition)Qon(Predicate... conditions)Add join conditions to the last added joinprotected abstract voidreset()<P> QrightJoin(CollectionExpression<?,P> target)Create a right join with the given target.<P> QrightJoin(CollectionExpression<?,P> target, Path<P> alias)Create a right join with the given target and alias.<P> QrightJoin(EntityPath<P> target)Create a right join with the given target.<P> QrightJoin(EntityPath<P> target, Path<P> alias)Create a right join with the given target and alias.<P> QrightJoin(MapExpression<?,P> target)Create a right join with the given target.<P> QrightJoin(MapExpression<?,P> target, Path<P> alias)Create a right join with the given target and alias.protected JPQLSerializerserialize(boolean forCountRow)protected JPQLSerializerserialize(boolean forCountRow, boolean validate)java.lang.StringtoString()-
Methods inherited from class com.querydsl.core.support.FetchableSubQueryBase
accept, contains, contains, eq, eq, exists, getMetadata, getType, goe, goe, gt, gt, hashCode, in, in, isNotNull, isNull, loe, loe, lt, lt, ne, ne, notExists
-
Methods inherited from class com.querydsl.core.support.FetchableQueryBase
equals, fetch, fetchFirst, transform, uniqueResult
-
Methods inherited from class com.querydsl.core.support.QueryBase
distinct, groupBy, groupBy, having, having, limit, offset, orderBy, orderBy, restrict, set, where, where
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
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
-
-
-
-
Field Detail
-
queryMixin
protected final JPAQueryMixin<Q extends JPAQueryBase<T,Q>> queryMixin
-
-
Constructor Detail
-
JPAQueryBase
public JPAQueryBase(QueryMetadata md, JPQLTemplates templates)
-
-
Method Detail
-
getTemplates
protected JPQLTemplates getTemplates()
-
createSerializer
protected abstract JPQLSerializer createSerializer()
-
serialize
protected JPQLSerializer serialize(boolean forCountRow)
-
serialize
protected JPQLSerializer serialize(boolean forCountRow, boolean validate)
-
reset
protected abstract void reset()
-
fetchJoin
public Q fetchJoin()
Description copied from interface:JPQLQueryAdd 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.
-
from
public Q from(EntityPath<?> arg)
-
from
public Q from(EntityPath<?>... args)
Description copied from interface:JPQLQueryAdd sources to this query
-
from
public <P> Q from(CollectionExpression<?,P> target, Path<P> alias)
Description copied from interface:JPQLQueryAdd a query source
-
innerJoin
public <P> Q innerJoin(CollectionExpression<?,P> target)
Description copied from interface:JPQLQueryCreate a inner join with the given target. Use fetchJoin() to add the fetchJoin parameter to this join.
-
innerJoin
public <P> Q innerJoin(CollectionExpression<?,P> target, Path<P> alias)
Description copied from interface:JPQLQueryCreate a inner join with the given target and alias.
-
innerJoin
public <P> Q innerJoin(EntityPath<P> target)
Description copied from interface:JPQLQueryCreate a inner join with the given target. Use fetchJoin() to add the fetchJoin parameter to this join.
-
innerJoin
public <P> Q innerJoin(EntityPath<P> target, Path<P> alias)
Description copied from interface:JPQLQueryCreate a inner join with the given target and alias.
-
innerJoin
public <P> Q innerJoin(MapExpression<?,P> target)
Description copied from interface:JPQLQueryCreate a inner join with the given target. Use fetchJoin() to add the fetchJoin parameter to this join.
-
innerJoin
public <P> Q innerJoin(MapExpression<?,P> target, Path<P> alias)
Description copied from interface:JPQLQueryCreate a inner join with the given target and alias.
-
join
public <P> Q join(CollectionExpression<?,P> target)
Description copied from interface:JPQLQueryCreate a join with the given target. Use fetchJoin() to add the fetchJoin parameter to this join.
-
join
public <P> Q join(CollectionExpression<?,P> target, Path<P> alias)
Description copied from interface:JPQLQueryCreate a join with the given target Use fetchJoin() to add the fetchJoin parameter to this join
-
join
public <P> Q join(EntityPath<P> target)
Description copied from interface:JPQLQueryCreate a join with the given target. Use fetchJoin() to add the fetchJoin parameter to this join.
-
join
public <P> Q join(EntityPath<P> target, Path<P> alias)
Description copied from interface:JPQLQueryCreate a join with the given target and alias.
-
join
public <P> Q join(MapExpression<?,P> target)
Description copied from interface:JPQLQueryCreate a join with the given target. Use fetchJoin() to add the fetchJoin parameter to this join.
-
join
public <P> Q join(MapExpression<?,P> target, Path<P> alias)
Description copied from interface:JPQLQueryCreate a join with the given target and alias.
-
leftJoin
public <P> Q leftJoin(CollectionExpression<?,P> target)
Description copied from interface:JPQLQueryCreate a left join with the given target. Use fetchJoin() to add the fetchJoin parameter to this join.
-
leftJoin
public <P> Q leftJoin(CollectionExpression<?,P> target, Path<P> alias)
Description copied from interface:JPQLQueryCreate a left join with the given target and alias.
-
leftJoin
public <P> Q leftJoin(EntityPath<P> target)
Description copied from interface:JPQLQueryCreate a left join with the given target. Use fetchJoin() to add the fetchJoin parameter to this join.
-
leftJoin
public <P> Q leftJoin(EntityPath<P> target, Path<P> alias)
Description copied from interface:JPQLQueryCreate a left join with the given target and alias.
-
leftJoin
public <P> Q leftJoin(MapExpression<?,P> target)
Description copied from interface:JPQLQueryCreate a left join with the given target. Use fetchJoin() to add the fetchJoin parameter to this join.
-
leftJoin
public <P> Q leftJoin(MapExpression<?,P> target, Path<P> alias)
Description copied from interface:JPQLQueryCreate a left join with the given target and alias.
-
rightJoin
public <P> Q rightJoin(CollectionExpression<?,P> target)
Description copied from interface:JPQLQueryCreate a right join with the given target. Use fetchJoin() to add the fetchJoin parameter to this join.
-
rightJoin
public <P> Q rightJoin(CollectionExpression<?,P> target, Path<P> alias)
Description copied from interface:JPQLQueryCreate a right join with the given target and alias.
-
rightJoin
public <P> Q rightJoin(EntityPath<P> target)
Description copied from interface:JPQLQueryCreate a right join with the given target. Use fetchJoin() to add the fetchJoin parameter to this join.
-
rightJoin
public <P> Q rightJoin(EntityPath<P> target, Path<P> alias)
Description copied from interface:JPQLQueryCreate a right join with the given target and alias.
-
rightJoin
public <P> Q rightJoin(MapExpression<?,P> target)
Description copied from interface:JPQLQueryCreate a right join with the given target. Use fetchJoin() to add the fetchJoin parameter to this join.
-
rightJoin
public <P> Q rightJoin(MapExpression<?,P> target, Path<P> alias)
Description copied from interface:JPQLQueryCreate a right join with the given target and alias.
-
on
public Q on(Predicate... conditions)
Description copied from interface:JPQLQueryAdd join conditions to the last added join
-
toString
public java.lang.String toString()
-
clone
public abstract Q clone()
- Overrides:
clonein classjava.lang.Object
-
-