Package org.teiid.translator.jpa
Class JPQLSelectVisitor
- java.lang.Object
-
- org.teiid.language.visitor.AbstractLanguageVisitor
-
- org.teiid.language.visitor.HierarchyVisitor
-
- org.teiid.translator.jpa.JPQLSelectVisitor
-
- All Implemented Interfaces:
LanguageObjectVisitor
public class JPQLSelectVisitor extends HierarchyVisitor
This visitor converts the Teiid command into JPQL string
-
-
Field Summary
Fields Modifier and Type Field Description protected AtomicInteger
aliasCounter
protected ArrayList<TranslatorException>
exceptions
protected JPA2ExecutionFactory
executionFactory
protected LinkedHashMap<String,NamedTable>
implicitGroups
protected RuntimeMetadata
metadata
protected static String
UNDEFINED
-
Constructor Summary
Constructors Constructor Description JPQLSelectVisitor(JPA2ExecutionFactory executionFactory, RuntimeMetadata metadata)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static String
getJPQLString(Select obj, JPA2ExecutionFactory executionFactory, RuntimeMetadata metadata)
void
visit(ColumnReference obj)
void
visit(Join obj)
void
visit(NamedTable obj)
void
visit(Select obj)
-
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, visit, visit, visit, visit, visit, visit, visit, visit
-
Methods inherited from class org.teiid.language.visitor.AbstractLanguageVisitor
visit, visit, visit, visit, visit, visitNode, visitNodes, visitNodes
-
-
-
-
Field Detail
-
executionFactory
protected JPA2ExecutionFactory executionFactory
-
UNDEFINED
protected static final String UNDEFINED
- See Also:
- Constant Field Values
-
exceptions
protected ArrayList<TranslatorException> exceptions
-
implicitGroups
protected LinkedHashMap<String,NamedTable> implicitGroups
-
aliasCounter
protected AtomicInteger aliasCounter
-
metadata
protected RuntimeMetadata metadata
-
-
Constructor Detail
-
JPQLSelectVisitor
public JPQLSelectVisitor(JPA2ExecutionFactory executionFactory, RuntimeMetadata metadata)
-
-
Method Detail
-
getJPQLString
public static String getJPQLString(Select obj, JPA2ExecutionFactory executionFactory, RuntimeMetadata metadata) throws TranslatorException
- Throws:
TranslatorException
-
visit
public void visit(Select 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
-
visit
public void visit(NamedTable obj)
- Specified by:
visit
in interfaceLanguageObjectVisitor
- Overrides:
visit
in classAbstractLanguageVisitor
-
visit
public void visit(Join obj)
- Specified by:
visit
in interfaceLanguageObjectVisitor
- Overrides:
visit
in classHierarchyVisitor
-
-