程序包 org.springframework.jdbc.datasource.lookup
Provides a strategy for looking up JDBC DataSources by name.
接口概要 接口 说明 DataSourceLookup Strategy interface for looking up DataSources by name.类概要 类 说明 AbstractRoutingDataSource AbstractDataSource
implementation that routesAbstractRoutingDataSource.getConnection()
calls to one of various target DataSources based on a lookup key.BeanFactoryDataSourceLookup DataSourceLookup
implementation based on a SpringBeanFactory
.IsolationLevelDataSourceRouter DataSource that routes to one of various target DataSources based on the current transaction isolation level.JndiDataSourceLookup JNDI-basedDataSourceLookup
implementation.MapDataSourceLookup SimpleDataSourceLookup
implementation that relies on a map for doing lookups.SingleDataSourceLookup An implementation of the DataSourceLookup that simply wraps a single given DataSource, returned for any data source name.异常错误概要 异常错误 说明 DataSourceLookupFailureException Exception to be thrown by a DataSourceLookup implementation, indicating that the specified DataSource could not be obtained.