Examples of ValueNode


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

/*
* <A NAME="dateTimeLiteral">dateTimeLiteral</A>
*/
  final public ValueNode dateTimeLiteral() throws ParseException, StandardException {
        ValueNode       constantNode;
    jj_consume_token(LEFT_BRACE);
    constantNode = escapedDateTimeLiteral();
    jj_consume_token(RIGHT_BRACE);
                {if (true) return constantNode;}
    throw new Error("Missing return statement in function");
View Full Code Here

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

/*
* <A NAME="escapedDateTimeLiteral">escapedDateTimeLiteral</A>
*/
  final public ValueNode escapedDateTimeLiteral() throws ParseException, StandardException {
        ValueNode constantNode;
    switch (jj_nt.kind) {
    case D:
      jj_consume_token(D);
      constantNode = bareDateLiteral();
                {if (true) return constantNode;}
View Full Code Here

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

* check that column check constraints only refer to that column.
*/
  final public ConstraintDefinitionNode checkConstraintDefinition(TableName constraintName, String columnName) throws ParseException, StandardException {
        Token           beginToken;
        Token           endToken;
        ValueNode       value;
        ResultColumnList rclList = null;
    jj_consume_token(CHECK);
    beginToken = jj_consume_token(LEFT_PAREN);
    value = valueExpression(false);
    endToken = jj_consume_token(RIGHT_PAREN);
                if (columnName != null)
                {
                        /* Column check constraint */
                        rclList = (ResultColumnList) nodeFactory.getNode(
                                                                        C_NodeTypes.RESULT_COLUMN_LIST,
                                                                        getContextManager());
                        rclList.addElement((ResultColumn) nodeFactory.getNode(
                                                                        C_NodeTypes.RESULT_COLUMN,
                                                                        columnName,
                                                                        null,
                                                                        getContextManager()));
                }

                value.setBeginOffset( beginToken.beginOffset );
                value.setEndOffset( endToken.endOffset );
                {if (true) return (ConstraintDefinitionNode) nodeFactory.getNode(
                                        C_NodeTypes.CONSTRAINT_DEFINITION_NODE,
                                        constraintName,
                                        ReuseFactory.getInteger(DataDictionary.CHECK_CONSTRAINT),
                                        rclList,
View Full Code Here

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

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

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

/*
* <A NAME="valueSpecification">valueSpecification</A>
*/
  final public ValueNode valueSpecification() throws ParseException, StandardException {
        ValueNode          value;
        ValueNode          leftExpression;
        ValueNode          rightExpression;
    switch (jj_nt.kind) {
    case FALSE:
    case TRUE:
    case LEFT_BRACE:
    case PLUS_SIGN:
View Full Code Here

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

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

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

/*
* <A NAME="whenThenExpression">whenThenExpression</A>
*/
  final public ValueNode whenThenExpression() throws ParseException, StandardException {
        ValueNode          expr;
        ValueNode          thenExpr;
        ValueNode          elseExpr;
    jj_consume_token(WHEN);
    expr = orExpression(null, false);
    label_39:
    while (true) {
      switch (jj_nt.kind) {
View Full Code Here

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

/*
* <A NAME="thenElseExpression">thenElseExpression</A>
*/
  final public ValueNode thenElseExpression() throws ParseException, StandardException {
        ValueNode          expr;
    if (getToken(1).kind == NULL) {
      jj_consume_token(NULL);
                {if (true) return((ValueNode) nodeFactory.getNode(
                                                                                C_NodeTypes.CAST_NODE,
                                                                                (ValueNode) nodeFactory.getNode(C_NodeTypes.UNTYPED_NULL_CONSTANT_NODE,
View Full Code Here

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

*    RESTART WITH increment_restart_value
*    [WITH] DEFAULT default_value
*      [NOT] NULL
*/
  final public TableElementNode columnAlterClause(String columnName) throws ParseException, StandardException {
        ValueNode       defaultNode;
        long[]                          autoIncrementInfo = new long[4];
        long                            autoIncrementIncrement = 1;
        long                            autoIncrementRestartWith = 1;
        DataTypeDescriptor      typeDescriptor = null;
    if (getToken(2).kind == DATA) {
View Full Code Here

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

                                                        columnExpression,
                                                        getContextManager()));
  }

  final public ValueNode havingClause() throws ParseException, StandardException {
        ValueNode value;
    jj_consume_token(HAVING);
    value = valueExpression(false);
                {if (true) return value;}
    throw new Error("Missing return statement in function");
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.