public class MultiDataSource
extends org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource
| Modifier and Type | Class and Description |
|---|---|
static interface |
MultiDataSource.CatalogConverter |
static class |
MultiDataSource.SimpleCatalogConverter |
| Constructor and Description |
|---|
MultiDataSource() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
protected java.lang.Object |
determineCurrentLookupKey() |
java.lang.String |
getCatalog() |
java.sql.Connection |
getConnection() |
void |
setCatalogConverter(MultiDataSource.CatalogConverter catalogConverter) |
determineTargetDataSource, getConnection, getResolvedDataSources, getResolvedDefaultDataSource, isWrapperFor, resolveSpecifiedDataSource, resolveSpecifiedLookupKey, setDataSourceLookup, setDefaultTargetDataSource, setLenientFallback, setTargetDataSources, unwrappublic void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanafterPropertiesSet in class org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSourcepublic java.sql.Connection getConnection()
throws java.sql.SQLException
getConnection in interface javax.sql.DataSourcegetConnection in class org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSourcejava.sql.SQLExceptionpublic java.lang.String getCatalog()
protected java.lang.Object determineCurrentLookupKey()
determineCurrentLookupKey in class org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSourcepublic void setCatalogConverter(MultiDataSource.CatalogConverter catalogConverter)