练习之模拟数据库连接池

作者:源码世界时间:2014-03-13分类:程序员碎语评论:0浏览:6196
package com.pluser.database;

import java.sql.Connection;
import java.sql.SQLException;

/**
 * 
 * @author Pluser
 *
 */
public class DriverManager {
	
	private static ConnectionPool pool = ConnectionPool.getInstance();
	
	public static Connection getConnection() throws SQLException {
		
		return pool.getConnection();
	}
}
标签:Java  
返回顶部
分享按钮