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 java.lang.String |
buildQueryString(boolean forCountRow) |
boolean |
exists() |
Q |
fetch()
Add the "fetch" flag to the last defined join
|
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 java.util.Map<java.lang.Object,java.lang.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(java.util.Map<java.lang.Object,java.lang.String> constants) |
protected java.lang.String |
toCountRowsString() |
protected java.lang.String |
toQueryString() |
java.lang.String |
toString() |
list, list, map, notExists, singleResult, singleResult, transform, uniqueResultdistinct, equals, groupBy, groupBy, hashCode, having, having, limit, offset, orderBy, orderBy, restrict, set, where, whereclone, finalize, getClass, notify, notifyAll, wait, wait, waitdistinct, limit, offset, orderBy, restrict, setwherecount, iterate, iterate, list, list, listResults, listResults, map, notExists, singleResult, singleResult, transform, uniqueResult, uniqueResultprotected 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 java.lang.String buildQueryString(boolean forCountRow)
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>public <P> Q fullJoin(CollectionExpression<?,P> target)
JPACommonQueryfullJoin in interface JPACommonQuery<JPQLQuery>public <P> Q fullJoin(CollectionExpression<?,P> target, Path<P> alias)
JPACommonQueryfullJoin in interface JPACommonQuery<JPQLQuery>public <P> Q fullJoin(EntityPath<P> target)
JPACommonQueryfullJoin in interface JPACommonQuery<JPQLQuery>public <P> Q fullJoin(EntityPath<P> target, Path<P> alias)
JPACommonQueryfullJoin in interface JPACommonQuery<JPQLQuery>public <P> Q fullJoin(MapExpression<?,P> target)
JPACommonQueryfullJoin in interface JPACommonQuery<JPQLQuery>public <P> Q fullJoin(MapExpression<?,P> target, Path<P> alias)
JPACommonQueryfullJoin in interface JPACommonQuery<JPQLQuery>protected java.util.Map<java.lang.Object,java.lang.String> getConstants()
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>protected void setConstants(java.util.Map<java.lang.Object,java.lang.String> constants)
protected java.lang.String toCountRowsString()
protected java.lang.String toQueryString()
public java.lang.String toString()
toString in class QueryBase<Q extends JPAQueryBase<Q>>public QueryMetadata getMetadata()
Copyright © 2007-2013 Mysema Ltd. All Rights Reserved.