public interface QueryMetadata extends Serializable
Modifier and Type | Method and Description |
---|---|
void |
addFlag(QueryFlag 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 |
addProjection(Expression<?> o)
Add the given projections
|
void |
addWhere(Predicate o)
Add the given where expressions
|
void |
clearOrderBy()
Clear the order expressions
|
void |
clearProjection()
Clear the projection
|
void |
clearWhere()
Clear the where expressions
|
QueryMetadata |
clone()
Clone this QueryMetadata instance
|
Set<QueryFlag> |
getFlags() |
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 parameters
|
List<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) |
boolean |
isDistinct()
Get whether the projection is distinct
|
boolean |
isUnique()
Get whether the projection is unique
|
void |
removeFlag(QueryFlag flag) |
void |
reset()
Reset the projection
|
void |
setDistinct(boolean distinct) |
void |
setLimit(Long limit) |
void |
setModifiers(QueryModifiers restriction) |
void |
setOffset(Long offset) |
<T> void |
setParam(ParamExpression<T> param,
T value) |
void |
setUnique(boolean unique) |
void |
setValidate(boolean v) |
void addGroupBy(Expression<?> o)
o
- void addHaving(Predicate o)
o
- void addJoin(JoinType joinType, Expression<?> expr)
joinType
- expr
- void addJoinFlag(JoinFlag flag)
flag
- void addJoinCondition(Predicate o)
o
- void addOrderBy(OrderSpecifier<?> o)
o
- void addProjection(Expression<?> o)
o
- void addWhere(Predicate o)
o
- void clearOrderBy()
void clearProjection()
void clearWhere()
QueryMetadata clone()
List<Expression<?>> getGroupBy()
Predicate getHaving()
List<JoinExpression> getJoins()
QueryModifiers getModifiers()
List<OrderSpecifier<?>> getOrderBy()
List<Expression<?>> getProjection()
Map<ParamExpression<?>,Object> getParams()
@Nullable Predicate getWhere()
boolean isDistinct()
boolean isUnique()
void reset()
void setDistinct(boolean distinct)
distinct
- void setModifiers(QueryModifiers restriction)
restriction
- void setUnique(boolean unique)
unique
- <T> void setParam(ParamExpression<T> param, T value)
T
- param
- value
- void addFlag(QueryFlag flag)
flag
- boolean hasFlag(QueryFlag flag)
flag
- void removeFlag(QueryFlag flag)
flag
- void setValidate(boolean v)
v
- Copyright © 2007–2015 Mysema Ltd. All rights reserved.