Package org.apache.derby.iapi.sql.compile

Examples of org.apache.derby.iapi.sql.compile.Visitable


   
    /* Finally, we can call the parser */
    // Since this is always nested inside another SQL statement, so topLevel flag
    // should be false
    Visitable qt = p.parseStatement(values);
    if (SanityManager.DEBUG)
    {
      if (! (qt instanceof CursorNode))
      {
        SanityManager.THROWASSERT(
          "qt expected to be instanceof CursorNode, not " +
          qt.getClass().getName());
      }
      CursorNode cn = (CursorNode) qt;
      if (! (cn.getResultSetNode() instanceof RowResultSetNode))
      {
        SanityManager.THROWASSERT(
View Full Code Here


          usesReferencingClause)
    {
            CompilerContext newCC = lcc.pushCompilerContext(
                    dd.getSchemaDescriptor(sps.getCompSchemaId(), null));
      Parser  pa = newCC.getParser();
            Visitable stmtnode =
                    isWhenClause ? pa.parseSearchCondition(originalSQL)
                                 : pa.parseStatement(originalSQL);
      lcc.popCompilerContext(newCC);

            String newText = dd.getTriggerActionString(stmtnode,
View Full Code Here

                null);
    CompilerContext newCC = lcc.pushCompilerContext(compSchema);
    Parser  pa = newCC.getParser();
        String originalSQL = isWhenClause ? trd.getWhenClauseText()
                                          : trd.getTriggerDefinition();
        Visitable node = isWhenClause ? pa.parseSearchCondition(originalSQL)
                                      : pa.parseStatement(originalSQL);
    lcc.popCompilerContext(newCC);
    // Do not delete following. We use this in finally clause to
    // determine if the CompilerContext needs to be popped.
    newCC = null;
View Full Code Here

    p = newCC.getParser();
       
    /* Finally, we can call the parser */
    // Since this is always nested inside another SQL statement, so topLevel flag
    // should be false
    Visitable qt = p.parseStatement(select);
    if (SanityManager.DEBUG)
    {
      if (! (qt instanceof CursorNode))
      {
        SanityManager.THROWASSERT(
          "qt expected to be instanceof CursorNode, not " +
          qt.getClass().getName());
      }
      CursorNode cn = (CursorNode) qt;
      if (! (cn.getResultSetNode() instanceof SelectNode))
      {
        SanityManager.THROWASSERT(
View Full Code Here

    p = newCC.getParser();
       
    /* Finally, we can call the parser */
    // Since this is always nested inside another SQL statement, so topLevel flag
    // should be false
    Visitable qt = p.parseStatement(select);
    if (SanityManager.DEBUG)
    {
      if (! (qt instanceof CursorNode))
      {
        SanityManager.THROWASSERT(
          "qt expected to be instanceof CursorNode, not " +
          qt.getClass().getName());
      }
      CursorNode cn = (CursorNode) qt;
      if (! (cn.getResultSetNode() instanceof SelectNode))
      {
        SanityManager.THROWASSERT(
View Full Code Here

    if (childrenFirst && !skipChildren && !v.stopTraversal()) {
      acceptChildren(v);
    }

    final Visitable ret = v.stopTraversal() ? this : v.visit(this);

    if (!childrenFirst && !skipChildren && !v.stopTraversal()) {
      acceptChildren(v);
    }
View Full Code Here

   
    /* Finally, we can call the parser */
    // Since this is always nested inside another SQL statement, so topLevel flag
    // should be false
    Visitable qt = p.parseStatement(values);
    if (SanityManager.DEBUG)
    {
      if (! (qt instanceof CursorNode))
      {
        SanityManager.THROWASSERT(
          "qt expected to be instanceof CursorNode, not " +
          qt.getClass().getName());
      }
      CursorNode cn = (CursorNode) qt;
      if (! (cn.getResultSetNode() instanceof RowResultSetNode))
      {
        SanityManager.THROWASSERT(
View Full Code Here

          usesReferencingClause)
    {
            CompilerContext newCC = lcc.pushCompilerContext(
                    dd.getSchemaDescriptor(actionSPS.getCompSchemaId(), null));
      Parser  pa = newCC.getParser();
      Visitable stmtnode = pa.parseStatement(triggerDefinition);
      lcc.popCompilerContext(newCC);
         
            actionSPS.setText(dd.getTriggerActionString(stmtnode,
          oldReferencingName,
          newReferencingName,
View Full Code Here

    p = newCC.getParser();
       
    /* Finally, we can call the parser */
    // Since this is always nested inside another SQL statement, so topLevel flag
    // should be false
    Visitable qt = p.parseStatement(values);
    if (SanityManager.DEBUG)
    {
      if (! (qt instanceof CursorNode))
      {
        SanityManager.THROWASSERT(
          "qt expected to be instanceof CursorNode, not " +
          qt.getClass().getName());
      }
      CursorNode cn = (CursorNode) qt;
      if (! (cn.getResultSetNode() instanceof RowResultSetNode))
      {
        SanityManager.THROWASSERT(
View Full Code Here

    p = newCC.getParser();
       
    /* Finally, we can call the parser */
    // Since this is always nested inside another SQL statement, so topLevel flag
    // should be false
    Visitable qt = p.parseStatement(select);
    if (SanityManager.DEBUG)
    {
      if (! (qt instanceof CursorNode))
      {
        SanityManager.THROWASSERT(
          "qt expected to be instanceof CursorNode, not " +
          qt.getClass().getName());
      }
      CursorNode cn = (CursorNode) qt;
      if (! (cn.getResultSetNode() instanceof SelectNode))
      {
        SanityManager.THROWASSERT(
View Full Code Here

TOP

Related Classes of org.apache.derby.iapi.sql.compile.Visitable

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.