mirror of
https://github.com/querydsl/querydsl.git
synced 2026-06-30 21:08:30 +08:00
#842360 : made Query extend SimpleQuery
This commit is contained in:
parent
e0cac6eab9
commit
0a19471307
@ -5,11 +5,7 @@
|
||||
*/
|
||||
package com.mysema.query;
|
||||
|
||||
import javax.annotation.Nonnegative;
|
||||
|
||||
import com.mysema.query.types.Expression;
|
||||
import com.mysema.query.types.OrderSpecifier;
|
||||
import com.mysema.query.types.ParamExpression;
|
||||
import com.mysema.query.types.Predicate;
|
||||
|
||||
/**
|
||||
@ -21,7 +17,7 @@ import com.mysema.query.types.Predicate;
|
||||
* @author tiwe
|
||||
* @see SimpleQuery
|
||||
*/
|
||||
public interface Query<Q extends Query<Q>> extends FilteredClause<Q>{
|
||||
public interface Query<Q extends Query<Q>> extends SimpleQuery<Q>{
|
||||
|
||||
/**
|
||||
* Defines the grouping/aggregation expressions
|
||||
@ -38,54 +34,5 @@ public interface Query<Q extends Query<Q>> extends FilteredClause<Q>{
|
||||
* @return
|
||||
*/
|
||||
Q having(Predicate... o);
|
||||
|
||||
/**
|
||||
* Defines the order expressions
|
||||
*
|
||||
* @param o
|
||||
* @return
|
||||
*/
|
||||
Q orderBy(OrderSpecifier<?>... o);
|
||||
|
||||
/**
|
||||
* Defines the limit / max results for the query results
|
||||
*
|
||||
* @param limit
|
||||
* @return
|
||||
*/
|
||||
Q limit(@Nonnegative long limit);
|
||||
|
||||
/**
|
||||
* Defines the offset for the query results
|
||||
*
|
||||
* @param offset
|
||||
* @return
|
||||
*/
|
||||
Q offset(@Nonnegative long offset);
|
||||
|
||||
/**
|
||||
* Defines both limit and offset of the query results
|
||||
*
|
||||
* @param mod
|
||||
* @return
|
||||
*/
|
||||
Q restrict(QueryModifiers mod);
|
||||
|
||||
/**
|
||||
* Set the given parameter to the given value
|
||||
*
|
||||
* @param <T>
|
||||
* @param param
|
||||
* @param value
|
||||
* @return
|
||||
*/
|
||||
<T> Q set(ParamExpression<T> param, T value);
|
||||
|
||||
/**
|
||||
* Set the Query to return distinct results
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
Q distinct();
|
||||
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user