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

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


                    }
                }

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

    }

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

                        // transaction immediately conflicted.  A conflict
                        // with a parent lock would lead to a undetected
                        // deadlock so must give up trying in the nested
                        // transaction and retry with parent transaction.
                        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!
                        // Lock conflicts at this point are with other
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

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

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.