mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
17 lines
377 B
Java
17 lines
377 B
Java
package io.ebean.config;
|
|
|
|
/**
|
|
* For multi-tenancy via DB CATALOG supply the catalog given the tenantId.
|
|
*/
|
|
@FunctionalInterface
|
|
public interface TenantCatalogProvider {
|
|
|
|
/**
|
|
* Return the DB catalog for the given tenantId.
|
|
*
|
|
* @param tenantId The current tenant id.
|
|
* @return The DB catalog to use for the given tenant
|
|
*/
|
|
String catalog(Object tenantId);
|
|
}
|