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

All Superinterfaces:
FilteredClause<Q>
All Known Subinterfaces:
JDOQLCommonQuery<Q>, JDOQLQuery, JPQLCommonQuery<Q>, JPQLQuery, SQLCommonQuery<Q>, SQLQuery
All Known Implementing Classes:
HibernateQuery, HibernateSQLQuery, HibernateSubQuery, JDOQLQueryImpl, JDOQLSubQuery, JDOSQLQuery, JPAQuery, JPASQLQuery, JPASubQuery, JPQLSubQuery, SQLQueryImpl, SQLSubQuery

public interface Query<Q extends Query<Q>>
extends FilteredClause<Q>

Query defines the main query interface of the fluent query language.

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 distinct()
          Set the Query to return distinct results
 Q groupBy(Expression<?>... o)
          Defines the grouping/aggregation expressions
 Q having(Predicate... 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(ParamExpression<T> param, T value)
          Set the given parameter to the given value
 
Methods inherited from interface com.mysema.query.FilteredClause
where
 

Method Detail

groupBy

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

Parameters:
o -
Returns:

having

Q having(Predicate... 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(ParamExpression<T> param,
          T value)
Set the given parameter to the given value

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

distinct

Q distinct()
Set the Query to return distinct results

Returns:


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