Package org.teiid.translator.odata
Class ODataSQLVisitor
- java.lang.Object
-
- org.teiid.language.visitor.AbstractLanguageVisitor
-
- org.teiid.language.visitor.HierarchyVisitor
-
- org.teiid.translator.odata.ODataSQLVisitor
-
- All Implemented Interfaces:
LanguageObjectVisitor
- Direct Known Subclasses:
ODataUpdateVisitor
public class ODataSQLVisitor extends HierarchyVisitor
-
-
Field Summary
Fields Modifier and Type Field Description protected QueryExpression
command
protected ArrayList<TranslatorException>
exceptions
protected ODataExecutionFactory
executionFactory
protected StringBuilder
filter
protected RuntimeMetadata
metadata
protected ArrayList<Column>
selectColumns
-
Constructor Summary
Constructors Constructor Description ODataSQLVisitor(ODataExecutionFactory executionFactory, RuntimeMetadata metadata)
-
Method Summary
-
Methods inherited from class org.teiid.language.visitor.HierarchyVisitor
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit
-
Methods inherited from class org.teiid.language.visitor.AbstractLanguageVisitor
visit, visit, visit, visitNode, visitNodes, visitNodes
-
-
-
-
Field Detail
-
exceptions
protected ArrayList<TranslatorException> exceptions
-
command
protected QueryExpression command
-
executionFactory
protected ODataExecutionFactory executionFactory
-
metadata
protected RuntimeMetadata metadata
-
filter
protected StringBuilder filter
-
-
Constructor Detail
-
ODataSQLVisitor
public ODataSQLVisitor(ODataExecutionFactory executionFactory, RuntimeMetadata metadata)
-
-
Method Detail
-
getSelect
public Column[] getSelect()
-
isCount
public boolean isCount()
-
isKeyLookup
public boolean isKeyLookup()
-
getEnityTable
public Table getEnityTable()
-
getEnitityURL
public String getEnitityURL()
-
buildURL
public String buildURL()
-
visit
public void visit(Comparison obj)
- Specified by:
visit
in interfaceLanguageObjectVisitor
- Overrides:
visit
in classHierarchyVisitor
-
visitComparisonWithBooleanFunction
public void visitComparisonWithBooleanFunction(Comparison obj)
-
appendRightComparison
protected void appendRightComparison(Comparison obj)
-
visit
public void visit(AndOr obj)
- Specified by:
visit
in interfaceLanguageObjectVisitor
- Overrides:
visit
in classHierarchyVisitor
-
visit
public void visit(ColumnReference obj)
- Specified by:
visit
in interfaceLanguageObjectVisitor
- Overrides:
visit
in classAbstractLanguageVisitor
-
isInfixFunction
protected boolean isInfixFunction(String function)
-
visit
public void visit(Function obj)
- Specified by:
visit
in interfaceLanguageObjectVisitor
- Overrides:
visit
in classHierarchyVisitor
-
visit
public void visit(NamedTable obj)
- Specified by:
visit
in interfaceLanguageObjectVisitor
- Overrides:
visit
in classAbstractLanguageVisitor
-
visit
public void visit(IsNull obj)
- Specified by:
visit
in interfaceLanguageObjectVisitor
- Overrides:
visit
in classHierarchyVisitor
-
visit
public void visit(Join obj)
- Specified by:
visit
in interfaceLanguageObjectVisitor
- Overrides:
visit
in classHierarchyVisitor
-
visit
public void visit(Limit obj)
- Specified by:
visit
in interfaceLanguageObjectVisitor
- Overrides:
visit
in classAbstractLanguageVisitor
-
visit
public void visit(Literal obj)
- Specified by:
visit
in interfaceLanguageObjectVisitor
- Overrides:
visit
in classAbstractLanguageVisitor
-
visit
public void visit(Not obj)
- Specified by:
visit
in interfaceLanguageObjectVisitor
- Overrides:
visit
in classHierarchyVisitor
-
visit
public void visit(OrderBy obj)
- Specified by:
visit
in interfaceLanguageObjectVisitor
- Overrides:
visit
in classHierarchyVisitor
-
visit
public void visit(SortSpecification obj)
- Specified by:
visit
in interfaceLanguageObjectVisitor
- Overrides:
visit
in classHierarchyVisitor
-
visit
public void visit(Select obj)
- Specified by:
visit
in interfaceLanguageObjectVisitor
- Overrides:
visit
in classHierarchyVisitor
-
visit
public void visit(DerivedColumn obj)
- Specified by:
visit
in interfaceLanguageObjectVisitor
- Overrides:
visit
in classHierarchyVisitor
-
append
public void append(LanguageObject obj)
-
append
protected void append(List<? extends LanguageObject> items)
-
append
protected void append(LanguageObject[] items)
-
-