if(expression instanceof CompoundExpression) { CompoundExpression ce = (CompoundExpression)expression; tables.addAll(mapTableIndexToExpression(ce.getFirstChild(), map, tablesInOrder)); tables.addAll(mapTableIndexToExpression(ce.getSecondChild(), map, tablesInOrder)); } else if(expression instanceof FunctionExpression) {
if(expression instanceof CompoundExpression) { CompoundExpression ce = (CompoundExpression)expression; tables.addAll(mapTableIndexToExpression(ce.getFirstChild(), map, tablesInOrder)); tables.addAll(mapTableIndexToExpression(ce.getSecondChild(), map, tablesInOrder)); } else if(expression instanceof FunctionExpression) {
if(expression instanceof CompoundExpression) { CompoundExpression ce = (CompoundExpression)expression; tables.addAll(mapTableIndexToExpression(ce.getFirstChild(), map, tablesInOrder)); tables.addAll(mapTableIndexToExpression(ce.getSecondChild(), map, tablesInOrder)); } else if(expression instanceof FunctionExpression) {
if (this.parentNode.isCompoundExpression()) { CompoundExpression logExp = (LogicalExpression) this.parentNode; if (logExp.getFirstChild() == baseIn) { logExp.create(this.currentNode, logExp.getSecondChild(), logExp.getOperator()); } else { logExp.create(logExp.getFirstChild(), this.currentNode, logExp.getOperator());
/** * INTERNAL: * This method will walk the given expression and mark any parameter * expressions as property expressions. This is done when additional * criteria has been specified and parameter values must be resolved * through session properties. * * @see #postInitialize */ protected void updatePropertyParameterExpression(Expression exp) { if (exp.isCompoundExpression()) { updatePropertyParameterExpression(((CompoundExpression) exp).getFirstChild()); updatePropertyParameterExpression(((CompoundExpression) exp).getSecondChild()); } else if (exp.isFunctionExpression()) { for (Expression e : ((FunctionExpression) exp).getChildren()) { updatePropertyParameterExpression(e); } } else if (exp.isSubSelectExpression()) { ReportQuery subSelectQuery = ((SubSelectExpression) exp).getSubQuery(); for (ReportItem item : subSelectQuery.getItems()) { updatePropertyParameterExpression(item.getAttributeExpression()); } } if (exp.isParameterExpression()) { ((ParameterExpression) exp).setIsProperty(true); } }
/** * INTERNAL: * This method will walk the given expression and mark any parameter * expressions as property expressions. This is done when additional * criteria has been specified and parameter values must be resolved * through session properties. * * @see #postInitialize */ protected void updatePropertyParameterExpression(Expression exp) { if (exp.isCompoundExpression()) { updatePropertyParameterExpression(((CompoundExpression) exp).getFirstChild()); updatePropertyParameterExpression(((CompoundExpression) exp).getSecondChild()); } else if (exp.isFunctionExpression()) { for (Expression e : (Vector<Expression>) ((FunctionExpression) exp).getChildren()) { updatePropertyParameterExpression(e); } } else if (exp.isSubSelectExpression()) { ReportQuery subSelectQuery = ((SubSelectExpression) exp).getSubQuery(); for (ReportItem item : subSelectQuery.getItems()) { updatePropertyParameterExpression(item.getAttributeExpression()); } } if (exp.isParameterExpression()) { ((ParameterExpression) exp).setIsProperty(true); } }