Class QueryTree

java.lang.Object
io.jmix.data.impl.jpql.QueryTree

public class QueryTree extends Object
  • Field Details

    • queryString

      protected String queryString
    • model

      protected DomainModel model
    • idVarSelector

      protected IdVarSelector idVarSelector
    • tree

      protected org.antlr.runtime.tree.CommonTree tree
  • Constructor Details

  • Method Details

    • getModel

      public DomainModel getModel()
    • getQueryString

      public String getQueryString()
    • getQueryVariableContext

      public QueryVariableContext getQueryVariableContext()
    • getInvalidIdVarNodes

      public List<ErrorRec> getInvalidIdVarNodes()
    • getAstTree

      public org.antlr.runtime.tree.CommonTree getAstTree()
    • getVariableNameByEntity

      public String getVariableNameByEntity(String entityType)
    • getAstFromNode

      public org.antlr.runtime.tree.CommonTree getAstFromNode()
      Returns:
      returns tree for FROM statement
    • getAstIdentificationVariableNodes

      public Stream<IdentificationVariableNode> getAstIdentificationVariableNodes()
      Returns:
      returns list of identification variable nodes (entityName entityAlias) from FROM statement
    • getAstJoinVariableNodes

      public Stream<JoinVariableNode> getAstJoinVariableNodes()
      Returns:
      returns list of join variable nodes (JOIN entityName entityAlias ON clause) from FROM statement
    • getAstSelectedItemsNode

      public SelectedItemsNode getAstSelectedItemsNode()
      Returns:
      returns tree for SELECT statement
    • getAstSelectedNodes

      public Stream<SelectedItemNode> getAstSelectedNodes()
    • getAstSelectedPathNodes

      public Stream<PathNode> getAstSelectedPathNodes()
    • getAstWhereNode

      public WhereNode 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

      protected <T> Stream<T> generateChildrenByClass(org.antlr.runtime.tree.CommonTree commonTree, Class<T> clazz)