public class ShardingDataSource extends AbstractDataSourceAdapter
| Constructor and Description |
|---|
ShardingDataSource(Map<String,DataSource> dataSourceMap,
org.apache.shardingsphere.core.rule.ShardingRule shardingRule) |
ShardingDataSource(Map<String,DataSource> dataSourceMap,
org.apache.shardingsphere.core.rule.ShardingRule shardingRule,
Properties props) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
ShardingConnection |
getConnection() |
getConnection, getDatabaseType, getParentLoggergetLoginTimeout, setLoginTimeoutisWrapperFor, recordMethodInvocation, replayMethodsInvocation, unwrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLogWriter, setLogWriterisWrapperFor, unwrappublic ShardingDataSource(Map<String,DataSource> dataSourceMap, org.apache.shardingsphere.core.rule.ShardingRule shardingRule) throws SQLException
SQLExceptionpublic ShardingDataSource(Map<String,DataSource> dataSourceMap, org.apache.shardingsphere.core.rule.ShardingRule shardingRule, Properties props) throws SQLException
SQLExceptionpublic final ShardingConnection getConnection()
public final void close()
throws Exception
close in interface AutoCloseableclose in class AbstractDataSourceAdapterExceptionCopyright © 2019 The Apache Software Foundation. All rights reserved.