Package org.apache.derby.iapi.services.context

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


                ContextManager cm = contextFactory.getCurrentContextManager();

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

                cm.cleanupOnError(e, isdbActive());
            }
        }

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


      // its initial value, or add the runs before the unlogged mode.

    } catch (StandardException se) {

            //Assume database is not active. DERBY-4856 thread dump
            cm1.cleanupOnError(se, false);
      throw T_Fail.exceptionFail(se);
    }
    finally {
      contextService.resetCurrentContextManager(cm1);
    }
View Full Code Here

      }
      catch (StandardException se)
      {
        REPORT("cleanup on error");
                //Assume database is not active. DERBY-4856 thread dump
                cm1.cleanupOnError(se, false);
        REPORT("done cleanup on error");
      }

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

      if (cm1 != null)
                //Assume database is not active. DERBY-4856 thread dump
                cm1.cleanupOnError(t, false);
      if (cm2 != null)
                cm2.cleanupOnError(t, false);
      //    if (cpm != null)
            //      cpm.cleanupOnError(t, false);

    } finally {
View Full Code Here

      //SF002(1);

    } catch (StandardException se) {

            //Assume database is not active. DERBY-4856 thread dump
            cm1.cleanupOnError(se, false);
      throw T_Fail.exceptionFail(se);
    }
    finally {
      contextService.resetCurrentContextManager(cm1);
    }
View Full Code Here

      t.close();
    }
    catch (StandardException se) {

            //Assume database is not active. DERBY-4856 thread dump
            cm1.cleanupOnError(se, false);
      throw T_Fail.exceptionFail(se);
    }
    finally {
      contextService.resetCurrentContextManager(cm1);
    }
View Full Code Here

      runAllocationTests();

    } catch (StandardException se) {

            //Assume database is not active. DERBY-4856 thread dump
            cm1.cleanupOnError(se, false);
      throw T_Fail.exceptionFail(se);
    }
    finally {

      contextService.resetCurrentContextManager(cm1);
View Full Code Here

      t.close();
    }
    catch (StandardException se) {

            //Assume database is not active. DERBY-4856 thread dump
            cm1.cleanupOnError(se, false);
      throw T_Fail.exceptionFail(se);
    }
    finally {
      contextService.resetCurrentContextManager(cm1);
    }
View Full Code Here

    {
      if (SanityManager.DEBUG)
        SanityManager.showTrace(e);

            //Assume database is not active. DERBY-4856 thread dump
            cm.cleanupOnError(e, false);
    }
  }

  /*
   * Runnable methods
View Full Code Here

        usProperties.setServiceBooted();
      }
           
            if (cm != previousCM) {
                //Assume database is not active. DERBY-4856 thread dump
                cm.cleanupOnError(StandardException.closeException(), false);
            }
           
    } catch (Throwable t) {

      StandardException se;
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.