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  java.lang.String buildQueryString(boolean forCountRow)
           
 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  java.util.Map<java.lang.Object,java.lang.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(java.util.Map<java.lang.Object,java.lang.String> constants)
           
protected  java.lang.String toCountRowsString()
           
protected  java.lang.String toQueryString()
           
 java.lang.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, 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 java.lang.String buildQueryString(boolean forCountRow)

reset

protected void reset()

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

toCountRowsString

protected java.lang.String toCountRowsString()

toQueryString

protected java.lang.String toQueryString()

toString

public java.lang.String toString()
Overrides:
toString in class QueryBase<Q extends JPQLQueryBase<Q>>

getMetadata

public QueryMetadata getMetadata()


Copyright © 2007-2010 Mysema Ltd. All Rights Reserved.