Package ac.simons.neo4j.migrations.core
Enum MigrationChain.ChainBuilderMode
java.lang.Object
java.lang.Enum<MigrationChain.ChainBuilderMode>
ac.simons.neo4j.migrations.core.MigrationChain.ChainBuilderMode
- All Implemented Interfaces:
Serializable
,Comparable<MigrationChain.ChainBuilderMode>
- Enclosing interface:
- MigrationChain
Used for selecting how the
MigrationChain
should be computed.- Since:
- 1.4.0
- See Also:
-
Enum Constant Summary
Enum ConstantDescriptionCreate the chain of applied and pending migrations by comparing the locally discovered migrations and the migrations applied remotely.Build a chain only based on locally discovered migrations and assume all migrations are pending.Build a chain only based on remotely applied migrations and assume all migrations are applied. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.static MigrationChain.ChainBuilderMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
COMPARE
Create the chain of applied and pending migrations by comparing the locally discovered migrations and the migrations applied remotely. Validation will be performed (such as checking for the correct number of migrations and checksum comparison). -
LOCAL
Build a chain only based on locally discovered migrations and assume all migrations are pending. No validation will be performed. -
REMOTE
Build a chain only based on remotely applied migrations and assume all migrations are applied. No validation will be performed.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-