Package com.querydsl.core.support
Class QueryBase<Q extends QueryBase<Q>>
java.lang.Object
com.querydsl.core.support.QueryBase<Q>
- Type Parameters:
Q- concrete subtype
- Direct Known Subclasses:
FetchableQueryBase
QueryBase provides a stub for Query implementations- Author:
- tiwe
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringprotected final QueryMixin<Q> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondistinct()Set the Query to return distinct resultsbooleangroupBy(Expression<?> e) Add a single grouping expressiongroupBy(Expression<?>... o) Add grouping/aggregation expressionsinthashCode()Add a single filter for aggregationAdd filters for aggregationlimit(@org.jetbrains.annotations.Range(from=0L, to=2147483647L) long limit) Defines the limit / max results for the query resultsoffset(long offset) Defines the offset for the query resultsorderBy(OrderSpecifier<?> o) Add a single order expressionorderBy(OrderSpecifier<?>... o) Add order expressionsrestrict(QueryModifiers modifiers) Defines both limit and offset of the query results, useQueryModifiers.EMPTYto apply no paging.<P> Qset(ParamExpression<P> param, P value) Set the given parameter to the given valuetoString()Add the given filter conditionAdd the given filter conditions
-
Field Details
-
MDC_QUERY
- See Also:
-
MDC_PARAMETERS
- See Also:
-
queryMixin
-
-
Constructor Details
-
QueryBase
-
-
Method Details
-
distinct
Set the Query to return distinct results- Returns:
- the current object
-
groupBy
Add a single grouping expression- Parameters:
e- group by expression- Returns:
- the current object
-
groupBy
Add grouping/aggregation expressions- Parameters:
o- group by expressions- Returns:
- the current object
-
having
Add a single filter for aggregation- Parameters:
e- having condition- Returns:
- the current object
-
having
Add filters for aggregation- Parameters:
o- having conditions- Returns:
- the current object
-
orderBy
Add a single order expression- Parameters:
o- order- Returns:
- the current object
-
orderBy
Add order expressions- Parameters:
o- order- Returns:
- the current object
-
where
Add the given filter conditionSkips null arguments
- Parameters:
o- filter conditions to be added- Returns:
- the current object
-
where
Add the given filter conditionsSkips null arguments
- Parameters:
o- filter conditions to be added- Returns:
- the current object
-
limit
Defines the limit / max results for the query results- Parameters:
limit- max rows- Returns:
- the current object
-
offset
Defines the offset for the query results- Parameters:
offset- row offset- Returns:
- the current object
-
restrict
Defines both limit and offset of the query results, useQueryModifiers.EMPTYto apply no paging.- Parameters:
modifiers- query modifiers- Returns:
- the current object
-
set
Set the given parameter to the given value- Type Parameters:
P-- Parameters:
param- paramvalue- binding- Returns:
- the current object
-
equals
-
hashCode
public int hashCode() -
toString
-