|
||||||||||
| 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 |
addFrom(Expr<?>... o)
Add the given query sources |
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 |
List<? extends Expr<?>> |
getGroupBy()
Get the group by expressions |
EBoolean |
getHaving()
Get the having expressions |
List<JoinExpression> |
getJoins()
Get the query joins |
QueryModifiers |
getModifiers()
Get the QueryModifiers |
List<OrderSpecifier<?>> |
getOrderBy()
Get the OrderSpecifiers |
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 |
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)
|
void |
setUnique(boolean unique)
|
| Method Detail |
|---|
void addFrom(Expr<?>... o)
o - 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()
List<? extends Expr<?>> getGroupBy()
@Nullable EBoolean getHaving()
List<JoinExpression> getJoins()
@Nullable QueryModifiers getModifiers()
List<OrderSpecifier<?>> getOrderBy()
List<? extends Expr<?>> getProjection()
@Nullable EBoolean 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 -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||