# Package org.springframework.jdbc.datasource.lookup

@NonNullApi @NonNullFields package org.springframework.jdbc.datasource.lookup
Provides a strategy for looking up JDBC DataSources by name.

Related Packages
Package
Description
org.springframework.jdbc.datasource
Provides a utility class for easy DataSource access, a PlatformTransactionManager for a single DataSource, and various simple DataSource implementations.
org.springframework.jdbc.datasource.embedded
Provides extensible support for creating embedded database instances.
org.springframework.jdbc.datasource.init
Provides extensible support for initializing databases through scripts.
Class
Description
AbstractRoutingDataSource
Abstract `DataSource` implementation that routes `AbstractRoutingDataSource.getConnection()` calls to one of various target DataSources based on a lookup key.
BeanFactoryDataSourceLookup
`DataSourceLookup` implementation based on a Spring `BeanFactory`.
DataSourceLookup
Strategy interface for looking up DataSources by name.
DataSourceLookupFailureException
Exception to be thrown by a DataSourceLookup implementation, indicating that the specified DataSource could not be obtained.
IsolationLevelDataSourceRouter
DataSource that routes to one of various target DataSources based on the current transaction isolation level.
JndiDataSourceLookup
JNDI-based `DataSourceLookup` implementation.
MapDataSourceLookup
Simple `DataSourceLookup` 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.