Class TenantAwareDataSource
java.lang.Object
org.activiti.engine.impl.cfg.multitenant.TenantAwareDataSource
- All Implemented Interfaces:
Wrapper,CommonDataSource,DataSource
Deprecated.
multi-tenant code will be removed in future version of Activiti and Activiti Cloud
A
DataSource implementation that switches the currently used datasource based on the
current values of the TenantInfoHolder.
When a Connection is requested from this DataSource, the correct DataSource
for the current tenant will be determined and used.
Heavily influenced and inspired by Spring's AbstractRoutingDataSource.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Map<Object, DataSource> Deprecated.protected TenantInfoHolderDeprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDataSource(Object key, DataSource dataSource) Deprecated.Deprecated.getConnection(String username, String password) Deprecated.protected DataSourceDeprecated.Deprecated.intDeprecated.Deprecated.Deprecated.booleanisWrapperFor(Class<?> iface) Deprecated.voidremoveDataSource(Object key) Deprecated.voidsetDataSources(Map<Object, DataSource> dataSources) Deprecated.voidsetLoginTimeout(int seconds) Deprecated.voidsetLogWriter(PrintWriter out) Deprecated.<T> TDeprecated.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.sql.CommonDataSource
createShardingKeyBuilderMethods inherited from interface javax.sql.DataSource
createConnectionBuilder
-
Field Details
-
tenantInfoHolder
Deprecated. -
dataSources
Deprecated.
-
-
Constructor Details
-
TenantAwareDataSource
Deprecated.
-
-
Method Details
-
addDataSource
Deprecated. -
removeDataSource
Deprecated. -
getConnection
Deprecated.- Specified by:
getConnectionin interfaceDataSource- Throws:
SQLException
-
getConnection
Deprecated.- Specified by:
getConnectionin interfaceDataSource- Throws:
SQLException
-
getCurrentDataSource
Deprecated. -
getLoginTimeout
Deprecated.- Specified by:
getLoginTimeoutin interfaceCommonDataSource- Specified by:
getLoginTimeoutin interfaceDataSource- Throws:
SQLException
-
getParentLogger
Deprecated.- Specified by:
getParentLoggerin interfaceCommonDataSource- Throws:
SQLFeatureNotSupportedException
-
unwrap
Deprecated.- Specified by:
unwrapin interfaceWrapper- Throws:
SQLException
-
isWrapperFor
Deprecated.- Specified by:
isWrapperForin interfaceWrapper- Throws:
SQLException
-
getDataSources
Deprecated. -
setDataSources
Deprecated. -
getLogWriter
Deprecated.- Specified by:
getLogWriterin interfaceCommonDataSource- Specified by:
getLogWriterin interfaceDataSource- Throws:
SQLException
-
setLogWriter
Deprecated.- Specified by:
setLogWriterin interfaceCommonDataSource- Specified by:
setLogWriterin interfaceDataSource- Throws:
SQLException
-
setLoginTimeout
Deprecated.- Specified by:
setLoginTimeoutin interfaceCommonDataSource- Specified by:
setLoginTimeoutin interfaceDataSource- Throws:
SQLException
-