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 queriesModifier 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, notExists
equals, fetch, fetchFirst, transform, uniqueResult
distinct, groupBy, groupBy, having, having, limit, offset, orderBy, orderBy, restrict, set, where, where
finalize, getClass, notify, notifyAll, wait, wait, wait
transform
fetch, fetchCount, fetchFirst, fetchOne, fetchResults, iterate
distinct, limit, offset, orderBy, restrict, set
where
contains, contains, eq, eq, exists, goe, goe, gt, gt, in, in, isNotNull, isNull, loe, loe, lt, lt, ne, ne, notExists
getMetadata
accept, getType
protected 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()
JPQLQuery
public Q fetchAll()
JPQLQuery
public Q from(EntityPath<?> arg)
public Q from(EntityPath<?>... args)
JPQLQuery
public <P> Q from(CollectionExpression<?,P> target, Path<P> alias)
JPQLQuery
public <P> Q innerJoin(CollectionExpression<?,P> target)
JPQLQuery
public <P> Q innerJoin(CollectionExpression<?,P> target, Path<P> alias)
JPQLQuery
public <P> Q innerJoin(EntityPath<P> target)
JPQLQuery
public <P> Q innerJoin(EntityPath<P> target, Path<P> alias)
JPQLQuery
public <P> Q innerJoin(MapExpression<?,P> target)
JPQLQuery
public <P> Q innerJoin(MapExpression<?,P> target, Path<P> alias)
JPQLQuery
public <P> Q join(CollectionExpression<?,P> target)
JPQLQuery
public <P> Q join(CollectionExpression<?,P> target, Path<P> alias)
JPQLQuery
public <P> Q join(EntityPath<P> target)
JPQLQuery
public <P> Q join(EntityPath<P> target, Path<P> alias)
JPQLQuery
public <P> Q join(MapExpression<?,P> target)
JPQLQuery
public <P> Q join(MapExpression<?,P> target, Path<P> alias)
JPQLQuery
public <P> Q leftJoin(CollectionExpression<?,P> target)
JPQLQuery
public <P> Q leftJoin(CollectionExpression<?,P> target, Path<P> alias)
JPQLQuery
public <P> Q leftJoin(EntityPath<P> target)
JPQLQuery
public <P> Q leftJoin(EntityPath<P> target, Path<P> alias)
JPQLQuery
public <P> Q leftJoin(MapExpression<?,P> target)
JPQLQuery
public <P> Q leftJoin(MapExpression<?,P> target, Path<P> alias)
JPQLQuery
public <P> Q rightJoin(CollectionExpression<?,P> target)
JPQLQuery
public <P> Q rightJoin(CollectionExpression<?,P> target, Path<P> alias)
JPQLQuery
public <P> Q rightJoin(EntityPath<P> target)
JPQLQuery
public <P> Q rightJoin(EntityPath<P> target, Path<P> alias)
JPQLQuery
public <P> Q rightJoin(MapExpression<?,P> target)
JPQLQuery
public <P> Q rightJoin(MapExpression<?,P> target, Path<P> alias)
JPQLQuery
public Q on(Predicate... conditions)
JPQLQuery
public String toString()
Copyright © 2007–2016 Querydsl. All rights reserved.