com.mysema.query.jpa
Class JPQLQueryBase<Q extends JPQLQueryBase<Q>>
java.lang.Object
com.mysema.query.support.QueryBase<Q>
com.mysema.query.support.ProjectableQuery<Q>
com.mysema.query.jpa.JPQLQueryBase<Q>
- All Implemented Interfaces:
- Projectable
- Direct Known Subclasses:
- AbstractHibernateQuery, AbstractJPAQuery
public abstract class JPQLQueryBase<Q extends JPQLQueryBase<Q>>
- extends ProjectableQuery<Q>
JPQLQueryBase is a base Query class for JPQL queries
- Author:
- tiwe
Field Summary |
protected javax.persistence.EntityManager |
entityManager
|
Method Summary |
protected String |
buildQueryString(boolean forCountRow)
|
boolean |
exists()
|
Q |
fetch()
|
Q |
fetchAll()
|
Q |
from(EntityPath<?>... args)
|
|
fullJoin(CollectionExpression<?,P> target)
|
|
fullJoin(CollectionExpression<?,P> target,
Path<P> alias)
|
|
fullJoin(EntityPath<P> target)
|
|
fullJoin(EntityPath<P> target,
EntityPath<P> alias)
|
|
fullJoin(MapExpression<?,P> target)
|
|
fullJoin(MapExpression<?,P> target,
Path<P> alias)
|
protected Map<Object,String> |
getConstants()
|
QueryMetadata |
getMetadata()
|
protected JPQLQueryMixin<Q> |
getQueryMixin()
|
protected JPQLTemplates |
getTemplates()
|
|
innerJoin(CollectionExpression<?,P> target)
|
|
innerJoin(CollectionExpression<?,P> target,
Path<P> alias)
|
|
innerJoin(EntityPath<P> target)
|
|
innerJoin(EntityPath<P> target,
EntityPath<P> alias)
|
|
innerJoin(MapExpression<?,P> target)
|
|
innerJoin(MapExpression<?,P> target,
Path<P> alias)
|
|
join(CollectionExpression<?,P> target)
|
|
join(CollectionExpression<?,P> target,
Path<P> alias)
|
|
join(EntityPath<P> target)
|
|
join(EntityPath<P> target,
EntityPath<P> alias)
|
|
join(MapExpression<?,P> target)
|
|
join(MapExpression<?,P> target,
Path<P> alias)
|
|
leftJoin(CollectionExpression<?,P> target)
|
|
leftJoin(CollectionExpression<?,P> target,
Path<P> alias)
|
|
leftJoin(EntityPath<P> target)
|
|
leftJoin(EntityPath<P> target,
EntityPath<P> alias)
|
|
leftJoin(MapExpression<?,P> target)
|
|
leftJoin(MapExpression<?,P> target,
Path<P> alias)
|
protected void |
reset()
|
|
rightJoin(CollectionExpression<?,P> target)
|
|
rightJoin(CollectionExpression<?,P> target,
Path<P> alias)
|
|
rightJoin(EntityPath<P> target)
|
|
rightJoin(EntityPath<P> target,
EntityPath<P> alias)
|
|
rightJoin(MapExpression<?,P> target)
|
|
rightJoin(MapExpression<?,P> target,
Path<P> alias)
|
protected void |
setConstants(Map<Object,String> constants)
|
protected String |
toCountRowsString()
|
protected String |
toQueryString()
|
String |
toString()
|
Q |
with(Predicate... conditions)
|
Methods inherited from class com.mysema.query.support.ProjectableQuery |
countDistinct, iterate, iterateDistinct, iterateDistinct, iterateDistinct, list, list, list, listDistinct, listDistinct, listDistinct, listDistinctResults, map, notExists, singleResult, singleResult, singleResult, transform, uniqueResult, uniqueResult |
Methods inherited from class com.mysema.query.support.QueryBase |
distinct, equals, groupBy, hashCode, having, limit, offset, orderBy, restrict, set, where |
entityManager
@Nullable
protected final javax.persistence.EntityManager entityManager
JPQLQueryBase
public JPQLQueryBase(QueryMetadata md,
JPQLTemplates templates,
@Nullable
javax.persistence.EntityManager entityManager)
getTemplates
protected JPQLTemplates getTemplates()
getQueryMixin
protected JPQLQueryMixin<Q> getQueryMixin()
buildQueryString
protected String buildQueryString(boolean forCountRow)
reset
protected void reset()
exists
public boolean exists()
- Returns:
- true, if rows matching the given criteria exist, otherwise false
fetch
public Q fetch()
fetchAll
public Q fetchAll()
from
public Q from(EntityPath<?>... args)
fullJoin
public <P> Q fullJoin(CollectionExpression<?,P> target)
fullJoin
public <P> Q fullJoin(CollectionExpression<?,P> target,
Path<P> alias)
fullJoin
public <P> Q fullJoin(EntityPath<P> target)
fullJoin
public <P> Q fullJoin(EntityPath<P> target,
EntityPath<P> alias)
fullJoin
public <P> Q fullJoin(MapExpression<?,P> target)
fullJoin
public <P> Q fullJoin(MapExpression<?,P> target,
Path<P> alias)
getConstants
protected Map<Object,String> getConstants()
innerJoin
public <P> Q innerJoin(CollectionExpression<?,P> target)
innerJoin
public <P> Q innerJoin(CollectionExpression<?,P> target,
Path<P> alias)
innerJoin
public <P> Q innerJoin(EntityPath<P> target)
innerJoin
public <P> Q innerJoin(EntityPath<P> target,
EntityPath<P> alias)
innerJoin
public <P> Q innerJoin(MapExpression<?,P> target)
innerJoin
public <P> Q innerJoin(MapExpression<?,P> target,
Path<P> alias)
join
public <P> Q join(CollectionExpression<?,P> target)
join
public <P> Q join(CollectionExpression<?,P> target,
Path<P> alias)
join
public <P> Q join(EntityPath<P> target)
join
public <P> Q join(EntityPath<P> target,
EntityPath<P> alias)
join
public <P> Q join(MapExpression<?,P> target)
join
public <P> Q join(MapExpression<?,P> target,
Path<P> alias)
leftJoin
public <P> Q leftJoin(CollectionExpression<?,P> target)
leftJoin
public <P> Q leftJoin(CollectionExpression<?,P> target,
Path<P> alias)
leftJoin
public <P> Q leftJoin(EntityPath<P> target)
leftJoin
public <P> Q leftJoin(EntityPath<P> target,
EntityPath<P> alias)
leftJoin
public <P> Q leftJoin(MapExpression<?,P> target)
leftJoin
public <P> Q leftJoin(MapExpression<?,P> target,
Path<P> alias)
rightJoin
public <P> Q rightJoin(CollectionExpression<?,P> target)
rightJoin
public <P> Q rightJoin(CollectionExpression<?,P> target,
Path<P> alias)
rightJoin
public <P> Q rightJoin(EntityPath<P> target)
rightJoin
public <P> Q rightJoin(EntityPath<P> target,
EntityPath<P> alias)
rightJoin
public <P> Q rightJoin(MapExpression<?,P> target)
rightJoin
public <P> Q rightJoin(MapExpression<?,P> target,
Path<P> alias)
with
public Q with(Predicate... conditions)
setConstants
protected void setConstants(Map<Object,String> constants)
toCountRowsString
protected String toCountRowsString()
toQueryString
protected String toQueryString()
toString
public String toString()
- Overrides:
toString
in class QueryBase<Q extends JPQLQueryBase<Q>>
getMetadata
public QueryMetadata getMetadata()
Copyright © 2007-2012 Mysema Ltd. All Rights Reserved.