Package org.apache.derby.impl.sql.compile

Examples of org.apache.derby.impl.sql.compile.ValueNode


/*
* <A NAME="updateSource">updateSource</A>
*/
  final public ValueNode updateSource(String columnName) throws ParseException, StandardException {
        ValueNode       valueNode;
    if (jj_2_36(1)) {
      valueNode = additiveExpression(null,0, false);
                {if (true) return valueNode;}
    } else {
      switch (jj_nt.kind) {
View Full Code Here


/*
* <A NAME="rowValueConstructorElement">rowValueConstructorElement</A>
*/
  final public void rowValueConstructorElement(ResultColumnList resultColumns) throws ParseException, StandardException {
        ValueNode       value;
    if (jj_2_37(1)) {
      value = additiveExpression(null, 0, true);
                resultColumns.addResultColumn(
                        (ResultColumn) nodeFactory.getNode(
                                                        C_NodeTypes.RESULT_COLUMN,
View Full Code Here

/*
* <A NAME="inPredicateValue">inPredicateValue</A>
*/
  final public ValueNode inPredicateValue(ValueNode leftOperand) throws ParseException, StandardException {
        ValueNode               retval;
        int                             tokKind;
    jj_consume_token(LEFT_PAREN);
    if (subqueryFollows()) {
      retval = tableSubquery(SubqueryNode.IN_SUBQUERY, leftOperand);
    } else if (jj_2_38(1)) {
View Full Code Here

/*
* <A NAME="inElement">inElement</A>
*/
  final public void inElement(ValueNodeList inList) throws ParseException, StandardException {
        ValueNode valueNode;
    valueNode = additiveExpression(null, 0, false);
                inList.addElement(valueNode);
  }
View Full Code Here

* <A NAME="tableExpression">tableExpression</A>
*/
  final public SelectNode tableExpression(ResultColumnList selectList) throws ParseException, StandardException {
        SelectNode      selectNode;
        FromList        fromList;
        ValueNode       whereClause = null;
        GroupByList     groupByList = null;
        ValueNode       havingClause = null;
        Token           whereToken;
    fromList = fromClause();
    switch (jj_nt.kind) {
    case WHERE:
      whereToken = jj_consume_token(WHERE);
      whereClause = whereClause(whereToken);
      break;
    default:
      jj_la1[169] = jj_gen;
      ;
    }
    switch (jj_nt.kind) {
    case GROUP:
      groupByList = groupByClause();
      break;
    default:
      jj_la1[170] = jj_gen;
      ;
    }
    switch (jj_nt.kind) {
    case HAVING:
      havingClause = havingClause();
      break;
    default:
      jj_la1[171] = jj_gen;
      ;
    }
                // fix for HAVING without GROUP BY, makes sure we get one
                // aggregate operator by adding a count(*), this fixes beetle 5853, 5890
                if (havingClause != null && groupByList == null) {
                        ValueNode vn = (ValueNode) nodeFactory.getNode(
                                                                C_NodeTypes.AGGREGATE_NODE,
                                                                null,
                                                                org.apache.derby.impl.sql.compile.CountAggregateDefinition.class,
                                                                Boolean.FALSE, // distinct Boolean.TRUE?
                                                                "COUNT(*)",
 
View Full Code Here

        int                                     joinType = JoinNode.INNERJOIN;
        ResultSetNode           rightRSN;
        TableOperatorNode       ton = null;
        Object[]                        onOrUsingClause = null;
        ResultColumnList        usingClause = null;
        ValueNode                       onClause;
    switch (jj_nt.kind) {
    case INNER:
    case LEFT:
    case RIGHT:
      joinType = joinType();
View Full Code Here

  }

  final public Object[] joinSpecification(ResultSetNode leftRSN, ResultSetNode rightRSN) throws ParseException, StandardException {
        Object[]                        onOrUsingClause = new Object[ON_OR_USING_CLAUSE_SIZE];
        ResultColumnList        usingClause = null;
        ValueNode                       joinClause = null;
    joinClause = joinCondition();
                onOrUsingClause[ON_CLAUSE] = joinClause;
                onOrUsingClause[USING_CLAUSE] = usingClause;
                {if (true) return onOrUsingClause;}
    throw new Error("Missing return statement in function");
View Full Code Here

                {if (true) return onOrUsingClause;}
    throw new Error("Missing return statement in function");
  }

  final public ValueNode joinCondition() throws ParseException, StandardException {
        ValueNode joinClause;
    jj_consume_token(ON);
    joinClause = valueExpression(false);
                {if (true) return joinClause;}
    throw new Error("Missing return statement in function");
  }
View Full Code Here

** Note that set function and aggregate are used
** interchangeably in the parser.  The tree has
** aggregate nodes.
*/
  final public ValueNode aggregateNode() throws ParseException, StandardException {
        ValueNode agg;
    switch (jj_nt.kind) {
    case COUNT:
      jj_consume_token(COUNT);
      jj_consume_token(LEFT_PAREN);
      switch (jj_nt.kind) {
View Full Code Here

    throw new Error("Missing return statement in function");
  }

  final public ValueNode aggregateExpression(String aggName, Class aggClass) throws ParseException, StandardException {
        boolean         distinct = false;
        ValueNode       value;
    if (jj_2_43(1)) {
      distinct = setQuantifier();
    } else {
      ;
    }
View Full Code Here

TOP

Related Classes of org.apache.derby.impl.sql.compile.ValueNode

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.