|
||||||||||
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(Expr<?>... o)
Add the given group by expressions |
|
void |
addHaving(EBoolean... o)
Add the given having expressions |
|
void |
addJoin(JoinType joinType,
Expr<?> expr)
Add the given query join |
|
void |
addJoinCondition(EBoolean o)
Add the given join condition to the last given join |
|
void |
addOrderBy(OrderSpecifier<?>... o)
Add the given order specifiers |
|
void |
addProjection(Expr<?>... o)
Add the given projections |
|
void |
addWhere(EBoolean... 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<? extends Expr<?>> |
getGroupBy()
Get the group by expressions |
|
EBoolean |
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<Param<?>,java.lang.Object> |
getParams()
Get the parameters |
|
java.util.List<? extends Expr<?>> |
getProjection()
Get the projection |
|
EBoolean |
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)
|
|
|
setParam(Param<T> param,
T value)
|
|
void |
setUnique(boolean unique)
|
Method Detail |
---|
void addGroupBy(Expr<?>... o)
o
- void addHaving(EBoolean... o)
o
- void addJoin(JoinType joinType, Expr<?> expr)
joinType
- expr
- void addJoinCondition(EBoolean o)
o
- void addOrderBy(OrderSpecifier<?>... o)
o
- void addProjection(Expr<?>... o)
o
- void addWhere(EBoolean... o)
o
- void clearOrderBy()
void clearProjection()
void clearWhere()
QueryMetadata clone()
java.util.List<? extends Expr<?>> getGroupBy()
@Nullable EBoolean getHaving()
java.util.List<JoinExpression> getJoins()
@Nullable QueryModifiers getModifiers()
java.util.List<OrderSpecifier<?>> getOrderBy()
java.util.List<? extends Expr<?>> getProjection()
java.util.Map<Param<?>,java.lang.Object> getParams()
@Nullable EBoolean 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(Param<T> param, T value)
T
- param
- value
- void addFlag(QueryFlag flag)
flag
- boolean hasFlag(QueryFlag flag)
flag
-
java.util.Set<QueryFlag> getFlags()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |