| Package | Description |
|---|---|
| org.springframework.jdbc.datasource.lookup |
Provides a strategy for looking up JDBC DataSources by name.
|
| org.springframework.orm.jpa.persistenceunit |
Internal support for managing JPA persistence units.
|
| Modifier and Type | Class and Description |
|---|---|
class |
BeanFactoryDataSourceLookup
DataSourceLookup implementation based on a Spring BeanFactory. |
class |
JndiDataSourceLookup
JNDI-based
DataSourceLookup implementation. |
class |
MapDataSourceLookup
Simple
DataSourceLookup implementation that relies on a map for doing lookups. |
class |
SingleDataSourceLookup
An implementation of the DataSourceLookup that simply wraps a
single given DataSource, returned for any data source name.
|
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractRoutingDataSource.setDataSourceLookup(DataSourceLookup dataSourceLookup)
Set the DataSourceLookup implementation to use for resolving data source
name Strings in the
targetDataSources map. |
| Modifier and Type | Method and Description |
|---|---|
DataSourceLookup |
DefaultPersistenceUnitManager.getDataSourceLookup()
Return the JDBC DataSourceLookup that provides DataSources for the
persistence provider, resolving data source names in
persistence.xml
against Spring-managed DataSource instances. |
| Modifier and Type | Method and Description |
|---|---|
void |
DefaultPersistenceUnitManager.setDataSourceLookup(DataSourceLookup dataSourceLookup)
Specify the JDBC DataSourceLookup that provides DataSources for the
persistence provider, resolving data source names in
persistence.xml
against Spring-managed DataSource instances. |