com.mysema.query.hql
Class HQLQueryBase<SubType extends HQLQueryBase<SubType>>

java.lang.Object
  extended by com.mysema.query.QueryBase<SubType>
      extended by com.mysema.query.support.QueryBaseWithProjection<SubType>
          extended by com.mysema.query.hql.HQLQueryBase<SubType>
All Implemented Interfaces:
Projectable
Direct Known Subclasses:
AbstractHibernateQuery, AbstractJPAQuery

public abstract class HQLQueryBase<SubType extends HQLQueryBase<SubType>>
extends QueryBaseWithProjection<SubType>

HQLQueryBase is a base Query class for HQL

Version:
$Id$
Author:
tiwe

Field Summary
 
Fields inherited from class com.mysema.query.QueryBase
_this
 
Constructor Summary
HQLQueryBase(QueryMetadata md, HQLTemplates templates)
           
 
Method Summary
protected  EBoolean createQBECondition(PEntity<?> entity, Map<String,Object> map)
           
 SubType fetch()
           
 SubType fetchAll()
           
 SubType from(PEntity<?>... args)
           
<P> SubType
fullJoin(Path<? extends Collection<P>> target)
           
<P> SubType
fullJoin(Path<? extends Collection<P>> target, PEntity<P> alias)
           
<P> SubType
fullJoin(PEntity<P> target)
           
<P> SubType
fullJoin(PEntity<P> target, PEntity<P> alias)
           
<P> SubType
fullJoin(PMap<?,P,?> target)
           
<P> SubType
fullJoin(PMap<?,P,?> target, PEntity<P> alias)
           
protected  Map<Object,String> getConstants()
           
<P> SubType
innerJoin(Path<? extends Collection<P>> target)
           
<P> SubType
innerJoin(Path<? extends Collection<P>> target, PEntity<P> alias)
           
<P> SubType
innerJoin(PEntity<P> target)
           
<P> SubType
innerJoin(PEntity<P> target, PEntity<P> alias)
           
<P> SubType
innerJoin(PMap<?,P,?> target)
           
<P> SubType
innerJoin(PMap<?,P,?> target, PEntity<P> alias)
           
<P> SubType
join(Path<? extends Collection<P>> target)
           
<P> SubType
join(Path<? extends Collection<P>> target, PEntity<P> alias)
           
<P> SubType
join(PEntity<P> target)
           
<P> SubType
join(PEntity<P> target, PEntity<P> alias)
           
<P> SubType
join(PMap<?,P,?> target)
           
<P> SubType
join(PMap<?,P,?> target, PEntity<P> alias)
           
<P> SubType
leftJoin(Path<? extends Collection<P>> target)
           
<P> SubType
leftJoin(Path<? extends Collection<P>> target, PEntity<P> alias)
           
<P> SubType
leftJoin(PEntity<P> target)
           
<P> SubType
leftJoin(PEntity<P> target, PEntity<P> alias)
           
<P> SubType
leftJoin(PMap<?,P,?> target)
           
<P> SubType
leftJoin(PMap<?,P,?> target, PEntity<P> alias)
           
protected  String toCountRowsString()
           
protected  String toQueryString()
           
 String toString()
           
 SubType with(EBoolean... conditions)
           
 
Methods inherited from class com.mysema.query.support.QueryBaseWithProjection
asArray, countDistinct, iterateDistinct, iterateDistinct, list, list, listDistinct, listDistinct, listDistinctResults, map, uniqueResult, uniqueResult
 
Methods inherited from class com.mysema.query.QueryBase
addToProjection, getMetadata, 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

createQBECondition

protected EBoolean createQBECondition(PEntity<?> entity,
                                      Map<String,Object> map)

from

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

fetch

public SubType fetch()
Returns:

fetchAll

public SubType fetchAll()
Returns:

fullJoin

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

fullJoin

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

fullJoin

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

fullJoin

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

fullJoin

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

fullJoin

public <P> SubType fullJoin(PMap<?,P,?> target,
                            PEntity<P> alias)

getConstants

protected Map<Object,String> getConstants()

innerJoin

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

innerJoin

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

innerJoin

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

innerJoin

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

innerJoin

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

innerJoin

public <P> SubType innerJoin(PMap<?,P,?> target,
                             PEntity<P> alias)

join

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

join

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

join

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

join

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

join

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

join

public <P> SubType join(PMap<?,P,?> target,
                        PEntity<P> alias)

leftJoin

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

leftJoin

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

leftJoin

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

leftJoin

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

leftJoin

public <P> SubType leftJoin(PMap<?,P,?> target,
                            PEntity<P> alias)

leftJoin

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

with

public SubType with(EBoolean... conditions)

toCountRowsString

protected String toCountRowsString()

toQueryString

protected String toQueryString()

toString

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


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