org.mule.common.query
Class DsqlQuery

java.lang.Object
  extended by org.mule.common.query.DsqlQuery
All Implemented Interfaces:
Query

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.

Author:
Mulesoft, Inc

Field Summary
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 Summary
DsqlQuery()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

types

protected List<Type> types
Type or types to be queried


fields

protected List<Field> fields
Fields to be retrieved


orderByFields

protected List<Field> orderByFields
Fields for sorting the query


direction

protected Direction direction
Direction to determine the ascending or descending sorting


filterExpression

protected Expression filterExpression
Expression which contains the filter conditions


joinExpression

protected Expression joinExpression
Expression for joining the different types


limit

protected int limit

offset

protected int offset
Constructor Detail

DsqlQuery

public DsqlQuery()
Method Detail

getFields

public List<Field> getFields()
Specified by:
getFields in interface Query

getOrderByFields

public List<Field> getOrderByFields()
Specified by:
getOrderByFields in interface Query

getDirection

public Direction getDirection()
Specified by:
getDirection in interface Query

getFilterExpression

public Expression getFilterExpression()
Specified by:
getFilterExpression in interface Query

getTypes

public List<Type> getTypes()
Specified by:
getTypes in interface Query

getJoinExpression

public Expression getJoinExpression()
Specified by:
getJoinExpression in interface Query

getLimit

public int getLimit()
Specified by:
getLimit in interface Query

getOffset

public int getOffset()
Specified by:
getOffset in interface Query

addType

public void addType(Type type)
Specified by:
addType in interface Query

addField

public void addField(Field field)
Specified by:
addField in interface Query

addOrderField

public void addOrderField(Field orderByField)
Specified by:
addOrderField in interface Query

setDirection

public void setDirection(Direction direction)
Specified by:
setDirection in interface Query

setFilterExpression

public void setFilterExpression(Expression filterExpression)
Specified by:
setFilterExpression in interface Query

setJoinExpression

public void setJoinExpression(Expression joinExpression)
Specified by:
setJoinExpression in interface Query

setLimit

public void setLimit(int limit)
Specified by:
setLimit in interface Query

setOffset

public void setOffset(int offset)
Specified by:
setOffset in interface Query

accept

public void accept(QueryVisitor queryVisitor)
Specified by:
accept in interface Query

hasDirection

public boolean hasDirection()
Specified by:
hasDirection in interface Query


Copyright © 2014. All rights reserved.