Interface TenantConnectionResolver
-
- All Known Implementing Classes:
DataSourceTenantConnectionResolver
public interface TenantConnectionResolver
Resolves theConnectionProvider
for tenants dynamically.- Author:
- Michael Schnell
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.hibernate.engine.jdbc.connections.spi.ConnectionProvider
resolve(String tenantId)
Returns a connection provider for the current tenant based on the context.
-
-
-
Method Detail
-
resolve
org.hibernate.engine.jdbc.connections.spi.ConnectionProvider resolve(String tenantId)
Returns a connection provider for the current tenant based on the context.- Parameters:
tenantId
- the tenant identifier. Required value that cannot be null.- Returns:
- Hibernate connection provider for the current provider. A non-null value is required.
-
-