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

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


                        // means that some lock request in the nested
                        // 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!
View Full Code Here


          // no matter what, commit the nested transaction;
                    // 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

    // file only if we upgraded it to be stored in the transactional
    // property set.
    if (upgradeID != null)
      startParams.remove(DataDictionary.DATABASE_ID);

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

    return databaseID;
  }
View Full Code Here

    throws StandardException {

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

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

      propertyValue =
      PropertyUtil.getServiceProperty(tc,
                      key,
                      (String) null);
      if (tc != null) {
      tc.commit();
      tc = null;
      }

    } catch (StandardException se) {
      // Do nothing and just return
View Full Code Here

        TransactionController tc = getTransaction();
        if (tc != null) {
            try {
                props = tc.getProperties();
            } finally {
                tc.commit();
            }
        }

        return props;
    }
View Full Code Here

      propertyValue =
      PropertyUtil.getDatabaseProperty(tc, key);

      if (tc != null) {
      tc.commit();
      tc = null;
      }

    } catch (StandardException se) {
      // Do nothing and just return
View Full Code Here

                        )
                        pass = true;
                }
      }

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

            finally
            {
                // 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; }
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.