public class SingletonDataSoruceFactory extends Object implements DataSourceFactory
| 限定符和类型 | 字段和说明 |
|---|---|
private DataSource |
dataSource |
| 构造器和说明 |
|---|
SingletonDataSoruceFactory(DataSource dataSource) |
| 限定符和类型 | 方法和说明 |
|---|---|
DataSource |
getDataSource() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetPropertiesprivate final DataSource dataSource
public SingletonDataSoruceFactory(DataSource dataSource)
public DataSource getDataSource() throws SQLException
getDataSource 在接口中 DataSourceFactorySQLExceptionCopyright © 2022. All rights reserved.