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

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


                    // if something bad happened in the child transaction lets
                    // not abort the parent here.
          if (nestedTC != null)
          {
            nestedTC.commit();
            nestedTC.destroy();
          }
        }
      }
    }
View Full Code Here


                    }
                }

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

    }

    return;
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()
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 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

                if ( !se.getMessageId().equals( SQLState.LOCK_TIMEOUT ) ) { throw se; }
            }
            finally
            {
                nestedTransaction.commit();
                nestedTransaction.destroy();
            }
        }
       
        // If we get here, we failed to do the work in the nested transaction.
        // Fall back on the execution transaction
View Full Code Here

          if (se.getMessageId().equals(SQLState.LOCK_TIMEOUT))
          {
            if (nestedTC != null)
            {
            nestedTC.commit();
            nestedTC.destroy();
            nestedTC = null;
            }
            // if we couldn't do this with a nested xaction, retry with
            // parent-- we need to wait this time!
            initiallyCompilable = compilable;
View Full Code Here

          // bad happened in the child xaction lets not abort the parent
          // here.
          if (nestedTC != null)
          {
            nestedTC.commit();
            nestedTC.destroy();
          }
        }
      }
    }
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.