|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.mysema.query.DefaultQueryMetadata
public class DefaultQueryMetadata
DefaultQueryMetadata is the default implementation of the QueryMetadata interface
| Constructor Summary | |
|---|---|
DefaultQueryMetadata()
|
|
| 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<? extends 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<? extends 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)
|
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultQueryMetadata()
| Method Detail |
|---|
public void addGroupBy(Expression<?>... o)
QueryMetadata
addGroupBy in interface QueryMetadatapublic void addHaving(Predicate... o)
QueryMetadata
addHaving in interface QueryMetadata
public void addJoin(JoinType joinType,
Expression<?> expr)
QueryMetadata
addJoin in interface QueryMetadatapublic void addJoin(JoinExpression join)
QueryMetadata
addJoin in interface QueryMetadatapublic void addJoinCondition(Predicate o)
QueryMetadata
addJoinCondition in interface QueryMetadatapublic void addOrderBy(OrderSpecifier<?>... o)
QueryMetadata
addOrderBy in interface QueryMetadatapublic void addProjection(Expression<?>... o)
QueryMetadata
addProjection in interface QueryMetadatapublic void addWhere(Predicate... o)
QueryMetadata
addWhere in interface QueryMetadatapublic void clearOrderBy()
QueryMetadata
clearOrderBy in interface QueryMetadatapublic void clearProjection()
QueryMetadata
clearProjection in interface QueryMetadatapublic void clearWhere()
QueryMetadata
clearWhere in interface QueryMetadatapublic QueryMetadata clone()
QueryMetadata
clone in interface QueryMetadataclone in class Objectpublic List<? extends Expression<?>> getGroupBy()
QueryMetadata
getGroupBy in interface QueryMetadatapublic Predicate getHaving()
QueryMetadata
getHaving in interface QueryMetadatapublic List<JoinExpression> getJoins()
QueryMetadata
getJoins in interface QueryMetadata@Nullable public QueryModifiers getModifiers()
QueryMetadata
getModifiers in interface QueryMetadatapublic Map<ParamExpression<?>,Object> getParams()
QueryMetadata
getParams in interface QueryMetadatapublic List<OrderSpecifier<?>> getOrderBy()
QueryMetadata
getOrderBy in interface QueryMetadatapublic List<? extends Expression<?>> getProjection()
QueryMetadata
getProjection in interface QueryMetadatapublic Predicate getWhere()
QueryMetadata
getWhere in interface QueryMetadatapublic boolean isDistinct()
QueryMetadata
isDistinct in interface QueryMetadatapublic boolean isUnique()
QueryMetadata
isUnique in interface QueryMetadatapublic void reset()
QueryMetadata
reset in interface QueryMetadatapublic void setDistinct(boolean distinct)
setDistinct in interface QueryMetadatapublic void setLimit(Long limit)
setLimit in interface QueryMetadata
public void setModifiers(@Nullable
QueryModifiers restriction)
setModifiers in interface QueryMetadatapublic void setOffset(Long offset)
setOffset in interface QueryMetadatapublic void setUnique(boolean unique)
setUnique in interface QueryMetadata
public <T> void setParam(ParamExpression<T> param,
T value)
setParam in interface QueryMetadatapublic void addFlag(QueryFlag flag)
addFlag in interface QueryMetadatapublic Set<QueryFlag> getFlags()
getFlags in interface QueryMetadatapublic boolean hasFlag(QueryFlag flag)
hasFlag in interface QueryMetadata
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||