public class QueryTreeTransformer
extends java.lang.Object
Constructor and Description |
---|
QueryTreeTransformer(QueryTree queryTree) |
Modifier and Type | Method and Description |
---|---|
void |
addDistinct() |
void |
addEntityInGroupBy(java.lang.String entityVariable) |
void |
addFirstSelectionSource(org.antlr.runtime.tree.CommonTree selectionSource) |
void |
addSelectionSource(org.antlr.runtime.tree.CommonTree selectionSource) |
void |
applyLowerCaseForConditions(java.util.List<SimpleConditionNode> conditions) |
void |
clearInConditions(java.util.List<SimpleConditionNode> conditions) |
protected java.util.List<PathNode> |
extractTransitPaths(PathNode pathNode,
java.lang.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 |
orderById(java.lang.String entityVariable,
java.lang.String pkName) |
boolean |
removeDistinct() |
void |
removeOrderBy() |
void |
replaceEntityName(java.lang.String newEntityName,
IdentificationVariableNode identificationVariable) |
void |
replaceIsNullStatements(java.util.List<SimpleConditionNode> conditions,
boolean isNullValue) |
void |
replaceOrderByItems(java.lang.String mainEntityName,
java.util.List<OrderByFieldNode> orderByItems,
boolean directionDesc) |
void |
replaceSelectedEntityVariable(java.lang.String newVariableName,
PathNode pathNode) |
void |
replaceWithCount(java.lang.String entityName) |
protected QueryTree queryTree
public QueryTreeTransformer(QueryTree queryTree)
public void mixinWhereConditionsIntoTree(org.antlr.runtime.tree.CommonTree targetWhere)
public void mixinJoinIntoTree(org.antlr.runtime.tree.CommonTree joinClause, EntityVariable entityReference, boolean renameVariable)
public void addSelectionSource(org.antlr.runtime.tree.CommonTree selectionSource)
public void addFirstSelectionSource(org.antlr.runtime.tree.CommonTree selectionSource)
public void replaceWithCount(java.lang.String entityName)
public void removeOrderBy()
public boolean removeDistinct()
public void addDistinct()
public void replaceEntityName(java.lang.String newEntityName, IdentificationVariableNode identificationVariable)
public void replaceOrderByItems(java.lang.String mainEntityName, java.util.List<OrderByFieldNode> orderByItems, boolean directionDesc)
public void orderById(java.lang.String entityVariable, java.lang.String pkName)
public void addEntityInGroupBy(java.lang.String entityVariable)
public void applyLowerCaseForConditions(java.util.List<SimpleConditionNode> conditions)
public void clearInConditions(java.util.List<SimpleConditionNode> conditions)
public void replaceIsNullStatements(java.util.List<SimpleConditionNode> conditions, boolean isNullValue)
public void replaceSelectedEntityVariable(java.lang.String newVariableName, PathNode pathNode)
protected boolean hasJoinNode(JoinVariableNode joinNode, SelectionSourceNode selectionSource)