Class QueryTreeAnalyzer

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

public class QueryTreeAnalyzer extends Object
  • Field Details

  • Constructor Details

    • QueryTreeAnalyzer

      public QueryTreeAnalyzer(QueryTree queryTree)
  • Method Details

    • getMainEntityName

      public String getMainEntityName(IdentificationVariableNode identificationVariable)
    • getMainEntityVariable

      public String getMainEntityVariable(IdentificationVariableNode identificationVariable)
    • getMainIdentificationVariableNode

      @Nullable public IdentificationVariableNode getMainIdentificationVariableNode()
    • getMainSelectedEntityName

      public String getMainSelectedEntityName(PathNode pathNode)
    • getMainSelectedEntityVariable

      public String getMainSelectedEntityVariable(PathNode pathNode)
    • getMainSelectedPathNode

      @Nullable public PathNode getMainSelectedPathNode()
    • getParamNames

      public Set<String> getParamNames()
    • getEntityNames

      public Set<String> getEntityNames()
    • getConditions

      public List<SimpleConditionNode> getConditions()
    • isQueryWithJoins

      public boolean isQueryWithJoins()
    • isConditionForEntityProperty

      public boolean isConditionForEntityProperty(SimpleConditionNode condition, String variableName, String property)
    • isConditionForParameter

      public boolean isConditionForParameter(SimpleConditionNode condition, String parameterName)
    • isConditionIN

      public boolean isConditionIN(SimpleConditionNode condition)
    • isConditionISNULL

      public boolean isConditionISNULL(SimpleConditionNode condition)
    • isConditionISNOTNULL

      public boolean isConditionISNOTNULL(SimpleConditionNode condition)
    • isVariablePathNode

      public boolean isVariablePathNode(PathNode pathNode)
    • generateChildrenByClass

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