- All Implemented Interfaces:
Serializable,Comparable<AutoIndexMode>,Constable
Denotes the types of auto indexing that can be done by the OGM at startup.
- Author:
- Mark Angrish
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRemoves all indexes and constraints on startup then creates all indexes and constraints defined in metadata.Runs validate then creates a file (in same dir where launched) with the cypher used to build indexes and constraints.No indexing will be performed.Creates all missing indexes and constraints.Ensures that all constraints and indexes exist on startup or will throw a Runtime exception. -
Method Summary
Modifier and TypeMethodDescriptionstatic AutoIndexModefromString(String name) Parses an option name into the Enumeration type it represents.getName()static AutoIndexModeReturns the enum constant of this class with the specified name.static AutoIndexMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
No indexing will be performed. -
ASSERT
Removes all indexes and constraints on startup then creates all indexes and constraints defined in metadata. -
UPDATE
Creates all missing indexes and constraints.If there is an index in the database and constraint in the metadata the index is dropped and constraint created. (and vise versa).
Other indexes and constraints are left untouched.
NOTE: When a field with index or constraint is renamed new index or constraint will be created. Existing for the old name will be left untouched.
-
VALIDATE
Ensures that all constraints and indexes exist on startup or will throw a Runtime exception. -
DUMP
Runs validate then creates a file (in same dir where launched) with the cypher used to build indexes and constraints.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
fromString
Parses an option name into the Enumeration type it represents.- Parameters:
name- The lowercase name to parse.- Returns:
- The
AutoIndexModethis name represents.
-
getName
-