public class TenantRoutingDataSource
extends org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource
| Constructor and Description |
|---|
TenantRoutingDataSource() |
| Modifier and Type | Method and Description |
|---|---|
void |
addTenantDataSource(java.lang.String tenantDomain,
java.lang.String dbUrl) |
void |
afterPropertiesSet() |
protected java.lang.Object |
determineCurrentLookupKey() |
java.util.logging.Logger |
getParentLogger() |
void |
removeTenantDataSource(java.lang.String tenantDomain) |
void |
setBaseDataSource(org.apache.commons.dbcp.BasicDataSource baseDataSource) |
void |
setTenantService(org.alfresco.repo.tenant.TenantService tenantService) |
determineTargetDataSource, getConnection, getConnection, resolveSpecifiedDataSource, resolveSpecifiedLookupKey, setDataSourceLookup, setDefaultTargetDataSource, setLenientFallback, setTargetDataSourcespublic void setTenantService(org.alfresco.repo.tenant.TenantService tenantService)
public void setBaseDataSource(org.apache.commons.dbcp.BasicDataSource baseDataSource)
protected java.lang.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(java.lang.String tenantDomain,
java.lang.String dbUrl)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void removeTenantDataSource(java.lang.String tenantDomain)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.util.logging.Logger getParentLogger()
throws java.sql.SQLFeatureNotSupportedException
java.sql.SQLFeatureNotSupportedExceptionCopyright © 2005 - 2013 Alfresco Software, Inc. All Rights Reserved.