Package org.fto.jthink.jdbc

Examples of org.fto.jthink.jdbc.ConnectionPool.returnConnection()


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


        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
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.