程序包 amo.lib.dynamic

类 DynamicDataSource

java.lang.Object
org.springframework.jdbc.datasource.AbstractDataSource
org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource
amo.lib.dynamic.DynamicDataSource
所有已实现的接口:
Wrapper, CommonDataSource, DataSource, org.springframework.beans.factory.InitializingBean

public class DynamicDataSource
extends org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource
动态获取数据源Key
  • 字段概要

    从类继承的字段 org.springframework.jdbc.datasource.AbstractDataSource

    logger
  • 构造器概要

    构造器 
    构造器 说明
    DynamicDataSource()  
  • 方法概要

    修饰符和类型 方法 说明
    protected Object determineCurrentLookupKey()  

    从类继承的方法 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
  • 构造器详细资料

  • 方法详细资料

    • determineCurrentLookupKey

      protected Object determineCurrentLookupKey()
      指定者:
      determineCurrentLookupKey 在类中 org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource