public interface QueryMetadata
extends java.io.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
|
java.util.Set<QueryFlag> |
getFlags() |
java.util.List<Expression<?>> |
getGroupBy()
Get the group by expressions
|
Predicate |
getHaving()
Get the having expressions
|
java.util.List<JoinExpression> |
getJoins()
Get the query joins
|
QueryModifiers |
getModifiers()
Get the QueryModifiers
|
java.util.List<OrderSpecifier<?>> |
getOrderBy()
Get the OrderSpecifiers
|
java.util.Map<ParamExpression<?>,java.lang.Object> |
getParams()
Get the parameters
|
java.util.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 |
reset()
Reset the projection
|
void |
setDistinct(boolean distinct) |
void |
setLimit(java.lang.Long limit) |
void |
setModifiers(QueryModifiers restriction) |
void |
setOffset(java.lang.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()
java.util.List<Expression<?>> getGroupBy()
Predicate getHaving()
java.util.List<JoinExpression> getJoins()
QueryModifiers getModifiers()
java.util.List<OrderSpecifier<?>> getOrderBy()
java.util.List<Expression<?>> getProjection()
java.util.Map<ParamExpression<?>,java.lang.Object> getParams()
@Nullable Predicate getWhere()
boolean isDistinct()
boolean isUnique()
void reset()
void setDistinct(boolean distinct)
distinct
- void setLimit(@Nullable java.lang.Long limit)
limit
- void setModifiers(QueryModifiers restriction)
restriction
- void setOffset(@Nullable java.lang.Long offset)
offset
- 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
- java.util.Set<QueryFlag> getFlags()
void setValidate(boolean v)
v
- Copyright © 2007-2013 Mysema Ltd. All Rights Reserved.