Interface TenantConnectionResolver

All Known Implementing Classes:
DataSourceTenantConnectionResolver

public interface TenantConnectionResolver
Resolves the ConnectionProvider for tenants dynamically.
Author:
Michael Schnell
  • Method Summary

    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 Details

    • 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.