Q
- concrete subtypepublic interface SimpleQuery<Q extends SimpleQuery<Q>> extends FilteredClause<Q>
SimpleQuery
defines a simple querying interface than Query
Query
Modifier and Type | Method and Description |
---|---|
Q |
distinct()
Set the Query to return distinct results
|
Q |
limit(long limit)
Set the limit / max results for the query results
|
Q |
offset(long offset)
Set the offset for the query results
|
Q |
orderBy(OrderSpecifier<?>... o)
Add order expressions
|
Q |
restrict(QueryModifiers modifiers)
Set both limit and offset of the query results
|
<T> Q |
set(ParamExpression<T> param,
T value)
Set the given parameter to the given value
|
where
Q limit(@Nonnegative long limit)
limit
- max rowsQ offset(@Nonnegative long offset)
offset
- row offsetQ restrict(QueryModifiers modifiers)
modifiers
- query modifiersQ orderBy(OrderSpecifier<?>... o)
o
- order<T> Q set(ParamExpression<T> param, T value)
T
- param
- paramvalue
- bindingQ distinct()
Copyright © 2007–2015 Mysema Ltd. All rights reserved.