@DataSourceAdapter(value="c3p0") public class C3P0DataSourceAdapter extends AbstractDatabaseDataSourceAdapter
Constructor and Description |
---|
C3P0DataSourceAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
doClose()
由子类实现具体关闭逻辑
|
protected void |
doInitialize()
执行初始化
|
Connection |
getConnection()
获取连接对象
|
DataSource |
getDataSource()
获取数据源
|
doCreateConfigProperties, doCreateDataSourceConfigFile, doInitialize, getDataSourceConfigFileAsStream, getDialect
close, decryptPasswordIfNeed, decryptPasswordIfNeed, getDataSourceConfig, getOwner, initialize, initializeIfNeed, isInitialized
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDataSourceConfig, getOwner, initialize, initializeIfNeed
close
protected void doInitialize() throws Exception
AbstractDatabaseDataSourceAdapter
doInitialize
in class AbstractDatabaseDataSourceAdapter
Exception
- 可能产生的任何异常public void doClose() throws Exception
AbstractDataSourceAdapter
doClose
in class AbstractDatabaseDataSourceAdapter
Exception
- 可能产生的任何异常public Connection getConnection() throws Exception
IDataSourceAdapter
Exception
- 可能产生的异常public DataSource getDataSource()
IDatabaseDataSourceAdapter
Copyright © 2022. All rights reserved.