Package org.nutz.trans

Examples of org.nutz.trans.Transaction


public class NutDaoRunner implements DaoRunner {

  private static final Log log = Logs.get();

  public void run(DataSource dataSource, ConnCallback callback) {
    Transaction t = Trans.get();
    // 有事务
    if (null != t) {
      Connection conn = null;
      Savepoint sp = null;
      try {
        conn = t.getConnection(dataSource);
        sp = conn.setSavepoint();
        callback.invoke(conn);

      }
      catch (Exception e) {
View Full Code Here


public class NutDaoRunner implements DaoRunner {

    private static final Log log = Logs.get();

    public void run(DataSource dataSource, ConnCallback callback) {
        Transaction t = Trans.get();
        // 有事务
        if (null != t) {
            Connection conn = null;
            Savepoint sp = null;
            try {
                conn = t.getConnection(dataSource);
                sp = conn.setSavepoint();
                callback.invoke(conn);

            }
            catch (Exception e) {
View Full Code Here

TOP

Related Classes of org.nutz.trans.Transaction

Copyright © 2018 www.massapicom. 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.