@DataSourceAdapter(value="default") public class DefaultDataSourceAdapter extends AbstractDatabaseDataSourceAdapter
Constructor and Description |
---|
DefaultDataSourceAdapter() |
Modifier and Type | Method and Description |
---|---|
protected void |
doInitialize()
执行初始化
|
Connection |
getConnection()
获取连接对象
|
DataSource |
getDataSource()
获取数据源
|
doClose, 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 Connection getConnection() throws Exception
IDataSourceAdapter
Exception
- 可能产生的异常public DataSource getDataSource()
IDatabaseDataSourceAdapter
Copyright © 2022. All rights reserved.