Examples of beginTxn()


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

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

    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

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

    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

Examples of org.activejpa.jpa.JPAContext.beginTxn()

 
  protected static <T> T execute(Executor<T> executor, boolean readOnly) {
    JPAContext context = JPA.instance.getDefaultConfig().getContext();
    boolean beganTxn = false;
    if (! context.isTxnOpen()) {
      context.beginTxn();
      beganTxn = true;
    }
    try {
      return executor.execute(getEntityManager());
    } finally {
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.