Package org.apache.derby.iapi.store.access

Examples of org.apache.derby.iapi.store.access.TransactionController.destroy()


            while (true) {
                synchronized (queue) {
                    if (daemonDisabled) {
                        // Clean the lcc and exit.
                        try {
                            tc.destroy();
                        } catch (ShutdownException se) {
                            // Ignore
                        }
                        tc = null;
                        daemonLCC = null;
View Full Code Here


                        pass = true;
                }
      }

      tc.commit();
      tc.destroy();
    }
    catch (StandardException e)
    {
      String  msg = e.getMessage();
      if (msg == null)
View Full Code Here

            {
                // if we failed to get a generator, we have no identity. see DERBY-5389.
                if ( _sequenceGenerator == null ) { _uuidString = null; }
           
                subTransaction.commit();
                subTransaction.destroy();
            }
        }

    if ( _sequenceGenerator != null ) { return this; }
    else { return null; }
View Full Code Here

            AccessFactory af = _dd.af;
            TransactionController   dummyTransaction = af.getTransaction( cm );

            boolean retval = updateCurrentValueOnDisk( dummyTransaction, oldValue, newValue, false );
            dummyTransaction.commit();
            dummyTransaction.destroy();

            return retval;
    }

        TransactionController executionTransaction = lcc.getTransactionExecute();
View Full Code Here

                // DERBY-5494, if this commit does not flush log then an
                // unorderly shutdown could lose the update.  Do not use
                // commitNoSync(), and store needs to flush user nested update
                // transaction commits by default.
                nestedTransaction.commit();
                nestedTransaction.destroy();

                if ( escalateToParentTransaction )
                {
                    retval = updateCurrentValueOnDisk( executionTransaction, oldValue, newValue, false );
                }
View Full Code Here

                    }
                }

                if (nested_tc != null)
                {
                    nested_tc.destroy();
                }

    }
  }
View Full Code Here

          if (useTc == nestedTc) {

            // clean up after use of nested transaction,
            // then try again in outer transaction
            useTc = tc;
            nestedTc.destroy();
            continue;
          }
        } else if (se.getMessageId()
                 .equals(SQLState.LANG_OBJECT_ALREADY_EXISTS)) {
          // Ignore "Schema already exists". Another thread has
View Full Code Here

        // We got an non-expected exception, either in
        // the nested transaction or in the outer
        // transaction; we had better pass that on
        if (useTc == nestedTc) {
          nestedTc.destroy();
        }

        throw se;
      }
      break;
View Full Code Here

    // We either succeeded or got LANG_OBJECT_ALREADY_EXISTS.
    // Clean up if we did this in a nested transaction.
    if (useTc == nestedTc) {
      nestedTc.commit();
      nestedTc.destroy();
    }
  }


  /**
 
View Full Code Here

                    }
                }

                if (nested_tc != null)
                {
                    nested_tc.destroy();
                }

    }

    return;
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.