public class DsqlQuery extends Object implements Query
Representation of the DSQL query.
It is highly recommended for translating it define your own DefaultQueryVisitor and DefaultOperatorVisitor.
| Modifier and Type | Field and Description |
|---|---|
protected Direction |
direction
Direction to determine the ascending or descending sorting
|
protected List<Field> |
fields
Fields to be retrieved
|
protected Expression |
filterExpression
Expression which contains the filter conditions
|
protected Expression |
joinExpression
Expression for joining the different types
|
protected int |
limit |
protected int |
offset |
protected List<Field> |
orderByFields
Fields for sorting the query
|
protected List<Type> |
types
Type or types to be queried
|
| Constructor and Description |
|---|
DsqlQuery() |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(QueryVisitor queryVisitor) |
void |
addField(Field field) |
void |
addOrderField(Field orderByField) |
void |
addType(Type type) |
Direction |
getDirection() |
List<Field> |
getFields() |
Expression |
getFilterExpression() |
Expression |
getJoinExpression() |
int |
getLimit() |
int |
getOffset() |
List<Field> |
getOrderByFields() |
List<Type> |
getTypes() |
boolean |
hasDirection() |
void |
setDirection(Direction direction) |
void |
setFilterExpression(Expression filterExpression) |
void |
setJoinExpression(Expression joinExpression) |
void |
setLimit(int limit) |
void |
setOffset(int offset) |
protected Direction direction
protected Expression filterExpression
protected Expression joinExpression
protected int limit
protected int offset
public List<Field> getOrderByFields()
getOrderByFields in interface Querypublic Direction getDirection()
getDirection in interface Querypublic Expression getFilterExpression()
getFilterExpression in interface Querypublic Expression getJoinExpression()
getJoinExpression in interface Querypublic void addOrderField(Field orderByField)
addOrderField in interface Querypublic void setDirection(Direction direction)
setDirection in interface Querypublic void setFilterExpression(Expression filterExpression)
setFilterExpression in interface Querypublic void setJoinExpression(Expression joinExpression)
setJoinExpression in interface Querypublic void accept(QueryVisitor queryVisitor)
public boolean hasDirection()
hasDirection in interface QueryCopyright © 2015 MuleSoft, Inc.. All rights reserved.