Package io.jmix.data.impl.jpql.transform
Class QueryTreeTransformer
java.lang.Object
io.jmix.data.impl.jpql.transform.QueryTreeTransformer
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addEntityInGroupBy
(String entityVariable) void
addFirstSelectionSource
(org.antlr.runtime.tree.CommonTree selectionSource) void
addSelectionSource
(org.antlr.runtime.tree.CommonTree selectionSource) void
applyLowerCaseForConditions
(List<SimpleConditionNode> conditions) void
clearInConditions
(List<SimpleConditionNode> conditions) extractTransitPaths
(PathNode pathNode, String entityName) protected boolean
hasJoinNode
(JoinVariableNode joinNode, SelectionSourceNode selectionSource) void
mixinJoinIntoTree
(org.antlr.runtime.tree.CommonTree joinClause, EntityVariable entityReference, boolean renameVariable) void
mixinWhereConditionsIntoTree
(org.antlr.runtime.tree.CommonTree targetWhere) void
boolean
void
void
replaceEntityName
(String newEntityName, IdentificationVariableNode identificationVariable) void
replaceIsNullStatements
(List<SimpleConditionNode> conditions, boolean isNullValue) void
replaceOrderByItems
(String mainEntityName, List<OrderByFieldNode> orderByItems) void
replaceSelectedEntityVariable
(String newVariableName, PathNode pathNode) void
replaceWithCount
(String entityName)
-
Field Details
-
queryTree
-
-
Constructor Details
-
QueryTreeTransformer
-
-
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
-
removeOrderBy
public void removeOrderBy() -
removeDistinct
public boolean removeDistinct() -
addDistinct
public void addDistinct() -
replaceEntityName
public void replaceEntityName(String newEntityName, IdentificationVariableNode identificationVariable) -
replaceOrderByItems
-
orderById
-
addEntityInGroupBy
-
applyLowerCaseForConditions
-
clearInConditions
-
replaceIsNullStatements
-
replaceSelectedEntityVariable
-
hasJoinNode
-
extractTransitPaths
-