public interface QueryMetadata extends Serializable
QueryMetadata
defines query metadata such as query sources, filtering
conditions and the projectionModifier and Type | Method and Description |
---|---|
void |
addFlag(QueryFlag flag)
Add the given query flag
|
void |
addGroupBy(Expression<?> o)
Add the given group by expressions
|
void |
addHaving(Predicate o)
Add the given having expressions
|
void |
addJoin(JoinType joinType,
Expression<?> expr)
Add the given query join
|
void |
addJoinCondition(Predicate o)
Add the given join condition to the last given join
|
void |
addJoinFlag(JoinFlag flag)
Add the given join flag to the last given join
|
void |
addOrderBy(OrderSpecifier<?> o)
Add the given order specifiers
|
void |
addWhere(Predicate o)
Add the given where expressions
|
void |
clearOrderBy()
Clear the order expressions
|
void |
clearWhere()
Clear the where expressions
|
QueryMetadata |
clone()
Clone this QueryMetadata instance
|
Set<QueryFlag> |
getFlags()
Get all query flags
|
List<Expression<?>> |
getGroupBy()
Get the group by expressions
|
Predicate |
getHaving()
Get the having expressions
|
List<JoinExpression> |
getJoins()
Get the query joins
|
QueryModifiers |
getModifiers()
Get the QueryModifiers
|
List<OrderSpecifier<?>> |
getOrderBy()
Get the OrderSpecifiers
|
Map<ParamExpression<?>,Object> |
getParams()
Get the parameter bindings
|
Expression<?> |
getProjection()
Get the projection
|
Predicate |
getWhere()
Get the expressions aggregated into a single boolean expression or null,
if none where defined
|
boolean |
hasFlag(QueryFlag flag)
Return whether the given query flag is applied
|
boolean |
isDistinct()
Get whether the projection is distinct
|
boolean |
isUnique()
Get whether the projection is unique
|
void |
removeFlag(QueryFlag flag)
Remove the given query flag
|
void |
reset()
Reset the projection
|
void |
setDistinct(boolean distinct)
Set the distinct flag
|
void |
setLimit(Long limit)
Set the maximum number of rows
|
void |
setModifiers(QueryModifiers restriction)
Set the query modifiers limit and offset
|
void |
setOffset(Long offset)
Set the number of skipped rows
|
<T> void |
setParam(ParamExpression<T> param,
T value)
Bind the value for the given parameter expression
|
void |
setProjection(Expression<?> o)
Set the projection
|
void |
setUnique(boolean unique)
Set the unique flag
|
void |
setValidate(boolean v)
Set the validate flag
|
void addGroupBy(Expression<?> o)
o
- group by expressionsvoid addHaving(Predicate o)
o
- having conditionsvoid addJoin(JoinType joinType, Expression<?> expr)
joinType
- type of joinexpr
- join targetvoid addJoinFlag(JoinFlag flag)
flag
- join flagvoid addJoinCondition(Predicate o)
o
- join conditionvoid addOrderBy(OrderSpecifier<?> o)
o
- ordervoid addWhere(Predicate o)
o
- where conditionvoid clearOrderBy()
void clearWhere()
QueryMetadata clone()
List<Expression<?>> getGroupBy()
@Nullable Predicate getHaving()
List<JoinExpression> getJoins()
QueryModifiers getModifiers()
List<OrderSpecifier<?>> getOrderBy()
@Nullable Expression<?> getProjection()
Map<ParamExpression<?>,Object> getParams()
@Nullable Predicate getWhere()
boolean isDistinct()
boolean isUnique()
void reset()
void setDistinct(boolean distinct)
distinct
- distinctvoid setLimit(@Nullable Long limit)
limit
- limitvoid setModifiers(QueryModifiers restriction)
restriction
- restrictionvoid setOffset(@Nullable Long offset)
offset
- offsetvoid setUnique(boolean unique)
unique
- unique<T> void setParam(ParamExpression<T> param, T value)
T
- binding typeparam
- parametervalue
- bindingvoid setProjection(Expression<?> o)
o
- projectionvoid addFlag(QueryFlag flag)
flag
- query flagboolean hasFlag(QueryFlag flag)
flag
- query flagvoid removeFlag(QueryFlag flag)
flag
- query flagvoid setValidate(boolean v)
v
- validateCopyright © 2007–2016 Querydsl. All rights reserved.