Package org.fto.jthink.jdbc

Examples of org.fto.jthink.jdbc.ConnectionPool


      while(keysIT.hasNext()){
        String connId = (String)keysIT.next();
        Connection conn = (Connection)openedConnsHM.get(connId);
        /* 如果采用了连接池管理连接 */
        if(useConnectionPool(connId)){
          ConnectionPool connPool = ConnectionPool.getConnectionPool(connId);
          /* 将活动连接返回到连接池 */
          connPool.returnConnection(conn);
        }else{
          /* 释放连接 */
          conn.close();
        }
      }
View Full Code Here


      Iterator keysIT = openedConnsHM.keySet().iterator();
      while(keysIT.hasNext()){
        String connId = (String)keysIT.next();
        Connection conn = (Connection)openedConnsHM.get(connId);
        if(useConnectionPool(connId)){
          ConnectionPool connPool = ConnectionPool.getConnectionPool(connId);
          /* 将活动连接返回到连接池 */
          connPool.returnConnection(conn);
        }else{
          /* 释放连接 */
          conn.close();
        }
      }
View Full Code Here

TOP

Related Classes of org.fto.jthink.jdbc.ConnectionPool

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.