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) |
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 |
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) |
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 replaceSelectedEntityVariable(java.lang.String newVariableName, PathNode pathNode)