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, 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 java.lang.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>
protected java.util.Map<java.lang.Object,java.lang.String> getConstants()
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 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.