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