@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, getDialectclose, decryptPasswordIfNeed, decryptPasswordIfNeed, getDataSourceConfig, getOwner, initialize, initializeIfNeed, isInitializedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDataSourceConfig, getOwner, initialize, initializeIfNeedcloseprotected void doInitialize()
throws Exception
AbstractDatabaseDataSourceAdapterdoInitialize in class AbstractDatabaseDataSourceAdapterException - 可能产生的任何异常public void doClose()
throws Exception
AbstractDataSourceAdapterdoClose in class AbstractDatabaseDataSourceAdapterException - 可能产生的任何异常public Connection getConnection() throws Exception
IDataSourceAdapterException - 可能产生的异常public DataSource getDataSource()
IDatabaseDataSourceAdapterCopyright © 2022. All rights reserved.