public class TenantRoutingDataSource
extends org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource
| Constructor and Description |
|---|
TenantRoutingDataSource() |
| Modifier and Type | Method and Description |
|---|---|
void |
addTenantDataSource(String tenantDomain,
String dbUrl) |
void |
afterPropertiesSet() |
protected Object |
determineCurrentLookupKey() |
void |
removeTenantDataSource(String tenantDomain) |
void |
setBaseDataSource(org.apache.commons.dbcp.BasicDataSource baseDataSource) |
void |
setTenantService(org.alfresco.repo.tenant.TenantService tenantService) |
determineTargetDataSource, getConnection, getConnection, isWrapperFor, resolveSpecifiedDataSource, resolveSpecifiedLookupKey, setDataSourceLookup, setDefaultTargetDataSource, setLenientFallback, setTargetDataSources, unwrappublic void setTenantService(org.alfresco.repo.tenant.TenantService tenantService)
public void setBaseDataSource(org.apache.commons.dbcp.BasicDataSource baseDataSource)
protected Object determineCurrentLookupKey()
determineCurrentLookupKey in class org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSourcepublic void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanafterPropertiesSet in class org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSourcepublic void addTenantDataSource(String tenantDomain, String dbUrl) throws SQLException
SQLExceptionpublic void removeTenantDataSource(String tenantDomain) throws SQLException
SQLExceptionCopyright © 2005–2018 Alfresco Software. All rights reserved.