public class SimpleSyntaxVisitor
extends org.mule.common.query.DefaultQueryVisitor
Visitor used for translate DSQL to an simple query sintax
Constructor and Description |
---|
SimpleSyntaxVisitor() |
Modifier and Type | Method and Description |
---|---|
String |
toSimpleQuery() |
void |
visitAnd() |
void |
visitBeginExpression() |
void |
visitComparison(String operator,
org.mule.common.query.Field field,
org.mule.common.query.expression.Value<?> value)
This method translate an Dsql comparison
|
void |
visitEndPrecedence()
Precedence delimiter. end.
|
void |
visitFields(List<org.mule.common.query.Field> fields) |
void |
visitInitPrecedence()
Precedence delimiter. init.
|
void |
visitOR() |
void |
visitTypes(List<org.mule.common.query.Type> types) |
public void visitFields(List<org.mule.common.query.Field> fields)
visitFields
in interface org.mule.common.query.QueryVisitor
visitFields
in class org.mule.common.query.DefaultQueryVisitor
public void visitTypes(List<org.mule.common.query.Type> types)
visitTypes
in interface org.mule.common.query.QueryVisitor
visitTypes
in class org.mule.common.query.DefaultQueryVisitor
public void visitAnd()
visitAnd
in interface org.mule.common.query.QueryVisitor
visitAnd
in class org.mule.common.query.DefaultQueryVisitor
public void visitOR()
visitOR
in interface org.mule.common.query.QueryVisitor
visitOR
in class org.mule.common.query.DefaultQueryVisitor
public void visitBeginExpression()
visitBeginExpression
in interface org.mule.common.query.QueryVisitor
visitBeginExpression
in class org.mule.common.query.DefaultQueryVisitor
public void visitComparison(String operator, org.mule.common.query.Field field, org.mule.common.query.expression.Value<?> value)
visitComparison
in interface org.mule.common.query.QueryVisitor
visitComparison
in class org.mule.common.query.DefaultQueryVisitor
operator
- already translated operator.field
- field to compare.value
- value to compare.public void visitInitPrecedence()
visitInitPrecedence
in interface org.mule.common.query.QueryVisitor
visitInitPrecedence
in class org.mule.common.query.DefaultQueryVisitor
public void visitEndPrecedence()
visitEndPrecedence
in interface org.mule.common.query.QueryVisitor
visitEndPrecedence
in class org.mule.common.query.DefaultQueryVisitor
public String toSimpleQuery()
Copyright © 2010–2017. All rights reserved.