public enum IndexManagementStrategy extends Enum<IndexManagementStrategy>
| Enum Constant and Description |
|---|
CREATE
Indexes - and all their contents - will be deleted and newly created upon session factory initialization.
|
CREATE_DELETE
The same as
CREATE, but indexes - and all their contents - will be deleted upon session factory
shut-down. |
MERGE
Upon session factory initialization, index mappings will be merged with existing ones, causing an exception if a
mapping to be merged is not compatible with the existing one.
|
NONE
Indexes will never be created or deleted.
|
| Modifier and Type | Method and Description |
|---|---|
static IndexManagementStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IndexManagementStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IndexManagementStrategy NONE
public static final IndexManagementStrategy MERGE
public static final IndexManagementStrategy CREATE
public static final IndexManagementStrategy CREATE_DELETE
CREATE, but indexes - and all their contents - will be deleted upon session factory
shut-down.public static IndexManagementStrategy[] values()
for (IndexManagementStrategy c : IndexManagementStrategy.values()) System.out.println(c);
public static IndexManagementStrategy 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 nullCopyright © 2006–2016 Hibernate. All rights reserved.