public abstract class JPAQueryBase<Q extends JPAQueryBase<Q>> extends ProjectableQuery<Q> implements JPQLQuery
Modifier and Type | Field and Description |
---|---|
protected javax.persistence.EntityManager |
entityManager |
protected JPAQueryMixin<Q> |
queryMixin |
Constructor and Description |
---|
JPAQueryBase(QueryMetadata md,
JPQLTemplates templates,
javax.persistence.EntityManager entityManager) |
Modifier and Type | Method and Description |
---|---|
protected String |
buildQueryString(boolean forCountRow) |
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)
Create a full join with the given target.
|
<P> Q |
fullJoin(CollectionExpression<?,P> target,
Path<P> alias)
Create a full join with the given target and alias.
|
<P> Q |
fullJoin(EntityPath<P> target)
Create a full join with the given target.
|
<P> Q |
fullJoin(EntityPath<P> target,
Path<P> alias)
Create a full join with the given target and alias.
|
<P> Q |
fullJoin(MapExpression<?,P> target)
Create a full join with the given target.
|
<P> Q |
fullJoin(MapExpression<?,P> target,
Path<P> alias)
Create a full join with the given target and alias.
|
protected Map<Object,String> |
getConstants() |
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 void |
setConstants(Map<Object,String> constants) |
protected String |
toCountRowsString() |
protected String |
toQueryString() |
String |
toString() |
list, list, map, notExists, singleResult, singleResult, transform, uniqueResult
distinct, equals, groupBy, groupBy, hashCode, having, having, limit, offset, orderBy, orderBy, restrict, set, where, where
clone, 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, uniqueResult
protected final JPAQueryMixin<Q extends JPAQueryBase<Q>> queryMixin
@Nullable protected final javax.persistence.EntityManager entityManager
public JPAQueryBase(QueryMetadata md, JPQLTemplates templates, @Nullable javax.persistence.EntityManager entityManager)
protected JPQLTemplates getTemplates()
protected String buildQueryString(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>
public <P> Q fullJoin(CollectionExpression<?,P> target)
JPACommonQuery
fullJoin
in interface JPACommonQuery<JPQLQuery>
public <P> Q fullJoin(CollectionExpression<?,P> target, Path<P> alias)
JPACommonQuery
fullJoin
in interface JPACommonQuery<JPQLQuery>
public <P> Q fullJoin(EntityPath<P> target)
JPACommonQuery
fullJoin
in interface JPACommonQuery<JPQLQuery>
public <P> Q fullJoin(EntityPath<P> target, Path<P> alias)
JPACommonQuery
fullJoin
in interface JPACommonQuery<JPQLQuery>
public <P> Q fullJoin(MapExpression<?,P> target)
JPACommonQuery
fullJoin
in interface JPACommonQuery<JPQLQuery>
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>
protected String toCountRowsString()
protected String toQueryString()
public QueryMetadata getMetadata()
Copyright © 2007–2014 Mysema Ltd. All rights reserved.