public class DefaultConnectionHolder extends Object implements IConnectionHolder
| 构造器和说明 |
|---|
DefaultConnectionHolder(IDataSourceAdapter dsAdapter) |
| 限定符和类型 | 方法和说明 |
|---|---|
Connection |
getConnection() |
DataSourceCfgMeta |
getDataSourceCfgMeta() |
IDialect |
getDialect() |
void |
release()
释放连接
注意:存在事务操作时严禁手动调用此方法,并由事务控制连接何时释放 |
public DefaultConnectionHolder(IDataSourceAdapter dsAdapter) throws Exception
Exceptionpublic DataSourceCfgMeta getDataSourceCfgMeta()
getDataSourceCfgMeta 在接口中 IConnectionHolderpublic Connection getConnection()
getConnection 在接口中 IConnectionHolderpublic void release()
IConnectionHolderrelease 在接口中 IConnectionHolderpublic IDialect getDialect()
getDialect 在接口中 IConnectionHolderCopyright © 2019. All rights reserved.