public abstract class AbstractDataSourceAdapter extends AbstractUnsupportedOperationDataSource implements AutoCloseable
Datasource.| Constructor and Description |
|---|
AbstractDataSourceAdapter(Map<String,DataSource> dataSourceMap) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Connection |
getConnection(String username,
String password) |
protected org.apache.shardingsphere.core.constant.DatabaseType |
getDatabaseType(Collection<DataSource> dataSources) |
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 org.apache.shardingsphere.core.constant.DatabaseType getDatabaseType(Collection<DataSource> dataSources) throws SQLException
SQLExceptionpublic final Logger getParentLogger()
getParentLogger in interface CommonDataSourcepublic final Connection getConnection(String username, String password) throws SQLException
getConnection in interface DataSourceSQLExceptionpublic void close()
throws Exception
close in interface AutoCloseableExceptionCopyright © 2019 The Apache Software Foundation. All rights reserved.