com.mysema.query
Interface Query<Q extends Query<Q>>

All Known Subinterfaces:
HQLQuery, JDOQLQuery, SQLQuery
All Known Implementing Classes:
HibernateQuery, JDOQLQueryImpl, JPAQuery, SQLQueryImpl

public interface Query<Q extends Query<Q>>

Query provides a query interface of the fluent query DSL.

Note that the from method has been left out, since there are implementation specific variants of it.

Author:
tiwe
See Also:
SimpleQuery

Method Summary
 Q groupBy(Expr<?>... o)
          Defines the grouping/aggregation expressions
 Q having(EBoolean... o)
          Defines the filters for aggregation
 Q limit(long limit)
          Defines the limit / max results for the query results
 Q offset(long offset)
          Defines the offset for the query results
 Q orderBy(OrderSpecifier<?>... o)
          Defines the order expressions
 Q restrict(QueryModifiers mod)
          Defines both limit and offset of the query results
<T> Q
set(Param<T> param, T value)
          Set the given parameter to the given value
 Q where(EBoolean... o)
          Defines the filter constraints
 

Method Detail

where

Q where(EBoolean... o)
Defines the filter constraints

Parameters:
o -
Returns:

groupBy

Q groupBy(Expr<?>... o)
Defines the grouping/aggregation expressions

Parameters:
o -
Returns:

having

Q having(EBoolean... o)
Defines the filters for aggregation

Parameters:
o -
Returns:

orderBy

Q orderBy(OrderSpecifier<?>... o)
Defines the order expressions

Parameters:
o -
Returns:

limit

Q limit(@Nonnegative
        long limit)
Defines the limit / max results for the query results

Parameters:
limit -
Returns:

offset

Q offset(@Nonnegative
         long offset)
Defines the offset for the query results

Parameters:
offset -
Returns:

restrict

Q restrict(QueryModifiers mod)
Defines both limit and offset of the query results

Parameters:
mod -
Returns:

set

<T> Q set(Param<T> param,
          T value)
Set the given parameter to the given value

Type Parameters:
T -
Parameters:
param -
value -
Returns:


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