Package io.jmix.data.impl.jpql
Class QueryTree
java.lang.Object
io.jmix.data.impl.jpql.QueryTree
-
Field Summary
Modifier and TypeFieldDescriptionprotected IdVarSelector
protected DomainModel
protected String
protected org.antlr.runtime.tree.CommonTree
-
Constructor Summary
ConstructorDescriptionQueryTree
(DomainModel model, String query) QueryTree
(DomainModel model, String query, boolean failOnErrors) -
Method Summary
Modifier and TypeMethodDescriptionprotected <T> Stream<T>
generateChildrenByClass
(org.antlr.runtime.tree.CommonTree commonTree, Class<T> clazz) org.antlr.runtime.tree.CommonTree
org.antlr.runtime.tree.Tree
org.antlr.runtime.tree.Tree
org.antlr.runtime.tree.CommonTree
getModel()
getVariableNameByEntity
(String entityType) <T extends org.antlr.runtime.tree.TreeVisitorAction>
Tvisit
(T visitor)
-
Field Details
-
queryString
-
model
-
idVarSelector
-
tree
protected org.antlr.runtime.tree.CommonTree tree
-
-
Constructor Details
-
QueryTree
-
QueryTree
-
-
Method Details
-
getModel
-
getQueryString
-
getQueryVariableContext
-
getInvalidIdVarNodes
-
getAstTree
public org.antlr.runtime.tree.CommonTree getAstTree() -
getVariableNameByEntity
-
getAstFromNode
public org.antlr.runtime.tree.CommonTree getAstFromNode()- Returns:
- returns tree for FROM statement
-
getAstIdentificationVariableNodes
- Returns:
- returns list of identification variable nodes (entityName entityAlias) from FROM statement
-
getAstJoinVariableNodes
- Returns:
- returns list of join variable nodes (JOIN entityName entityAlias ON clause) from FROM statement
-
getAstSelectedItemsNode
- Returns:
- returns tree for SELECT statement
-
getAstSelectedNodes
-
getAstSelectedPathNodes
-
getAstWhereNode
- Returns:
- returns tree for WHERE statement
-
getAstGroupByNode
public org.antlr.runtime.tree.Tree getAstGroupByNode()- Returns:
- returns tree for GROUP BY statement
-
getAstOrderByNode
public org.antlr.runtime.tree.Tree getAstOrderByNode()- Returns:
- returns tree for ORDER BY statement
-
visit
public <T extends org.antlr.runtime.tree.TreeVisitorAction> T visit(T visitor) -
generateChildrenByClass
-