public class DBPool_Druid extends DBConnectionPool
┌─┐ ┌─┐
┌──┘ ┴───────┘ ┴──┐
│ │
│ ─── │
│ ─┬┘ └┬─ │
│ │
│ ─┴─ │
│ │
└───┐ ┌───┘
│ │
│ │
│ │
│ └──────────────┐
│ │
│ ├─┐
│ author:lelouch ┌─┘
│ │
└─┐ ┐ ┌───────┬──┐ ┌──┘
│ ─┤ ─┤ │ ─┤ ─┤
└──┴──┘ └──┴──┘
神兽保佑
代码无BUG!
| 构造器和说明 |
|---|
DBPool_Druid(PoolConfig poolConfig) |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
closeConnection(Connection connection) |
Connection |
getConnection()
获取一个Connection对象
|
DataSource |
getDataSource()
获取一个Connection对象
|
void |
shutdown()
关闭数据源
|
public DBPool_Druid(PoolConfig poolConfig)
poolConfig - public static void closeConnection(Connection connection)
public Connection getConnection()
DBConnectionPoolgetConnection 在类中 DBConnectionPoolpublic void shutdown()
DBConnectionPoolshutdown 在类中 DBConnectionPoolpublic DataSource getDataSource()
DBConnectionPoolgetDataSource 在类中 DBConnectionPoolCopyright © 2020. All rights reserved.