类 DynamicDataSource
- java.lang.Object
-
- org.springframework.jdbc.datasource.AbstractDataSource
-
- org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource
-
- org.shoulder.data.context.DynamicDataSource
-
- 所有已实现的接口:
Wrapper,CommonDataSource,DataSource,org.springframework.beans.factory.InitializingBean
public class DynamicDataSource extends org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource动态数据源决策器- 作者:
- lym
-
-
构造器概要
构造器 构造器 说明 DynamicDataSource(DataSource defaultTargetDataSource, Map<Object,Object> targetDataSources)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected ObjectdetermineCurrentLookupKey()-
从类继承的方法 org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource
afterPropertiesSet, determineTargetDataSource, getConnection, getConnection, isWrapperFor, resolveSpecifiedDataSource, resolveSpecifiedLookupKey, setDataSourceLookup, setDefaultTargetDataSource, setLenientFallback, setTargetDataSources, unwrap
-
从类继承的方法 org.springframework.jdbc.datasource.AbstractDataSource
getLoginTimeout, getLogWriter, getParentLogger, setLoginTimeout, setLogWriter
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 javax.sql.CommonDataSource
createShardingKeyBuilder
-
从接口继承的方法 javax.sql.DataSource
createConnectionBuilder
-
-
-
-
构造器详细资料
-
DynamicDataSource
public DynamicDataSource(DataSource defaultTargetDataSource, Map<Object,Object> targetDataSources)
-
-
方法详细资料
-
determineCurrentLookupKey
protected Object determineCurrentLookupKey()
- 指定者:
determineCurrentLookupKey在类中org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource
-
-