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

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


*
* Note that this latter syntax is still supported.
*/
  final public JavaToSQLValueNode vtiTableConstruct() throws ParseException, StandardException {
    NewInvocationNode newNode = null;
    QueryTreeNode invocationNode = null;
    Vector parameterList = new Vector();
    TableName vtiTableName = null;
    TableDescriptor td;
    MethodCallNode      methodNode;
    jj_consume_token(TABLE);
View Full Code Here


        Token                           checkTok = null;
        Token                           endToken;
        int                                     actionBegin;
        int                                     actionEnd;
        int                                     triggerEvent;
        QueryTreeNode           actionNode;
        ResultColumnList        triggerColumns = (ResultColumnList) nodeFactory.getNode(
                                                                                        C_NodeTypes.RESULT_COLUMN_LIST,
                                                                                        getContextManager());
        Vector                          refClause = null;
    jj_consume_token(TRIGGER);
    triggerName = qualifiedName(Limits.MAX_IDENTIFIER_LENGTH);
    isBefore = beforeOrAfter();
    triggerEvent = triggerEvent(triggerColumns);
    jj_consume_token(ON);
    tableName = qualifiedName(Limits.MAX_IDENTIFIER_LENGTH);
    switch (jj_nt.kind) {
    case REFERENCING:
      refClause = triggerReferencingClause();
      break;
    default:
      jj_la1[229] = jj_gen;
      ;
    }
    switch (jj_nt.kind) {
    case FOR:
      jj_consume_token(FOR);
      jj_consume_token(EACH);
      isRow = rowOrStatement();
      break;
    default:
      jj_la1[230] = jj_gen;
      ;
    }
    switch (jj_nt.kind) {
    case MODE:
      jj_consume_token(MODE);
      jj_consume_token(DB2SQL);
      break;
    default:
      jj_la1[231] = jj_gen;
      ;
    }
    //we are not top level statement
                    actionNode = proceduralStatement(tokenHolder);
                actionEnd = getToken(0).endOffset;
                actionBegin = tokenHolder[0].beginOffset;

                // No DML in action node for BEFORE triggers.
                if (isBefore.booleanValue() && (actionNode instanceof DMLModStatementNode)) {
                                {if (true) throw StandardException.newException(
                                        SQLState.LANG_UNSUPPORTED_TRIGGER_STMT,
                                        ((StatementNode) actionNode).statementToString(), "BEFORE");}
                                        }


                // no params in trigger action
                HasNodeVisitor visitor = new HasNodeVisitor(ParameterNode.class);
                actionNode.accept(visitor);
                if (visitor.hasNode())
                {
                        {if (true) throw StandardException.newException(SQLState.LANG_NO_PARAMS_IN_TRIGGER_ACTION);}
                }
View Full Code Here

   * @exception StandardException    Thrown on error.
   */
  public final QueryTreeNode getNode(int nodeType, Object arg1, ContextManager cm)
                          throws StandardException
  {
    QueryTreeNode retval = getNode(nodeType, cm);

    retval.init(arg1);

    return  retval;
  }
View Full Code Here

              Object arg1,
              Object arg2,
              ContextManager cm)
                throws StandardException
  {
    QueryTreeNode retval =  getNode(nodeType, cm);

    retval.init(arg1, arg2);

    return  retval;
  }
View Full Code Here

              Object arg2,
              Object arg3,
              ContextManager cm)
                throws StandardException
  {
    QueryTreeNode retval =  getNode(nodeType, cm);

    retval.init(arg1, arg2, arg3);

    return  retval;
  }
View Full Code Here

              Object arg3,
              Object arg4,
              ContextManager cm)
                throws StandardException
  {
    QueryTreeNode retval =  getNode(nodeType, cm);

    retval.init(arg1, arg2, arg3, arg4);

    return  retval;
  }
View Full Code Here

              Object arg4,
              Object arg5,
              ContextManager cm)
                throws StandardException
  {
    QueryTreeNode retval =  getNode(nodeType, cm);

    retval.init(arg1, arg2, arg3, arg4, arg5);

    return  retval;
  }
View Full Code Here

              Object arg5,
              Object arg6,
              ContextManager cm)
                throws StandardException
  {
    QueryTreeNode retval =  getNode(nodeType, cm);

    retval.init(arg1, arg2, arg3, arg4, arg5, arg6);

    return  retval;
  }
View Full Code Here

              Object arg6,
              Object arg7,
              ContextManager cm)
                throws StandardException
  {
    QueryTreeNode retval =  getNode(nodeType, cm);

    retval.init(arg1, arg2, arg3, arg4, arg5, arg6, arg7);

    return  retval;
  }
View Full Code Here

              Object arg7,
              Object arg8,
              ContextManager cm)
                throws StandardException
  {
    QueryTreeNode retval =  getNode(nodeType, cm);

    retval.init(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8);

    return  retval;
  }
View Full Code Here

TOP

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

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.