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) |
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, uniqueResult
distinct, equals, groupBy, groupBy, hashCode, having, having, limit, offset, orderBy, orderBy, restrict, set, where, where
finalize, getClass, notify, notifyAll, wait, wait, wait
distinct, limit, offset, orderBy, restrict, set
where
count, iterate, iterate, list, list, listResults, listResults, map, notExists, singleResult, singleResult, transform, uniqueResult
protected 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 void reset()
public boolean exists()
exists
in interface Projectable
public Q fetch()
JPQLQuery
public Q fetchAll()
JPQLQuery
public Q from(EntityPath<?> arg)
public Q from(EntityPath<?>... args)
JPACommonQuery
from
in interface JPACommonQuery<JPQLQuery>
@Deprecated public <P> Q fullJoin(CollectionExpression<?,P> target)
JPACommonQuery
fullJoin
in interface JPACommonQuery<JPQLQuery>
@Deprecated public <P> Q fullJoin(CollectionExpression<?,P> target, Path<P> alias)
JPACommonQuery
fullJoin
in interface JPACommonQuery<JPQLQuery>
@Deprecated public <P> Q fullJoin(EntityPath<P> target)
JPACommonQuery
fullJoin
in interface JPACommonQuery<JPQLQuery>
@Deprecated public <P> Q fullJoin(EntityPath<P> target, Path<P> alias)
JPACommonQuery
fullJoin
in interface JPACommonQuery<JPQLQuery>
@Deprecated public <P> Q fullJoin(MapExpression<?,P> target)
JPACommonQuery
fullJoin
in interface JPACommonQuery<JPQLQuery>
@Deprecated public <P> Q fullJoin(MapExpression<?,P> target, Path<P> alias)
JPACommonQuery
fullJoin
in interface JPACommonQuery<JPQLQuery>
public <P> Q innerJoin(CollectionExpression<?,P> target)
JPACommonQuery
innerJoin
in interface JPACommonQuery<JPQLQuery>
public <P> Q innerJoin(CollectionExpression<?,P> target, Path<P> alias)
JPACommonQuery
innerJoin
in interface JPACommonQuery<JPQLQuery>
public <P> Q innerJoin(EntityPath<P> target)
JPACommonQuery
innerJoin
in interface JPACommonQuery<JPQLQuery>
public <P> Q innerJoin(EntityPath<P> target, Path<P> alias)
JPACommonQuery
innerJoin
in interface JPACommonQuery<JPQLQuery>
public <P> Q innerJoin(MapExpression<?,P> target)
JPACommonQuery
innerJoin
in interface JPACommonQuery<JPQLQuery>
public <P> Q innerJoin(MapExpression<?,P> target, Path<P> alias)
JPACommonQuery
innerJoin
in interface JPACommonQuery<JPQLQuery>
public <P> Q join(CollectionExpression<?,P> target)
JPACommonQuery
join
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)
JPACommonQuery
join
in interface JPACommonQuery<JPQLQuery>
public <P> Q join(EntityPath<P> target, Path<P> alias)
JPACommonQuery
join
in interface JPACommonQuery<JPQLQuery>
public <P> Q join(MapExpression<?,P> target)
JPACommonQuery
join
in interface JPACommonQuery<JPQLQuery>
public <P> Q join(MapExpression<?,P> target, Path<P> alias)
JPACommonQuery
join
in interface JPACommonQuery<JPQLQuery>
public <P> Q leftJoin(CollectionExpression<?,P> target)
JPACommonQuery
leftJoin
in interface JPACommonQuery<JPQLQuery>
public <P> Q leftJoin(CollectionExpression<?,P> target, Path<P> alias)
JPACommonQuery
leftJoin
in interface JPACommonQuery<JPQLQuery>
public <P> Q leftJoin(EntityPath<P> target)
JPACommonQuery
leftJoin
in interface JPACommonQuery<JPQLQuery>
public <P> Q leftJoin(EntityPath<P> target, Path<P> alias)
JPACommonQuery
leftJoin
in interface JPACommonQuery<JPQLQuery>
public <P> Q leftJoin(MapExpression<?,P> target)
JPACommonQuery
leftJoin
in interface JPACommonQuery<JPQLQuery>
public <P> Q leftJoin(MapExpression<?,P> target, Path<P> alias)
JPACommonQuery
leftJoin
in interface JPACommonQuery<JPQLQuery>
public <P> Q rightJoin(CollectionExpression<?,P> target)
JPACommonQuery
rightJoin
in interface JPACommonQuery<JPQLQuery>
public <P> Q rightJoin(CollectionExpression<?,P> target, Path<P> alias)
JPACommonQuery
rightJoin
in interface JPACommonQuery<JPQLQuery>
public <P> Q rightJoin(EntityPath<P> target)
JPACommonQuery
rightJoin
in interface JPACommonQuery<JPQLQuery>
public <P> Q rightJoin(EntityPath<P> target, Path<P> alias)
JPACommonQuery
rightJoin
in interface JPACommonQuery<JPQLQuery>
public <P> Q rightJoin(MapExpression<?,P> target)
JPACommonQuery
rightJoin
in interface JPACommonQuery<JPQLQuery>
public <P> Q rightJoin(MapExpression<?,P> target, Path<P> alias)
JPACommonQuery
rightJoin
in interface JPACommonQuery<JPQLQuery>
public Q on(Predicate... conditions)
JPACommonQuery
on
in interface JPACommonQuery<JPQLQuery>
public Tuple uniqueResult(Expression<?>... args)
Projectable
There is some ambiguity for missing results and null valued results, for disambiguation use the list or iterate methods instead.
uniqueResult
in interface Projectable
public QueryMetadata getMetadata()
Copyright © 2007–2015 Mysema Ltd. All rights reserved.