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

Type Parameters:
Q -
All Known Subinterfaces:
ColQuery
All Known Implementing Classes:
ColQueryImpl, LuceneQuery, SearchQuery, SimpleQueryAdapter

public interface SimpleQuery<Q extends SimpleQuery<Q>>

SimpleQuery defines a simple querying interface than Query

Author:
tiwe
See Also:
Query

Method Summary
 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(Param<T> param, T value)
          Set the given parameter to the given value
 Q where(EBoolean... e)
          Defines the filter constraints
 

Method Detail

where

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

Parameters:
e -
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 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(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.