T - result typeQ - concrete subtypepublic abstract class JPAQueryBase<T,Q extends JPAQueryBase<T,Q>> extends FetchableSubQueryBase<T,Q> implements JPQLQuery<T>
JPAQueryBase is a base Query class for JPA queries| Modifier and Type | Field and Description |
|---|---|
protected JPAQueryMixin<Q> |
queryMixin |
MDC_PARAMETERS, MDC_QUERY| Constructor and Description |
|---|
JPAQueryBase(QueryMetadata md,
JPQLTemplates templates) |
| Modifier and Type | Method and Description |
|---|---|
abstract Q |
clone() |
protected abstract JPQLSerializer |
createSerializer() |
Q |
fetchAll()
Add the "fetchJoin all properties" flag to the last defined join.
|
Q |
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.
|
<P> Q |
from(CollectionExpression<?,P> target,
Path<P> alias)
Add a query source
|
Q |
from(EntityPath<?>... args)
Add sources to this query
|
Q |
from(EntityPath<?> arg) |
protected JPQLTemplates |
getTemplates() |
<P> Q |
innerJoin(CollectionExpression<?,P> target)
Create a inner join with the given target.
|
<P> Q |
innerJoin(CollectionExpression<?,P> target,
Path<P> alias)
Create a inner join with the given target and alias.
|
<P> Q |
innerJoin(EntityPath<P> target)
Create a inner join with the given target.
|
<P> Q |
innerJoin(EntityPath<P> target,
Path<P> alias)
Create a inner join with the given target and alias.
|
<P> Q |
innerJoin(MapExpression<?,P> target)
Create a inner join with the given target.
|
<P> Q |
innerJoin(MapExpression<?,P> target,
Path<P> alias)
Create a inner join with the given target and alias.
|
<P> Q |
join(CollectionExpression<?,P> target)
Create a join with the given target.
|
<P> Q |
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> Q |
join(EntityPath<P> target)
Create a join with the given target.
|
<P> Q |
join(EntityPath<P> target,
Path<P> alias)
Create a join with the given target and alias.
|
<P> Q |
join(MapExpression<?,P> target)
Create a join with the given target.
|
<P> Q |
join(MapExpression<?,P> target,
Path<P> alias)
Create a join with the given target and alias.
|
<P> Q |
leftJoin(CollectionExpression<?,P> target)
Create a left join with the given target.
|
<P> Q |
leftJoin(CollectionExpression<?,P> target,
Path<P> alias)
Create a left join with the given target and alias.
|
<P> Q |
leftJoin(EntityPath<P> target)
Create a left join with the given target.
|
<P> Q |
leftJoin(EntityPath<P> target,
Path<P> alias)
Create a left join with the given target and alias.
|
<P> Q |
leftJoin(MapExpression<?,P> target)
Create a left join with the given target.
|
<P> Q |
leftJoin(MapExpression<?,P> target,
Path<P> alias)
Create a left join with the given target and alias.
|
Q |
on(Predicate... conditions)
Add join conditions to the last added join
|
Q |
on(Predicate condition) |
protected abstract void |
reset() |
<P> Q |
rightJoin(CollectionExpression<?,P> target)
Create a right join with the given target.
|
<P> Q |
rightJoin(CollectionExpression<?,P> target,
Path<P> alias)
Create a right join with the given target and alias.
|
<P> Q |
rightJoin(EntityPath<P> target)
Create a right join with the given target.
|
<P> Q |
rightJoin(EntityPath<P> target,
Path<P> alias)
Create a right join with the given target and alias.
|
<P> Q |
rightJoin(MapExpression<?,P> target)
Create a right join with the given target.
|
<P> Q |
rightJoin(MapExpression<?,P> target,
Path<P> alias)
Create a right join with the given target and alias.
|
protected JPQLSerializer |
serialize(boolean forCountRow) |
protected JPQLSerializer |
serialize(boolean forCountRow,
boolean validate) |
String |
toString() |
accept, contains, contains, eq, eq, exists, getMetadata, getType, goe, goe, gt, gt, hashCode, in, in, isNotNull, isNull, loe, loe, lt, lt, ne, ne, notExistsequals, fetch, fetchFirst, transform, uniqueResultdistinct, groupBy, groupBy, having, having, limit, offset, orderBy, orderBy, restrict, set, where, wherefinalize, getClass, notify, notifyAll, wait, wait, waittransformfetch, fetchCount, fetchFirst, fetchOne, fetchResults, iteratedistinct, limit, offset, orderBy, restrict, setwherecontains, contains, eq, eq, exists, goe, goe, gt, gt, in, in, isNotNull, isNull, loe, loe, lt, lt, ne, ne, notExistsgetMetadataaccept, getTypeprotected final JPAQueryMixin<Q extends JPAQueryBase<T,Q>> queryMixin
public JPAQueryBase(QueryMetadata md, JPQLTemplates templates)
protected JPQLTemplates getTemplates()
protected abstract JPQLSerializer createSerializer()
protected JPQLSerializer serialize(boolean forCountRow)
protected JPQLSerializer serialize(boolean forCountRow, boolean validate)
protected abstract void reset()
public Q fetchJoin()
JPQLQuerypublic Q fetchAll()
JPQLQuerypublic Q from(EntityPath<?> arg)
public Q from(EntityPath<?>... args)
JPQLQuerypublic <P> Q from(CollectionExpression<?,P> target, Path<P> alias)
JPQLQuerypublic <P> Q innerJoin(CollectionExpression<?,P> target)
JPQLQuerypublic <P> Q innerJoin(CollectionExpression<?,P> target, Path<P> alias)
JPQLQuerypublic <P> Q innerJoin(EntityPath<P> target)
JPQLQuerypublic <P> Q innerJoin(EntityPath<P> target, Path<P> alias)
JPQLQuerypublic <P> Q innerJoin(MapExpression<?,P> target)
JPQLQuerypublic <P> Q innerJoin(MapExpression<?,P> target, Path<P> alias)
JPQLQuerypublic <P> Q join(CollectionExpression<?,P> target)
JPQLQuerypublic <P> Q join(CollectionExpression<?,P> target, Path<P> alias)
JPQLQuerypublic <P> Q join(EntityPath<P> target)
JPQLQuerypublic <P> Q join(EntityPath<P> target, Path<P> alias)
JPQLQuerypublic <P> Q join(MapExpression<?,P> target)
JPQLQuerypublic <P> Q join(MapExpression<?,P> target, Path<P> alias)
JPQLQuerypublic <P> Q leftJoin(CollectionExpression<?,P> target)
JPQLQuerypublic <P> Q leftJoin(CollectionExpression<?,P> target, Path<P> alias)
JPQLQuerypublic <P> Q leftJoin(EntityPath<P> target)
JPQLQuerypublic <P> Q leftJoin(EntityPath<P> target, Path<P> alias)
JPQLQuerypublic <P> Q leftJoin(MapExpression<?,P> target)
JPQLQuerypublic <P> Q leftJoin(MapExpression<?,P> target, Path<P> alias)
JPQLQuerypublic <P> Q rightJoin(CollectionExpression<?,P> target)
JPQLQuerypublic <P> Q rightJoin(CollectionExpression<?,P> target, Path<P> alias)
JPQLQuerypublic <P> Q rightJoin(EntityPath<P> target)
JPQLQuerypublic <P> Q rightJoin(EntityPath<P> target, Path<P> alias)
JPQLQuerypublic <P> Q rightJoin(MapExpression<?,P> target)
JPQLQuerypublic <P> Q rightJoin(MapExpression<?,P> target, Path<P> alias)
JPQLQuerypublic Q on(Predicate... conditions)
JPQLQuerypublic String toString()
Copyright © 2007–2016 Querydsl. All rights reserved.