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) |
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 static MultiTenancyStrategy determineMultiTenancyStrategy(Map properties)
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.