public class DataSourceTenantConnectionResolver extends Object implements TenantConnectionResolver
| Constructor and Description |
|---|
DataSourceTenantConnectionResolver() |
DataSourceTenantConnectionResolver(String persistenceUnitName,
String dataSourceName,
org.hibernate.MultiTenancyStrategy multiTenancyStrategy,
String multiTenancySchemaDataSourceName) |
| Modifier and Type | Method and Description |
|---|---|
org.hibernate.engine.jdbc.connections.spi.ConnectionProvider |
resolve(String tenantId)
Returns a connection provider for the current tenant based on the context.
|
public org.hibernate.engine.jdbc.connections.spi.ConnectionProvider resolve(String tenantId)
TenantConnectionResolverresolve in interface TenantConnectionResolvertenantId - the tenant identifier. Required value that cannot be null.Copyright © 2021 JBoss by Red Hat. All rights reserved.