Examples of cleanupOnError()


Examples of org.apache.derby.iapi.services.context.ContextManager.cleanupOnError()

                ContextManager cm = contextFactory.getCurrentContextManager();

                if (SanityManager.DEBUG)
                    SanityManager.ASSERT(cm != null);

                cm.cleanupOnError(e);
            }
        }

        tc.commit();
        REPORT("Ending t_016");
View Full Code Here

Examples of org.apache.derby.iapi.services.context.ContextManager.cleanupOnError()

      // if more runs are added here then you probably want to reset testRollback to
      // its initial value, or add the runs before the unlogged mode.

    } catch (StandardException se) {

      cm1.cleanupOnError(se);
      throw T_Fail.exceptionFail(se);
    }
    finally {
      contextService.resetCurrentContextManager(cm1);
    }
View Full Code Here

Examples of org.apache.derby.iapi.services.context.ContextManager.cleanupOnError()

        t_util.t_insertAtSlot(p3, 100, row);
      }
      catch (StandardException se)
      {
        REPORT("cleanup on error");
        cm1.cleanupOnError(se);
        REPORT("done cleanup on error");
      }

      tinternal = null;
      //   tuser = t_util.t_startTransaction();
View Full Code Here

Examples of org.apache.derby.iapi.services.context.ContextManager.cleanupOnError()

      t.printStackTrace(System.err);

      if (cm1 != null)
        cm1.cleanupOnError(t);
      if (cm2 != null)
        cm2.cleanupOnError(t);
      //    if (cpm != null)
      //      cpm.cleanupOnError(t);

    } finally {
View Full Code Here

Examples of org.apache.derby.iapi.services.context.ContextManager.cleanupOnError()

      try
      {
        rm.commit(inDoubtCM, xid_im, onePhase);

        // close the connection/transaction since it can never be used again.
        inDoubtCM.cleanupOnError(StandardException.closeException());
        return;
      }
      catch (StandardException se)
      {
        // The rm threw an exception, clean it up in the approprate
View Full Code Here

Examples of org.apache.derby.iapi.services.context.ContextManager.cleanupOnError()

      catch (StandardException se)
      {
        // The rm threw an exception, clean it up in the approprate
        // context.  There is no transactionResource to handle the
        // exception for us.
        inDoubtCM.cleanupOnError(se);
        throw wrapInXAException(se);
      }
      finally
      {
        csf.resetCurrentContextManager(inDoubtCM);
View Full Code Here

Examples of org.apache.derby.iapi.sql.conn.StatementContext.cleanupOnError()

    {
      if (foundInCache)
        ((GenericLanguageConnectionContext)lcc).removeStatement(this);

            if (statementContext != null) {
                statementContext.cleanupOnError(se);
            }

      throw se;
    }
    finally
View Full Code Here

Examples of org.apache.derby.iapi.sql.conn.StatementContext.cleanupOnError()

        StatementContext sc = lcc.getStatementContext();
       
        /* make sure that the cleanup is on the new SC */
        if (active_sc != sc)
        {
          sc.cleanupOnError(e);
        }
       
        /* Handle dynamic recompiles */
        if (e.getMessageId().equals(SQLState.LANG_STATEMENT_NEEDS_RECOMPILE))
        {
View Full Code Here

Examples of org.apache.derby.iapi.sql.conn.StatementContext.cleanupOnError()

      } catch (StandardException se) {
        /* Cann't handle recompiling SPS action recompile here */
        if (!se.getMessageId().equals(SQLState.LANG_STATEMENT_NEEDS_RECOMPILE)
             || spsAction)
          throw se;
        statementContext.cleanupOnError(se);
        continue recompileOutOfDatePlan;

      }


View Full Code Here

Examples of org.apache.derby.iapi.sql.conn.StatementContext.cleanupOnError()

      } catch (StandardException se) {
        /* Cann't handle recompiling SPS action recompile here */
        if (!se.getMessageId().equals(SQLState.LANG_STATEMENT_NEEDS_RECOMPILE)
             || spsAction)
          throw se;
        statementContext.cleanupOnError(se);
        continue recompileOutOfDatePlan;

      }


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.