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, unwrap
public 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.AbstractRoutingDataSource
public void afterPropertiesSet()
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
afterPropertiesSet
in class org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource
public void addTenantDataSource(String tenantDomain, String dbUrl) throws SQLException
SQLException
public void removeTenantDataSource(String tenantDomain) throws SQLException
SQLException
Copyright © 2005–2017 Alfresco Software. All rights reserved.