|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface QueryMetadata
QueryMetadata defines query metadata such as query sources, filtering conditions and the projection
| Method Summary | ||
|---|---|---|
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(JoinExpression... join)
Add the given query join |
|
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 |
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 |
reset()
Reset the projection |
|
void |
setDistinct(boolean distinct)
|
|
void |
setLimit(Long limit)
|
|
void |
setModifiers(QueryModifiers restriction)
|
|
void |
setOffset(Long offset)
|
|
|
setParam(ParamExpression<T> param,
T value)
|
|
void |
setUnique(boolean unique)
|
|
void |
setValidate(boolean v)
|
|
| Method Detail |
|---|
void addGroupBy(Expression<?>... o)
o - void addHaving(Predicate... o)
o -
void addJoin(JoinType joinType,
Expression<?> expr)
joinType - expr - void addJoin(JoinExpression... join)
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 setLimit(@Nullable
Long limit)
limit - void setModifiers(QueryModifiers restriction)
restriction -
void setOffset(@Nullable
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 -
Set<QueryFlag> getFlags()
void setValidate(boolean v)
v -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||