public class OrchestrationShardingDataSource extends ShardingDataSource
| 构造器和说明 |
|---|
OrchestrationShardingDataSource(Map<String,DataSource> dataSourceMap,
ShardingRuleConfiguration shardingRuleConfig,
Map<String,Object> configMap,
Properties props,
OrchestrationConfiguration config) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
void |
init()
Initialize for sharding orchestration.
|
getConnection, renewgetConnection, getDatabaseType, getDatabaseType, getLogWriter, getParentLogger, setLogWritergetLoginTimeout, setLoginTimeoutisWrapperFor, recordMethodInvocation, replayMethodsInvocation, throwSQLExceptionIfNecessary, unwrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisWrapperFor, unwrappublic OrchestrationShardingDataSource(Map<String,DataSource> dataSourceMap, ShardingRuleConfiguration shardingRuleConfig, Map<String,Object> configMap, Properties props, OrchestrationConfiguration config) throws SQLException
SQLExceptionpublic void init()
throws SQLException
SQLException - SQL exceptionpublic void close()
close 在接口中 AutoCloseableclose 在类中 ShardingDataSourceCopyright © 2018. All rights reserved.