Package com.querydsl.core
Interface SimpleQuery<Q extends SimpleQuery<Q>>
- Type Parameters:
Q- concrete subtype
- All Superinterfaces:
FilteredClause<Q>
- All Known Subinterfaces:
FetchableQuery<T,,Q> Query<Q>
SimpleQuery defines a simple querying interface than Query- Author:
- tiwe
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondistinct()Set the Query to return distinct resultslimit(@org.jetbrains.annotations.Range(from=0L, to=2147483647L) long limit) Set the limit / max results for the query resultsoffset(@org.jetbrains.annotations.Range(from=0L, to=2147483647L) long offset) Set the offset for the query resultsorderBy(OrderSpecifier<?>... o) Add order expressionsrestrict(QueryModifiers modifiers) Set both limit and offset of the query results<T> Qset(ParamExpression<T> param, T value) Set the given parameter to the given valueMethods inherited from interface com.querydsl.core.FilteredClause
where
-
Method Details
-
limit
Set the limit / max results for the query results- Parameters:
limit- max rows- Returns:
- the current object
-
offset
Set the offset for the query results- Parameters:
offset- row offset- Returns:
- the current object
-
restrict
Set both limit and offset of the query results- Parameters:
modifiers- query modifiers- Returns:
- the current object
-
orderBy
Add order expressions- Parameters:
o- order- Returns:
- the current object
-
set
Set the given parameter to the given value- Type Parameters:
T-- Parameters:
param- paramvalue- binding- Returns:
- the current object
-
distinct
Q distinct()Set the Query to return distinct results- Returns:
- the current object
-