Examples of ValueNode


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);
                ValueNode value = (ValueNode) nodeFactory.getNode(
                                                                                C_NodeTypes.CAST_NODE,
                                                                                (ValueNode) nodeFactory.getNode(C_NodeTypes.UNTYPED_NULL_CONSTANT_NODE,
                                                                                                                                                getContextManager()),
                                                                                DataTypeDescriptor.getBuiltInDataTypeDescriptor(Types.CHAR, 1),
                                                                                getContextManager());
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);
                ValueNode value = (ValueNode) nodeFactory.getNode(
                                                                                C_NodeTypes.CAST_NODE,
                                                                                (ValueNode) nodeFactory.getNode(C_NodeTypes.UNTYPED_NULL_CONSTANT_NODE,
                                                                                                                                                getContextManager()),
                                                                                DataTypeDescriptor.getBuiltInDataTypeDescriptor(Types.CHAR, 1),
                                                                                getContextManager());
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

  final public StatementNode deleteBody() throws ParseException, StandardException {
        JavaToSQLValueNode      javaToSQLNode = null;
        String                          correlationName = null;
        TableName  tableName = null;
        ValueNode  whereClause = null;
        FromTable  fromTable = null;
        QueryTreeNode retval;
        Properties targetProperties = null;
        Token      whereToken = null;
    if (fromNewInvocationFollows()) {
View Full Code Here

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

  final public StatementNode updateBody() throws ParseException, StandardException {
        ResultColumnList        columnList;
        String                          correlationName = null;
        JavaToSQLValueNode      javaToSQLNode = null;
        TableName  tableName = null;
        ValueNode  whereClause = null;
        FromTable  fromTable = null;
        Properties targetProperties = null;
        Token      whereToken = null;
    if (newInvocationFollows(1)) {
      javaToSQLNode = newInvocation();
View Full Code Here

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

* <A NAME="bareCallStatement">baseCallStatement</A>
*/
  final public StatementNode bareCallStatement() throws ParseException, StandardException {
        ParameterNode           returnParam;

        ValueNode                       value;

        ResultSetNode           resultSetNode;
    switch (jj_nt.kind) {
    case CALL:
      jj_consume_token(CALL);
View Full Code Here

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

*
* @param inSelectClause will be true if this method got called while parsing the select or values clause
* If in select or values clause, we do not want to allow boolean values.
*/
  final public ValueNode primaryExpression(boolean inSelectClause) throws ParseException, StandardException {
        ValueNode                       value = null;
    if (getToken(2).kind == PERIOD &&
                    getToken(4).kind == LEFT_PAREN) {
      value = routineInvocation();
                {if (true) return value;}
    } else if (jj_2_9(1)) {
View Full Code Here

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

/*
* <A NAME="columnDefinition">columnDefinition</A>
*/
  final public TableElementNode columnDefinition(TableElementList tableElementList) throws ParseException, StandardException {
        DataTypeDescriptor      typeDescriptor = null;
        ValueNode                       defaultNode = null;
        String                          columnName;
        long[]                          autoIncrementInfo = new long[4];
    /*
      ** RESOLVE: We are ignoring domains and collation.
      */
 
View Full Code Here

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

*/
  final public ValueNode defaultAndConstraints(DataTypeDescriptor typeDescriptor,
                                          TableElementList tableElementList,
                                          String columnName,
                                          long[] autoIncrementInfo) throws ParseException, StandardException {
        ValueNode               defaultNode = null;
    switch (jj_nt.kind) {
    case CHECK:
    case CONSTRAINT:
    case NOT:
    case PRIMARY:
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.