com.mysema.query.jpa
Class JPQLQueryBase<Q extends JPQLQueryBase<Q>>

java.lang.Object
  extended by com.mysema.query.support.QueryBase<Q>
      extended by com.mysema.query.support.ProjectableQuery<Q>
          extended by 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

Version:
$Id$
Author:
tiwe

Constructor Summary
JPQLQueryBase(QueryMetadata md, JPQLTemplates templates)
           
 
Method Summary
protected  String buildQueryString(boolean forCountRow)
           
 boolean exists()
           
 Q fetch()
           
 Q fetchAll()
           
 Q from(EntityPath<?>... args)
           
<P> Q
fullJoin(CollectionExpression<?,P> target)
           
<P> Q
fullJoin(CollectionExpression<?,P> target, Path<P> alias)
           
<P> Q
fullJoin(EntityPath<P> target)
           
<P> Q
fullJoin(EntityPath<P> target, EntityPath<P> alias)
           
<P> Q
fullJoin(MapExpression<?,P> target)
           
<P> Q
fullJoin(MapExpression<?,P> target, Path<P> alias)
           
protected  Map<Object,String> getConstants()
           
 QueryMetadata getMetadata()
           
protected  JPQLQueryMixin<Q> getQueryMixin()
           
protected  JPQLTemplates getTemplates()
           
<P> Q
innerJoin(CollectionExpression<?,P> target)
           
<P> Q
innerJoin(CollectionExpression<?,P> target, Path<P> alias)
           
<P> Q
innerJoin(EntityPath<P> target)
           
<P> Q
innerJoin(EntityPath<P> target, EntityPath<P> alias)
           
<P> Q
innerJoin(MapExpression<?,P> target)
           
<P> Q
innerJoin(MapExpression<?,P> target, Path<P> alias)
           
<P> Q
join(CollectionExpression<?,P> target)
           
<P> Q
join(CollectionExpression<?,P> target, Path<P> alias)
           
<P> Q
join(EntityPath<P> target)
           
<P> Q
join(EntityPath<P> target, EntityPath<P> alias)
           
<P> Q
join(MapExpression<?,P> target)
           
<P> Q
join(MapExpression<?,P> target, Path<P> alias)
           
<P> Q
leftJoin(CollectionExpression<?,P> target)
           
<P> Q
leftJoin(CollectionExpression<?,P> target, Path<P> alias)
           
<P> Q
leftJoin(EntityPath<P> target)
           
<P> Q
leftJoin(EntityPath<P> target, EntityPath<P> alias)
           
<P> Q
leftJoin(MapExpression<?,P> target)
           
<P> Q
leftJoin(MapExpression<?,P> target, Path<P> alias)
           
protected  void reset()
           
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, uniqueResult, uniqueResult, uniqueResult
 
Methods inherited from class com.mysema.query.support.QueryBase
groupBy, having, limit, offset, orderBy, restrict, set, where
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.mysema.query.Projectable
count, iterate, iterate, listResults
 

Constructor Detail

JPQLQueryBase

public JPQLQueryBase(QueryMetadata md,
                     JPQLTemplates templates)
Method Detail

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)

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-2010 Mysema Ltd. All Rights Reserved.