com.mysema.query.hql
Interface HQLQuery

All Superinterfaces:
Projectable, Query<HQLQuery>
All Known Implementing Classes:
HibernateQuery, JPAQuery

public interface HQLQuery
extends Query<HQLQuery>, Projectable

Query interface for HQL queries

Author:
tiwe

Method Summary
 HQLQuery fetch()
          Add the "fetch" flag to the last defined join
 HQLQuery fetchAll()
          Add the "fetch all properties" flag to the last defined join.
 HQLQuery from(PEntity<?>... sources)
          Set the sources of this query
<P> HQLQuery
fullJoin(Path<? extends Collection<P>> target)
          Create an full join with the given target.
<P> HQLQuery
fullJoin(Path<? extends Collection<P>> target, Path<P> alias)
          Create a full join with the given target and alias.
<P> HQLQuery
fullJoin(PEntity<P> target)
          Create an full join with the given target.
<P> HQLQuery
fullJoin(PEntity<P> target, PEntity<P> alias)
          Create a full join with the given target and alias.
<P> HQLQuery
fullJoin(PMap<?,P,?> target)
          Create an full join with the given target.
<P> HQLQuery
fullJoin(PMap<?,P,?> target, Path<P> alias)
          Create a full join with the given target and alias.
<P> HQLQuery
innerJoin(Path<? extends Collection<P>> target)
          Create an inner join with the given target.
<P> HQLQuery
innerJoin(Path<? extends Collection<P>> target, Path<P> alias)
          Create an inner join with the given target and alias.
<P> HQLQuery
innerJoin(PEntity<P> target)
          Create an inner join with the given target.
<P> HQLQuery
innerJoin(PEntity<P> target, PEntity<P> alias)
          Create an inner join with the given target and alias.
<P> HQLQuery
innerJoin(PMap<?,P,?> target)
          Create an inner join with the given target.
<P> HQLQuery
innerJoin(PMap<?,P,?> target, Path<P> alias)
          Create an inner join with the given target and alias.
<P> HQLQuery
join(Path<? extends Collection<P>> target)
          Create an join with the given target.
<P> HQLQuery
join(Path<? extends Collection<P>> target, Path<P> alias)
           
<P> HQLQuery
join(PEntity<P> target)
          Create an join with the given target.
<P> HQLQuery
join(PEntity<P> target, PEntity<P> alias)
          Create a join with the given target and alias.
<P> HQLQuery
join(PMap<?,P,?> target)
          Create an join with the given target.
<P> HQLQuery
join(PMap<?,P,?> target, Path<P> alias)
          Create a join with the given target and alias.
<P> HQLQuery
leftJoin(Path<? extends Collection<P>> target)
          Create an left join with the given target.
<P> HQLQuery
leftJoin(Path<? extends Collection<P>> target, Path<P> alias)
          Create a left join with the given target and alias.
<P> HQLQuery
leftJoin(PEntity<P> target)
          Create an left join with the given target.
<P> HQLQuery
leftJoin(PEntity<P> target, PEntity<P> alias)
          Create a left join with the given target and alias.
<P> HQLQuery
leftJoin(PMap<?,P,?> target)
          Create an left join with the given target.
<P> HQLQuery
leftJoin(PMap<?,P,?> target, Path<P> alias)
          Create a left join with the given target and alias.
 HQLQuery with(EBoolean... condition)
          Add conditions to the with clause
 
Methods inherited from interface com.mysema.query.Query
groupBy, having, limit, offset, orderBy, restrict, where
 
Methods inherited from interface com.mysema.query.Projectable
count, countDistinct, iterate, iterate, iterate, iterateDistinct, iterateDistinct, iterateDistinct, list, list, list, listDistinct, listDistinct, listDistinct, listDistinctResults, listResults, map, uniqueResult, uniqueResult, uniqueResult
 

Method Detail

from

HQLQuery from(PEntity<?>... sources)
Set the sources of this query

Parameters:
sources -
Returns:

innerJoin

<P> HQLQuery innerJoin(PEntity<P> target)
Create an inner join with the given target. Use fetch() to add the fetch parameter to this join.

Type Parameters:
P -
Parameters:
target -
Returns:

innerJoin

<P> HQLQuery innerJoin(PEntity<P> target,
                       PEntity<P> alias)
Create an inner join with the given target and alias.

Type Parameters:
P -
Parameters:
target -
alias -
Returns:

innerJoin

<P> HQLQuery innerJoin(Path<? extends Collection<P>> target)
Create an inner join with the given target. Use fetch() to add the fetch parameter to this join.

Type Parameters:
P -
Parameters:
target -
Returns:

innerJoin

<P> HQLQuery innerJoin(Path<? extends Collection<P>> target,
                       Path<P> alias)
Create an inner join with the given target and alias.

Type Parameters:
P -
Parameters:
target -
alias -
Returns:

innerJoin

<P> HQLQuery innerJoin(PMap<?,P,?> target)
Create an inner join with the given target. Use fetch() to add the fetch parameter to this join.

Type Parameters:
P -
Parameters:
target -
Returns:

innerJoin

<P> HQLQuery innerJoin(PMap<?,P,?> target,
                       Path<P> alias)
Create an inner join with the given target and alias.

Type Parameters:
P -
Parameters:
target -
alias -
Returns:

join

<P> HQLQuery join(PEntity<P> target)
Create an join with the given target. Use fetch() to add the fetch parameter to this join.

Type Parameters:
P -
Parameters:
target -
Returns:

join

<P> HQLQuery join(PEntity<P> target,
                  PEntity<P> alias)
Create a join with the given target and alias.

Type Parameters:
P -
Parameters:
target -
alias -
Returns:

join

<P> HQLQuery join(Path<? extends Collection<P>> target)
Create an join with the given target. Use fetch() to add the fetch parameter to this join.

Type Parameters:
P -
Parameters:
target -
Returns:

join

<P> HQLQuery join(Path<? extends Collection<P>> target,
                  Path<P> alias)
Type Parameters:
P -
Parameters:
target -
alias -
Returns:

join

<P> HQLQuery join(PMap<?,P,?> target)
Create an join with the given target. Use fetch() to add the fetch parameter to this join.

Type Parameters:
P -
Parameters:
target -
Returns:

join

<P> HQLQuery join(PMap<?,P,?> target,
                  Path<P> alias)
Create a join with the given target and alias.

Type Parameters:
P -
Parameters:
target -
alias -
Returns:

leftJoin

<P> HQLQuery leftJoin(PEntity<P> target)
Create an left join with the given target. Use fetch() to add the fetch parameter to this join.

Type Parameters:
P -
Parameters:
target -
Returns:

leftJoin

<P> HQLQuery leftJoin(PEntity<P> target,
                      PEntity<P> alias)
Create a left join with the given target and alias.

Type Parameters:
P -
Parameters:
target -
alias -
Returns:

leftJoin

<P> HQLQuery leftJoin(Path<? extends Collection<P>> target)
Create an left join with the given target. Use fetch() to add the fetch parameter to this join.

Type Parameters:
P -
Parameters:
target -
Returns:

leftJoin

<P> HQLQuery leftJoin(Path<? extends Collection<P>> target,
                      Path<P> alias)
Create a left join with the given target and alias.

Type Parameters:
P -
Parameters:
target -
alias -
Returns:

leftJoin

<P> HQLQuery leftJoin(PMap<?,P,?> target)
Create an left join with the given target. Use fetch() to add the fetch parameter to this join.

Type Parameters:
P -
Parameters:
target -
Returns:

leftJoin

<P> HQLQuery leftJoin(PMap<?,P,?> target,
                      Path<P> alias)
Create a left join with the given target and alias.

Type Parameters:
P -
Parameters:
target -
alias -
Returns:

fullJoin

<P> HQLQuery fullJoin(PEntity<P> target)
Create an full join with the given target. Use fetch() to add the fetch parameter to this join.

Type Parameters:
P -
Parameters:
target -
Returns:

fullJoin

<P> HQLQuery fullJoin(PEntity<P> target,
                      PEntity<P> alias)
Create a full join with the given target and alias.

Type Parameters:
P -
Parameters:
target -
alias -
Returns:

fullJoin

<P> HQLQuery fullJoin(Path<? extends Collection<P>> target)
Create an full join with the given target. Use fetch() to add the fetch parameter to this join.

Type Parameters:
P -
Parameters:
target -
Returns:

fullJoin

<P> HQLQuery fullJoin(Path<? extends Collection<P>> target,
                      Path<P> alias)
Create a full join with the given target and alias.

Type Parameters:
P -
Parameters:
target -
alias -
Returns:

fullJoin

<P> HQLQuery fullJoin(PMap<?,P,?> target)
Create an full join with the given target. Use fetch() to add the fetch parameter to this join.

Type Parameters:
P -
Parameters:
target -
Returns:

fullJoin

<P> HQLQuery fullJoin(PMap<?,P,?> target,
                      Path<P> alias)
Create a full join with the given target and alias.

Type Parameters:
P -
Parameters:
target -
alias -
Returns:

with

HQLQuery with(EBoolean... condition)
Add conditions to the with clause

Parameters:
condition -
Returns:

fetch

HQLQuery fetch()
Add the "fetch" flag to the last defined join

Returns:

fetchAll

HQLQuery fetchAll()
Add the "fetch all properties" flag to the last defined join.

Returns:


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