public enum TenantMode extends Enum<TenantMode>
Enum Constant and Description |
---|
CATALOG
Each Tenant has their own Database but with in connection pool
|
DB
Each Tenant has their own Database (javax.sql.DataSource)
|
DB_WITH_MASTER
Each Tenant has their own Database (javax.sql.DataSource), and there is also one master-database
(that holds configuration e.g.)
|
NONE
No multi-tenancy.
|
PARTITION
Tenants share tables but have a discriminator/partition column that partitions the data.
|
SCHEMA
Each Tenant has their own Database schema.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isDdlEnabled()
Returns true, if DDL is enabled.
|
boolean |
isDynamicDataSource()
Return true if the DataSource is not available on bootup.
|
static TenantMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TenantMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TenantMode NONE
public static final TenantMode DB
public static final TenantMode SCHEMA
public static final TenantMode CATALOG
public static final TenantMode PARTITION
public static final TenantMode DB_WITH_MASTER
public static TenantMode[] values()
for (TenantMode c : TenantMode.values()) System.out.println(c);
public static TenantMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isDynamicDataSource()
public boolean isDdlEnabled()
Copyright © 2019. All rights reserved.