Examples of endTransaction()


Examples of org.apache.isis.core.runtime.system.transaction.IsisTransactionManager.endTransaction()

            case ABORTED:
            case MUST_ABORT:
                Assert.fail("Transaction is in state of '" + state + "'");
                break;
            case IN_PROGRESS:
                transactionManager.endTransaction();
                break;
            default:
                Assert.fail("Unknown transaction state '" + state + "'");
        }
    }
View Full Code Here

Examples of org.apache.isis.core.runtime.system.transaction.IsisTransactionManager.endTransaction()

        if(transaction == null) {
            Assert.fail("No transaction exists");
            return;
        }

        transactionManager.endTransaction();

        final State state = transaction.getState();
        switch(state) {
            case COMMITTED:
                break;
View Full Code Here

Examples of org.apache.isis.core.runtime.system.transaction.IsisTransactionManager.endTransaction()

            case ABORTED:
            case MUST_ABORT:
                Assert.fail("Transaction is in state of '" + state + "'");
                break;
            case IN_PROGRESS:
                transactionManager.endTransaction();
                break;
            default:
                Assert.fail("Unknown transaction state '" + state + "'");
        }
    }
View Full Code Here

Examples of org.apache.isis.core.runtime.system.transaction.IsisTransactionManager.endTransaction()

        // Note - the session will have changed since the earlier call if a user
        // has logged in or out in the action
        // processing above.
        final IsisTransactionManager transactionManager = IsisContext.getPersistenceSession().getTransactionManager();
        if (transactionManager.getTransaction().getState().canCommit()) {
            transactionManager.endTransaction();
            transactionManager.startTransaction();
        }
    }

}
View Full Code Here

Examples of org.apache.isis.core.runtime.system.transaction.IsisTransactionManager.endTransaction()

            case ABORTED:
            case MUST_ABORT:
                Assert.fail("Transaction is in state of '" + state + "'");
                break;
            case IN_PROGRESS:
                transactionManager.endTransaction();
                break;
            default:
                Assert.fail("Unknown transaction state '" + state + "'");
        }
    }
View Full Code Here

Examples of org.apache.isis.runtimes.dflt.runtime.system.transaction.IsisTransactionManager.endTransaction()

            if (validity.isVetoed()) {
                transactionManager.abortTransaction();
                throw JsonApplicationException.create(HttpStatusCode.BAD_REQUEST, objectRepr, validity.getReason());
            }

            transactionManager.endTransaction();
        } finally {
            // in case an exception got thrown somewhere...
            if (!transactionManager.getTransaction().getState().isComplete()) {
                transactionManager.abortTransaction();
            }
View Full Code Here

Examples of org.apache.isis.runtimes.dflt.runtime.system.transaction.IsisTransactionManager.endTransaction()

        // Note - the session will have changed since the earlier call if a user
        // has logged in or out in the action
        // processing above.
        final IsisTransactionManager transactionManager = IsisContext.getPersistenceSession().getTransactionManager();
        if (transactionManager.getTransaction().getState().canCommit()) {
            transactionManager.endTransaction();
            transactionManager.startTransaction();
        }
    }

}
View Full Code Here

Examples of org.apache.isis.runtimes.dflt.runtime.system.transaction.IsisTransactionManager.endTransaction()

    public void process(final Request request) {
        // Note - the session will have changed since the earlier call if a user has logged in or out in the action
        // processing above.
        final IsisTransactionManager transactionManager = IsisContext.getPersistenceSession().getTransactionManager();
        if (transactionManager.getTransaction().getState().canCommit()) {
            transactionManager.endTransaction();
            transactionManager.startTransaction();
        }
    }

}
View Full Code Here

Examples of org.evolizer.core.hibernate.session.api.IEvolizerSession.endTransaction()

      s.saveObject(rev1);
      s.saveObject(rev2);
      s.saveObject(rev3);
      s.saveObject(rev4);
      s.saveObject(rev5);
      s.endTransaction();
   
      s.close();
    } catch (EvolizerException e) {
      fail(e.getMessage());
    }
View Full Code Here

Examples of org.evolizer.core.hibernate.session.api.IEvolizerSession.endTransaction()

  private <T>T saveAndReloadUniqueFromDB(Object object, String reloadQuery, Class<T> resultType) {
    try {
      IEvolizerSession s = fSessionHandler.getCurrentSession(fDBUrl);
      s.startTransaction();
      s.saveObject(object);
      s.endTransaction();

      s.close();

      s = fSessionHandler.getCurrentSession(fDBUrl);
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.