com.mysema.query.hql
Class HQLQueryBase<Q extends HQLQueryBase<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.hql.HQLQueryBase<Q>
All Implemented Interfaces:
Projectable
Direct Known Subclasses:
AbstractHibernateQuery, AbstractJPAQuery

public abstract class HQLQueryBase<Q extends HQLQueryBase<Q>>
extends ProjectableQuery<Q>

HQLQueryBase is a base Query class for HQL

Version:
$Id$
Author:
tiwe

Constructor Summary
HQLQueryBase(QueryMetadata md, HQLTemplates templates)
           
 
Method Summary
 Q fetch()
           
 Q fetchAll()
           
 Q from(PEntity<?>... args)
           
<P> Q
fullJoin(Path<? extends Collection<P>> target)
           
<P> Q
fullJoin(Path<? extends Collection<P>> target, Path<P> alias)
           
<P> Q
fullJoin(PEntity<P> target)
           
<P> Q
fullJoin(PEntity<P> target, PEntity<P> alias)
           
<P> Q
fullJoin(PMap<?,P,?> target)
           
<P> Q
fullJoin(PMap<?,P,?> target, Path<P> alias)
           
protected  Map<Object,String> getConstants()
           
 QueryMetadata getMetadata()
           
protected  HQLQueryMixin<Q> getQueryMixin()
           
protected  HQLTemplates getTemplates()
           
<P> Q
innerJoin(Path<? extends Collection<P>> target)
           
<P> Q
innerJoin(Path<? extends Collection<P>> target, Path<P> alias)
           
<P> Q
innerJoin(PEntity<P> target)
           
<P> Q
innerJoin(PEntity<P> target, PEntity<P> alias)
           
<P> Q
innerJoin(PMap<?,P,?> target)
           
<P> Q
innerJoin(PMap<?,P,?> target, Path<P> alias)
           
<P> Q
join(Path<? extends Collection<P>> target)
           
<P> Q
join(Path<? extends Collection<P>> target, Path<P> alias)
           
<P> Q
join(PEntity<P> target)
           
<P> Q
join(PEntity<P> target, PEntity<P> alias)
           
<P> Q
join(PMap<?,P,?> target)
           
<P> Q
join(PMap<?,P,?> target, Path<P> alias)
           
<P> Q
leftJoin(Path<? extends Collection<P>> target)
           
<P> Q
leftJoin(Path<? extends Collection<P>> target, Path<P> alias)
           
<P> Q
leftJoin(PEntity<P> target)
           
<P> Q
leftJoin(PEntity<P> target, PEntity<P> alias)
           
<P> Q
leftJoin(PMap<?,P,?> target)
           
<P> Q
leftJoin(PMap<?,P,?> target, Path<P> alias)
           
protected  void reset()
           
protected  String toCountRowsString()
           
protected  String toQueryString()
           
 String toString()
           
 Q with(EBoolean... 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, 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

HQLQueryBase

public HQLQueryBase(QueryMetadata md,
                    HQLTemplates templates)
Method Detail

getTemplates

protected HQLTemplates getTemplates()

getQueryMixin

protected HQLQueryMixin<Q> getQueryMixin()

reset

protected void reset()

fetch

public Q fetch()

fetchAll

public Q fetchAll()

from

public Q from(PEntity<?>... args)

fullJoin

public <P> Q fullJoin(Path<? extends Collection<P>> target)

fullJoin

public <P> Q fullJoin(Path<? extends Collection<P>> target,
                      Path<P> alias)

fullJoin

public <P> Q fullJoin(PEntity<P> target)

fullJoin

public <P> Q fullJoin(PEntity<P> target,
                      PEntity<P> alias)

fullJoin

public <P> Q fullJoin(PMap<?,P,?> target)

fullJoin

public <P> Q fullJoin(PMap<?,P,?> target,
                      Path<P> alias)

getConstants

protected Map<Object,String> getConstants()

innerJoin

public <P> Q innerJoin(Path<? extends Collection<P>> target)

innerJoin

public <P> Q innerJoin(Path<? extends Collection<P>> target,
                       Path<P> alias)

innerJoin

public <P> Q innerJoin(PEntity<P> target)

innerJoin

public <P> Q innerJoin(PEntity<P> target,
                       PEntity<P> alias)

innerJoin

public <P> Q innerJoin(PMap<?,P,?> target)

innerJoin

public <P> Q innerJoin(PMap<?,P,?> target,
                       Path<P> alias)

join

public <P> Q join(Path<? extends Collection<P>> target)

join

public <P> Q join(Path<? extends Collection<P>> target,
                  Path<P> alias)

join

public <P> Q join(PEntity<P> target)

join

public <P> Q join(PEntity<P> target,
                  PEntity<P> alias)

join

public <P> Q join(PMap<?,P,?> target)

join

public <P> Q join(PMap<?,P,?> target,
                  Path<P> alias)

leftJoin

public <P> Q leftJoin(Path<? extends Collection<P>> target)

leftJoin

public <P> Q leftJoin(Path<? extends Collection<P>> target,
                      Path<P> alias)

leftJoin

public <P> Q leftJoin(PEntity<P> target)

leftJoin

public <P> Q leftJoin(PEntity<P> target,
                      PEntity<P> alias)

leftJoin

public <P> Q leftJoin(PMap<?,P,?> target)

leftJoin

public <P> Q leftJoin(PMap<?,P,?> target,
                      Path<P> alias)

with

public Q with(EBoolean... conditions)

toCountRowsString

protected String toCountRowsString()

toQueryString

protected String toQueryString()

toString

public String toString()
Overrides:
toString in class QueryBase<Q extends HQLQueryBase<Q>>

getMetadata

public QueryMetadata getMetadata()


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