接口 | 说明 |
---|---|
Constant |
Constant of Connections
|
类 | 说明 |
---|---|
DefaultConnectionPool |
There is a one-to-one relationship between The connection pool object and
the data source object.
|
DefaultDataSource |
Local data source
1.Create new datasource from jdbc config
DriverDataSource dds = new DriverDataSource(new DriverProperties());
2.Create new datasource from context of server just like Tomcat锟斤拷
Context ctx = new InitialContext();
DataSource ds = ctx.lookup("jdbc/db");
3.Create new datasource from Persistence frame
ConnectionPoolServer.initPool();
DataSource ds = ConnectionPoolContext.getDataSource("mysql");
|
MultiConnectionPool |
MultiConnectionPool is a container of DefaultConnectionPool.Users could manage connections
which is from different datasource by MultiConnectionPool.
|
PoolConnection |
PoolConnection is working with connection pool and
it wraps the real connection from jdbc drivers.
|
PoolContext |
Context of Connection Pool
|
PoolDataSource |
PoolDataSource for connection pool
|