001package io.ebean.config;
002
003/**
004 * For multi-tenancy via DB CATALOG supply the catalog given the tenantId.
005 */
006@FunctionalInterface
007public interface TenantCatalogProvider {
008
009  /**
010   * Return the DB catalog for the given tenantId.
011   *
012   * @param tenantId The current tenant id.
013   * @return The DB catalog to use for the given tenant
014   */
015  String catalog(Object tenantId);
016}