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

Type Parameters:
Q - concrete subtype
All Superinterfaces:
FilteredClause<Q>
All Known Subinterfaces:
ColQuery, JDOQLCommonQuery<Q>, JDOQLQuery, JPQLCommonQuery<Q>, JPQLQuery, Query<Q>, SQLCommonQuery<Q>, SQLQuery
All Known Implementing Classes:
AbstractLuceneQuery, ColQueryImpl, HibernateQuery, HibernateSQLQuery, HibernateSubQuery, JDOQLQueryImpl, JDOQLSubQuery, JDOSQLQuery, JPAQuery, JPASQLQuery, JPASubQuery, JPQLSubQuery, LuceneQuery, MongodbQuery, MorphiaQuery, MySQLQuery, OracleQuery, PostgresQuery, SearchQuery, SimpleProjectableAdapter, SimpleQueryAdapter, SQLQueryImpl, SQLServerQuery, SQLSubQuery, TypedQuery

public interface SimpleQuery<Q extends SimpleQuery<Q>>
extends FilteredClause<Q>

SimpleQuery defines a simple querying interface than Query

Author:
tiwe
See Also:
Query

Method Summary
 Q distinct()
          Set the Query to return distinct results
 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 modifiers)
          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

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 modifiers)
Defines both limit and offset of the query results

Parameters:
modifiers -
Returns:

orderBy

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

Parameters:
o -
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-2012 Mysema Ltd. All Rights Reserved.