public abstract class AbstractDataSourceAdapter extends AbstractUnsupportedOperationDataSource implements AutoCloseable
Datasource.| 构造器和说明 |
|---|
AbstractDataSourceAdapter(Map<String,DataSource> dataSourceMap) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
Connection |
getConnection(String username,
String password) |
protected DatabaseType |
getDatabaseType(Collection<DataSource> dataSources) |
Map<String,DataSource> |
getDataSourceMap()
Get data source map.
|
Logger |
getParentLogger() |
getLoginTimeout, setLoginTimeoutisWrapperFor, recordMethodInvocation, replayMethodsInvocation, unwrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConnectiongetLogWriter, setLogWriterisWrapperFor, unwrappublic AbstractDataSourceAdapter(Map<String,DataSource> dataSourceMap) throws SQLException
SQLExceptionprotected final DatabaseType getDatabaseType(Collection<DataSource> dataSources) throws SQLException
SQLExceptionpublic final Map<String,DataSource> getDataSourceMap()
public final Logger getParentLogger()
getParentLogger 在接口中 CommonDataSourcepublic final Connection getConnection(String username, String password) throws SQLException
getConnection 在接口中 DataSourceSQLExceptionpublic void close()
close 在接口中 AutoCloseableCopyright © 2019. All rights reserved.