Package com.skyline.energy.dataaccess.jdbc

Examples of com.skyline.energy.dataaccess.jdbc.ConnectionHolder.reduceCounter()


      ConnectionHolder conHolder = txObject.getConnectionHolder();
      if (conHolder != null && conHolder.getCurrentConnection() != null) {
        Connection conInTx = conHolder.getCurrentConnection();
        if (conInTx.equals(con)) {// 当前连接和事务处于同一事务,不关闭连接
          conHolder.reduceCounter();
          return;
        }
      }

      // 不在同一事务中,直接关闭连接
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.