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