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

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


* ------------------------------------------
* 1          |<simp> doc </simp>
*
*/
  final public ValueNode xmlSerializeValue() throws ParseException, StandardException {
        ValueNode value;
        DataTypeDescriptor targetType;
    value = additiveExpression(null,0,false);
    targetType = xmlSerializeTargetType();
                {if (true) return (ValueNode) nodeFactory.getNode(
                                        C_NodeTypes.XML_SERIALIZE_OPERATOR_NODE,
View Full Code Here


*
*/
  final public ValueNode xmlQueryValue(boolean existsOnly) throws ParseException, StandardException {
        // The query expression (currently must be an expression
        // supported by Xalan--i.e. XPath only).
        ValueNode xqueryExpr = null;

        // Context item for the query; not required by SQL/XML spec,
        // but required by Derby for now.
        ValueNode xmlValue = null;

        // User-specified default passing mechanism.  Since Derby only
        // supports one type of passing mechanism--BY REF--this value
        // isn't currently used.
        short defaultPassingMech = -1;
    xqueryExpr = additiveExpression(null, 0, false);
    jj_consume_token(PASSING);
    defaultPassingMech = xmlPassingMechanism();
    xmlValue = xqVarList();
    if (!existsOnly) {
      if (jj_2_32(1)) {
        xqReturningClause();
        if (jj_2_31(1)) {
          xmlPassingMechanism();
        } else {
          ;
        }
      } else {
        ;
      }
      xqEmptyHandlingClause();

    } else if (existsOnly) {

    } else {
      jj_consume_token(-1);
      throw new ParseException();
    }
                ValueNode vNode = (ValueNode) nodeFactory.getNode(
                        (existsOnly
                                ? C_NodeTypes.XML_EXISTS_OPERATOR_NODE
                                : C_NodeTypes.XML_QUERY_OPERATOR_NODE),
                        xqueryExpr,
                        xmlValue,
View Full Code Here

* to be used as the "context item" for a query, then store the
* value in the first slot of the received ValueNode array;
* otherwise, throw a "not supported" errror (for now).
*/
  final public void xqVariable(ValueNode [] xmlVal) throws ParseException, StandardException {
        ValueNode curVal;
        String varName = null;
        short passingMech = -1;
    curVal = additiveExpression(null,0, false);
    if (getToken(1).kind == AS) {
      jj_consume_token(AS);
View Full Code Here

/*
* <A NAME="dateTimeScalarFunction">dateTimeScalarFunction</A>
*/
  final public ValueNode dateTimeScalarFunction() throws ParseException, StandardException {
        ValueNode       value;
        ValueNode       timestampNode;
        int             field;
    switch (jj_nt.kind) {
    case TIME:
      jj_consume_token(TIME);
      jj_consume_token(LEFT_PAREN);
      value = additiveExpression(null,0, false);
      jj_consume_token(RIGHT_PAREN);
                ValueNode castValue = (ValueNode) nodeFactory.getNode(
                                                        C_NodeTypes.CAST_NODE,
                                                        value,
                                                        DataTypeDescriptor.getBuiltInDataTypeDescriptor( Types.TIME),
                                                        getContextManager());
                ((CastNode) castValue).setForExternallyGeneratedCASTnode();
View Full Code Here

/*
* <A NAME="timestampFunctionCompletion">timestampFunctionCompletion</A>
*/
  final public ValueNode timestampFunctionCompletion(ValueNode firstArg) throws ParseException, StandardException {
        ValueNode timeValue;
    switch (jj_nt.kind) {
    case RIGHT_PAREN:
      jj_consume_token(RIGHT_PAREN);
                {if (true) return (ValueNode) nodeFactory.getNode(
                                                        C_NodeTypes.UNARY_DATE_TIMESTAMP_OPERATOR_NODE,
View Full Code Here

/*
* <A NAME="generalValueSpecification">generalValueSpecification</A>
*/
  final public ValueNode generalValueSpecification() throws ParseException, StandardException {
                ValueNode       parm;
    switch (jj_nt.kind) {
    case QUESTION_MARK:
      parm = dynamicParameterSpecification();
                {if (true) return parm;}
      break;
View Full Code Here

/*
* <A NAME="columnMethodInvocation">columnMethodInvocation</A>
*/
  final public ValueNode columnMethodInvocation() throws ParseException, StandardException {
        ValueNode       columnReference;
        ValueNode       methodNode;
    columnReference = columnNameForInvocation();
    methodNode = nonStaticMethodInvocation(columnReference);
                {if (true) return methodNode;}
    throw new Error("Missing return statement in function");
  }
View Full Code Here

        String thirdName = null;
        String          columnName = null;
        String          tableName = null;
        String          schemaName = null;
        TableName       tabName = null;
        ValueNode       retval;
    firstName = identifier(Limits.MAX_IDENTIFIER_LENGTH, true);
    if (getToken(1).kind == PERIOD &&
                                            getToken(3).kind == PERIOD) {
      jj_consume_token(PERIOD);
      secondName = identifier(Limits.MAX_IDENTIFIER_LENGTH, true);
View Full Code Here

    }
                orderCols.addOrderByColumn(orderCol);
  }

  final public OrderByColumn sortKey() throws ParseException, StandardException {
        ValueNode columnExpression;
    columnExpression = additiveExpression(null,0,true);
                {if (true) return (OrderByColumn) nodeFactory.getNode(
                                                                C_NodeTypes.ORDER_BY_COLUMN,
                                                                columnExpression,
                                                                getContextManager());}
View Full Code Here

* <A NAME="setClause">setClause</A>
*/
  final public void setClause(ResultColumnList columnList) throws ParseException, StandardException {
        ResultColumn resultColumn;
        ColumnReference  columnName;
        ValueNode        valueNode;
    /* identifier() used to be objectColumn() */
            /*
        SQL92 only wants identifiers here (column names)
        but JBuilder expects table.column, so we allow the
        general form.
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.