Examples of ValueNode


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

/*
* <A NAME="defaultClause">defaultClause</A>
*/
  final public ValueNode defaultClause(long[] autoIncrementInfo, String columnName) throws ParseException, StandardException {
        ValueNode       value;
        Token           beginToken;
        Token           endToken;
    switch (jj_nt.kind) {
    case _DEFAULT:
    case WITH:
View Full Code Here

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

*/

//ToCleanUp
//A specific class not such long[] should exists for autoIncrementInfo ...
  final public ValueNode generatedColumnOption(long[] autoIncrementInfo) throws ParseException, StandardException {
        ValueNode       value = null;
        autoIncrementInfo[QueryTreeNode.AUTOINCREMENT_START_INDEX] = 1;
        autoIncrementInfo[QueryTreeNode.AUTOINCREMENT_INC_INDEX] = 1;
        autoIncrementInfo[QueryTreeNode.AUTOINCREMENT_IS_AUTOINCREMENT_INDEX] = 1;
        autoIncrementInfo[QueryTreeNode.AUTOINCREMENT_CREATE_MODIFY] = ColumnDefinitionNode.CREATE_AUTOINCREMENT;
    jj_consume_token(GENERATED);
View Full Code Here

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

  final public ValueNode defaultOption(Token beginToken, long[] autoIncrementInfo,
        String columnName) throws ParseException, StandardException {
        Token           endToken;
        Token           errorTok = null;
        Token           initialTok = null;
        ValueNode       value;
    if (getToken(1).kind == NULL && !(getToken(2).kind == PERIOD ||
                            getToken(2).kind == DOUBLE_COLON)) {
      jj_consume_token(NULL);
                {if (true) return (ValueNode) nodeFactory.getNode(
                                                                        C_NodeTypes.UNTYPED_NULL_CONSTANT_NODE,
                                                                        getContextManager());}
    } else if (jj_2_47(1)) {
      value = DB2DefaultOption(columnName);
                endToken = getToken(0);
                value.setBeginOffset( beginToken.beginOffset );
                value.setEndOffset( endToken.endOffset );
                value = (ValueNode) nodeFactory.getNode(
                                                                C_NodeTypes.DEFAULT_NODE,
                                                                value,
                                                                StringUtil.slice(statementSQLText,
                                                                        beginToken.beginOffset + 7,
View Full Code Here

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

/*
* <A NAME="DB2DefaultOption">DB2DefaultOption</A>
*/
  final public ValueNode DB2DefaultOption(String columnName) throws ParseException, StandardException {
        ValueNode       value;
    if (getToken(2).kind == SCHEMA || getToken(2).kind == SQLID) {
      jj_consume_token(CURRENT);
      switch (jj_nt.kind) {
      case SCHEMA:
        jj_consume_token(SCHEMA);
View Full Code Here

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

  final public ValueNode literal() throws ParseException, StandardException {
        String  sign = "";
        Token   tok;
        String  datetimeString;
        String  bitString;
        ValueNode               constantNode;
    switch (jj_nt.kind) {
    case PLUS_SIGN:
    case MINUS_SIGN:
    case EXACT_NUMERIC:
    case APPROXIMATE_NUMERIC:
View Full Code Here

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
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.