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

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


        // no matter what, commit the nested transaction; if something
        // bad happened in the child xaction lets not abort the parent
        // here.
        if (nestedTC != null)
        {
          nestedTC.commit();
          nestedTC.destroy();
        }
      }
      aiCache[index] = newValue;
      if (setIdentity)
View Full Code Here


      if (sync)
      {
        if (commitflag == NON_XA)
        {
          // regular commit
          tc.commit();
        }
        else
        {
          // This may be a xa_commit, check overloaded commitflag.
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

      propertyValue =
      PropertyUtil.getDatabaseProperty(tc, key);

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

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

            // logic to catch a ddl that might jump in the middle of the
            // above loop and invalidate the various table control structures
            // which are needed to properly update the indexes.  For example
            // the above loop would corrupt an index added midway through
            // the loop if not properly handled.  See DERBY-1188. 
            nested_tc.commit();
     
    }
    catch (StandardException se)
    {
      throw PublicAPI.wrapStandardException(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!
View Full Code Here

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

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

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

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.