Package org.jooq.impl

Examples of org.jooq.impl.DefaultConnectionProvider.commit()


                // DSLContext object to it
                tx.run(DSL.using(configuration));

                // If we get here, then commit the
                // transaction
                c.commit();
            }
            catch (RuntimeException e) {

                // Any exception will cause a rollback
                c.rollback();
View Full Code Here


    } catch (Exception e) {
      //commit transaction only if rollback didn't occur
      if (rollbackIfNecessary(transactional, e, conn)) {
        logger.debug("Committing JDBC transaction");
        conn.commit();
        logger.debug("Enabling auto commit for this thread");
        conn.setAutoCommit(true);
      }

      //propagate whatever exception is thrown anyway
View Full Code Here

    //everything was normal so commit the txn (do not move into try block above as it
    //  interferes with the advised method's throwing semantics)
    try {
      logger.debug("Committing JDBC transaction");
      conn.commit();
      logger.debug("Enabling auto commit for this thread");
      conn.setAutoCommit(true);
    } finally {
      //close the em if necessary
      if (null != didWeStartWork.get() ) {
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.