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

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


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

    return dbProps;
  }

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

        // 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

          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

                        // deadlock so must give up trying in the nested
                        // transaction and retry with parent transaction.
            if (nestedTC != null)
            {
                            nestedTC.commit();
                            nestedTC.destroy();
                            nestedTC = null;
            }

            // if we couldn't do this with a nested transaction,
                        // retry with parent-- we need to wait this time!
View Full Code Here

                    // 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

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.