public enum MultiTenancyStrategy extends Enum<MultiTenancyStrategy>
| Enum Constant and Description |
|---|
DATABASE
Multi-tenancy implemented as separate databases.
|
DISCRIMINATOR
Multi-tenancy implemented by use of discriminator columns.
|
NONE
No multi-tenancy.
|
SCHEMA
Multi-tenancy implemented as separate schemas.
|
| Modifier and Type | Method and Description |
|---|---|
static MultiTenancyStrategy |
determineMultiTenancyStrategy(Map properties)
Extract the MultiTenancyStrategy from the setting map.
|
boolean |
requiresMultiTenantConnectionProvider()
Does this strategy indicate a requirement for the specialized
MultiTenantConnectionProvider, rather than the
traditional ConnectionProvider? |
static MultiTenancyStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MultiTenancyStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MultiTenancyStrategy DISCRIMINATOR
public static final MultiTenancyStrategy SCHEMA
public static final MultiTenancyStrategy DATABASE
public static final MultiTenancyStrategy NONE
public static MultiTenancyStrategy[] values()
for (MultiTenancyStrategy c : MultiTenancyStrategy.values()) System.out.println(c);
public static MultiTenancyStrategy 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 requiresMultiTenantConnectionProvider()
MultiTenantConnectionProvider, rather than the
traditional ConnectionProvider?true indicates a MultiTenantConnectionProvider is required; false indicates it is not.public static MultiTenancyStrategy determineMultiTenancyStrategy(Map properties)
properties - The map of settings.NONE is always the default.Copyright © 2001-2022 Red Hat, Inc. All Rights Reserved.