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 entityAlias) |
void |
addFirstSelectionSource(org.antlr.runtime.tree.CommonTree selectionSource) |
void |
addOrderByIdIfNotExists(PathEntityReference idReference) |
void |
addSelectionSource(org.antlr.runtime.tree.CommonTree selectionSource) |
void |
applyLowerCaseForConditions(java.util.List<SimpleConditionNode> conditions) |
void |
clearInConditions(java.util.List<SimpleConditionNode> conditions) |
protected AggregateExpressionNode |
createCountNode(org.antlr.runtime.tree.Tree tree,
boolean distinct) |
protected java.util.List<PathNode> |
getPathNodesForOrderBy(PathEntityReference pathEntityReference) |
protected boolean |
hasJoinNode(JoinVariableNode joinNode,
SelectionSourceNode selectionSource) |
void |
mixinJoinIntoTree(org.antlr.runtime.tree.CommonTree joinClause,
EntityReference entityReference,
boolean renameVariable) |
void |
mixinWhereConditionsIntoTree(org.antlr.runtime.tree.CommonTree targetWhere) |
boolean |
removeDistinct() |
void |
removeOrderBy() |
void |
replaceEntityName(java.lang.String newEntityName,
IdentificationVariableNode identificationVariable) |
void |
replaceIsNullStatements(java.util.List<SimpleConditionNode> conditions,
boolean isNullValue) |
void |
replaceOrderBy(boolean desc,
PathEntityReference... orderingFieldRefs) |
void |
replaceSelectedEntityVariable(java.lang.String newVariableName,
PathNode pathNode) |
void |
replaceWithCount(org.antlr.runtime.tree.Tree node) |
void |
replaceWithSelectId(java.lang.String idProperty,
PathNode pathNode) |
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, EntityReference entityReference, boolean renameVariable)
public void addSelectionSource(org.antlr.runtime.tree.CommonTree selectionSource)
public void addFirstSelectionSource(org.antlr.runtime.tree.CommonTree selectionSource)
public void replaceWithCount(org.antlr.runtime.tree.Tree node)
public void removeOrderBy()
public boolean removeDistinct()
public void addDistinct()
public void replaceEntityName(java.lang.String newEntityName, IdentificationVariableNode identificationVariable)
public void replaceOrderBy(boolean desc, PathEntityReference... orderingFieldRefs)
public void addOrderByIdIfNotExists(PathEntityReference idReference)
public void addEntityInGroupBy(java.lang.String entityAlias)
public void applyLowerCaseForConditions(java.util.List<SimpleConditionNode> conditions)
public void clearInConditions(java.util.List<SimpleConditionNode> conditions)
public void replaceWithSelectId(java.lang.String idProperty, PathNode pathNode)
public void replaceIsNullStatements(java.util.List<SimpleConditionNode> conditions, boolean isNullValue)
public void replaceSelectedEntityVariable(java.lang.String newVariableName, PathNode pathNode)
protected AggregateExpressionNode createCountNode(org.antlr.runtime.tree.Tree tree, boolean distinct)
protected boolean hasJoinNode(JoinVariableNode joinNode, SelectionSourceNode selectionSource)
protected java.util.List<PathNode> getPathNodesForOrderBy(PathEntityReference pathEntityReference)