Package com.sleepycat.bdb

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


        if (isAutoCommit()) {
            try {
                CurrentTransaction currentTxn = view.getCurrentTxn();
                if (currentTxn.getTxn() == null) {
                    currentTxn.beginTxn();
                    return true;
                }
            } catch (DbException e) {
                throw new RuntimeExceptionWrapper(e);
            }
View Full Code Here


    public static DbTxn createTransaction(DbEnv environment) throws DbException {
        // TODO remove dirty hack!
        cachedEnvironment = environment;
        CurrentTransaction currentTxn = CurrentTransaction.getInstance(environment);
        return currentTxn.beginTxn();
        /**
         // TODO temporary hack until BDB supports nested transactions
         if (getTransactionCount() == 0) {
         DbTxn transaction = environment.txnBegin(getTransaction(), TRANSACTION_FLAGS);
         pushTransaction(transaction);
View Full Code Here

    public static DbTxn createTransaction(DbEnv environment) throws DbException {
        // TODO remove dirty hack!
        cachedEnvironment = environment;
        CurrentTransaction currentTxn = CurrentTransaction.getInstance(environment);
        return currentTxn.beginTxn();
        /**
         // TODO temporary hack until BDB supports nested transactions
         if (getTransactionCount() == 0) {
         DbTxn transaction = environment.txnBegin(getTransaction(), TRANSACTION_FLAGS);
         pushTransaction(transaction);
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.