Examples of commitTxn()


Examples of com.sleepycat.bdb.CurrentTransaction.commitTxn()

     * @throws javax.jms.JMSException if the transaction could not be committed
     */
    public static DbTxn commitTransaction(DbTxn transaction) throws JMSException {
        try {
            CurrentTransaction currentTxn = CurrentTransaction.getInstance(cachedEnvironment);
            currentTxn.commitTxn();
            return null;
        }
        catch (DbException e) {
            throw JMSExceptionHelper.newJMSException("Failed to commit transaction: " + transaction + " in container: " + e, e);
        }
View Full Code Here

Examples of com.sleepycat.bdb.CurrentTransaction.commitTxn()

     * @throws javax.jms.JMSException if the transaction could not be committed
     */
    public static DbTxn commitTransaction(DbTxn transaction) throws JMSException {
        try {
            CurrentTransaction currentTxn = CurrentTransaction.getInstance(cachedEnvironment);
            currentTxn.commitTxn();
            return null;
        }
        catch (DbException e) {
            throw JMSExceptionHelper.newJMSException("Failed to commit transaction: " + transaction + " in container: " + e, e);
        }
View Full Code Here

Examples of org.apache.hadoop.hive.ql.lockmgr.HiveTxnManager.commitTxn()

    // If we've opened a transaction we need to commit or rollback rather than explicitly
    // releasing the locks.
    if (ss.getCurrentTxn() != SessionState.NO_CURRENT_TXN && ss.isAutoCommit()) {
      try {
        if (commit) {
          txnMgr.commitTxn();
        } else {
          txnMgr.rollbackTxn();
        }
      } finally {
        ss.setCurrentTxn(SessionState.NO_CURRENT_TXN);
View Full Code Here

Examples of org.tmatesoft.svn.core.internal.io.fs.FSCommitter.commitTxn()

                    resource.getUserName());
           
            StringBuffer conflictPath = new StringBuffer();
            long newRev = SVNRepository.INVALID_REVISION;
            try {
                newRev = committer.commitTxn(true, true, null, conflictPath);
            } catch (SVNException svne) {
                try {
                    FSCommitter.abortTransaction(resource.getFSFS(), resource.getTxnInfo().getTxnId());
                } catch (SVNException svne2) {
                    //ignore
View Full Code Here

Examples of org.tmatesoft.svn.core.internal.io.fs.FSCommitter.commitTxn()

        StringBuffer buffer = new StringBuffer();
        SVNErrorMessage[] postCommitHookErr = new SVNErrorMessage[1];
        String postCommitErrMessage = null;
        long newRev = -1;
        try {
            newRev = committer.commitTxn(true, true, postCommitHookErr, buffer);
        } catch (SVNException svne) {
            if (postCommitHookErr[0] == null) {
                try {
                    FSCommitter.abortTransaction(fsfs, txnName);
                } catch (SVNException svne1) {
View Full Code Here

Examples of org.tmatesoft.svn.core.internal.io.fs.FSCommitter.commitTxn()

                        "Could not create empty file.", null);
            }
           
            StringBuffer conflictPath = new StringBuffer();
            try {
                committer.commitTxn(true, true, null, conflictPath);
            } catch (SVNException svne) {
                throw DAVException.convertError(svne.getErrorMessage(), HttpServletResponse.SC_CONFLICT, "Conflict when committing ''{0}''.",
                        new Object[] { conflictPath.toString() });
            }
        }
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.