Class QueryTreeTransformer

java.lang.Object
io.jmix.data.impl.jpql.transform.QueryTreeTransformer

public class QueryTreeTransformer extends Object
  • Field Details

  • Constructor Details

    • QueryTreeTransformer

      public QueryTreeTransformer(QueryTree queryTree)
  • Method Details

    • mixinWhereConditionsIntoTree

      public void mixinWhereConditionsIntoTree(org.antlr.runtime.tree.CommonTree targetWhere)
    • mixinJoinIntoTree

      public void mixinJoinIntoTree(org.antlr.runtime.tree.CommonTree joinClause, EntityVariable entityReference, boolean renameVariable)
    • addSelectionSource

      public void addSelectionSource(org.antlr.runtime.tree.CommonTree selectionSource)
    • addFirstSelectionSource

      public void addFirstSelectionSource(org.antlr.runtime.tree.CommonTree selectionSource)
    • replaceWithCount

      public void replaceWithCount(String entityName)
    • removeOrderBy

      public void removeOrderBy()
    • removeDistinct

      public boolean removeDistinct()
    • addDistinct

      public void addDistinct()
    • replaceEntityName

      public void replaceEntityName(String newEntityName, IdentificationVariableNode identificationVariable)
    • replaceOrderByItems

      public void replaceOrderByItems(String mainEntityName, List<OrderByFieldNode> orderByItems)
    • orderById

      public void orderById(String entityVariable, String pkName)
    • addEntityInGroupBy

      public void addEntityInGroupBy(String entityVariable)
    • applyLowerCaseForConditions

      public void applyLowerCaseForConditions(List<SimpleConditionNode> conditions)
    • clearInConditions

      public void clearInConditions(List<SimpleConditionNode> conditions)
    • replaceIsNullStatements

      public void replaceIsNullStatements(List<SimpleConditionNode> conditions, boolean isNullValue)
    • replaceSelectedEntityVariable

      public void replaceSelectedEntityVariable(String newVariableName, PathNode pathNode)
    • hasJoinNode

      protected boolean hasJoinNode(JoinVariableNode joinNode, SelectionSourceNode selectionSource)
    • extractTransitPaths

      protected List<PathNode> extractTransitPaths(PathNode pathNode, String entityName)