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

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


        // bad happened in the child xaction lets not abort the parent
        // here.
        if (nestedTC != null)
        {
          nestedTC.commit();
          nestedTC.destroy();
        }
      }
      aiCache[index] = newValue;
      if (setIdentity)
        identityVal = newValue.getLong();
View Full Code Here


            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

                    }
                }

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

            }
            catch (StandardException se)
            {
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

                _sequenceGenerator = createSequenceGenerator( subTransaction );
            }
            finally
            {
                subTransaction.commit();
                subTransaction.destroy();
            }
        }

    if ( _sequenceGenerator != null ) { return this; }
    else { return null; }
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

    // property set.
    if (upgradeID != null)
      startParams.remove(DataDictionary.DATABASE_ID);

    tc.commit();
    tc.destroy();

    return databaseID;
  }

  /*
 
View Full Code Here

    TransactionController tc = af.getTransaction(
                    ContextService.getFactory().getCurrentContextManager());
    Properties dbProps = tc.getProperties();
    tc.commit();
    tc.destroy();

    return dbProps;
  }

  protected void bootResourceAdapter(boolean create, Properties allParams) {
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.