public abstract class JPAQueryBase<Q extends JPAQueryBase<Q>> extends ProjectableQuery<Q> implements JPQLQuery
| 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() |
boolean |
exists() |
Q |
fetch()
Add the "fetch" flag to the last defined join
Mind that collection joins might result in duplicate rows and that "inner join fetch"
will restrict your result set.
|
Q |
fetchAll()
Add the "fetch all properties" flag to the last defined join.
|
Q |
from(EntityPath<?>... args)
Set the sources of this query
|
Q |
from(EntityPath<?> arg) |
<P> Q |
fullJoin(CollectionExpression<?,P> target)
Deprecated.
|
<P> Q |
fullJoin(CollectionExpression<?,P> target,
Path<P> alias)
Deprecated.
|
<P> Q |
fullJoin(EntityPath<P> target)
Deprecated.
|
<P> Q |
fullJoin(EntityPath<P> target,
Path<P> alias)
Deprecated.
|
<P> Q |
fullJoin(MapExpression<?,P> target)
Deprecated.
|
<P> Q |
fullJoin(MapExpression<?,P> target,
Path<P> alias)
Deprecated.
|
QueryMetadata |
getMetadata() |
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) |
<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 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() |
Tuple |
uniqueResult(Expression<?>... args)
return a unique result for the given projection or null if no result is found
|
list, list, map, notExists, singleResult, singleResult, transform, uniqueResultdistinct, equals, groupBy, groupBy, hashCode, having, having, limit, offset, orderBy, orderBy, restrict, set, where, wherefinalize, getClass, notify, notifyAll, wait, wait, waitdistinct, limit, offset, orderBy, restrict, setwherecount, iterate, iterate, list, list, listResults, listResults, map, notExists, singleResult, singleResult, transform, uniqueResultprotected final JPAQueryMixin<Q extends JPAQueryBase<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 void reset()
public boolean exists()
exists in interface Projectablepublic Q fetch()
JPQLQuerypublic Q fetchAll()
JPQLQuerypublic Q from(EntityPath<?> arg)
public Q from(EntityPath<?>... args)
JPACommonQueryfrom in interface JPACommonQuery<JPQLQuery>@Deprecated public <P> Q fullJoin(CollectionExpression<?,P> target)
JPACommonQueryfullJoin in interface JPACommonQuery<JPQLQuery>@Deprecated public <P> Q fullJoin(CollectionExpression<?,P> target, Path<P> alias)
JPACommonQueryfullJoin in interface JPACommonQuery<JPQLQuery>@Deprecated public <P> Q fullJoin(EntityPath<P> target)
JPACommonQueryfullJoin in interface JPACommonQuery<JPQLQuery>@Deprecated public <P> Q fullJoin(EntityPath<P> target, Path<P> alias)
JPACommonQueryfullJoin in interface JPACommonQuery<JPQLQuery>@Deprecated public <P> Q fullJoin(MapExpression<?,P> target)
JPACommonQueryfullJoin in interface JPACommonQuery<JPQLQuery>@Deprecated public <P> Q fullJoin(MapExpression<?,P> target, Path<P> alias)
JPACommonQueryfullJoin in interface JPACommonQuery<JPQLQuery>public <P> Q innerJoin(CollectionExpression<?,P> target)
JPACommonQueryinnerJoin in interface JPACommonQuery<JPQLQuery>public <P> Q innerJoin(CollectionExpression<?,P> target, Path<P> alias)
JPACommonQueryinnerJoin in interface JPACommonQuery<JPQLQuery>public <P> Q innerJoin(EntityPath<P> target)
JPACommonQueryinnerJoin in interface JPACommonQuery<JPQLQuery>public <P> Q innerJoin(EntityPath<P> target, Path<P> alias)
JPACommonQueryinnerJoin in interface JPACommonQuery<JPQLQuery>public <P> Q innerJoin(MapExpression<?,P> target)
JPACommonQueryinnerJoin in interface JPACommonQuery<JPQLQuery>public <P> Q innerJoin(MapExpression<?,P> target, Path<P> alias)
JPACommonQueryinnerJoin in interface JPACommonQuery<JPQLQuery>public <P> Q join(CollectionExpression<?,P> target)
JPACommonQueryjoin in interface JPACommonQuery<JPQLQuery>public <P> Q join(CollectionExpression<?,P> target, Path<P> alias)
join in interface JPACommonQuery<JPQLQuery>public <P> Q join(EntityPath<P> target)
JPACommonQueryjoin in interface JPACommonQuery<JPQLQuery>public <P> Q join(EntityPath<P> target, Path<P> alias)
JPACommonQueryjoin in interface JPACommonQuery<JPQLQuery>public <P> Q join(MapExpression<?,P> target)
JPACommonQueryjoin in interface JPACommonQuery<JPQLQuery>public <P> Q join(MapExpression<?,P> target, Path<P> alias)
JPACommonQueryjoin in interface JPACommonQuery<JPQLQuery>public <P> Q leftJoin(CollectionExpression<?,P> target)
JPACommonQueryleftJoin in interface JPACommonQuery<JPQLQuery>public <P> Q leftJoin(CollectionExpression<?,P> target, Path<P> alias)
JPACommonQueryleftJoin in interface JPACommonQuery<JPQLQuery>public <P> Q leftJoin(EntityPath<P> target)
JPACommonQueryleftJoin in interface JPACommonQuery<JPQLQuery>public <P> Q leftJoin(EntityPath<P> target, Path<P> alias)
JPACommonQueryleftJoin in interface JPACommonQuery<JPQLQuery>public <P> Q leftJoin(MapExpression<?,P> target)
JPACommonQueryleftJoin in interface JPACommonQuery<JPQLQuery>public <P> Q leftJoin(MapExpression<?,P> target, Path<P> alias)
JPACommonQueryleftJoin in interface JPACommonQuery<JPQLQuery>public <P> Q rightJoin(CollectionExpression<?,P> target)
JPACommonQueryrightJoin in interface JPACommonQuery<JPQLQuery>public <P> Q rightJoin(CollectionExpression<?,P> target, Path<P> alias)
JPACommonQueryrightJoin in interface JPACommonQuery<JPQLQuery>public <P> Q rightJoin(EntityPath<P> target)
JPACommonQueryrightJoin in interface JPACommonQuery<JPQLQuery>public <P> Q rightJoin(EntityPath<P> target, Path<P> alias)
JPACommonQueryrightJoin in interface JPACommonQuery<JPQLQuery>public <P> Q rightJoin(MapExpression<?,P> target)
JPACommonQueryrightJoin in interface JPACommonQuery<JPQLQuery>public <P> Q rightJoin(MapExpression<?,P> target, Path<P> alias)
JPACommonQueryrightJoin in interface JPACommonQuery<JPQLQuery>public Q on(Predicate... conditions)
JPACommonQueryon in interface JPACommonQuery<JPQLQuery>public Tuple uniqueResult(Expression<?>... args)
ProjectableThere is some ambiguity for missing results and null valued results, for disambiguation use the list or iterate methods instead.
uniqueResult in interface Projectablepublic QueryMetadata getMetadata()
Copyright © 2007–2015 Querydsl. All rights reserved.