Package ac.simons.neo4j.migrations.core
Enum ValidationResult.Outcome
- All Implemented Interfaces:
Serializable
,Comparable<ValidationResult.Outcome>
- Enclosing class:
- ValidationResult
The outcome of the validation. The outcome itself is agnostic to the validity, this is up to the result to decide.
-
Enum Constant Summary
Enum ConstantDescriptionSome migrations have been changed since they have been applied to the target database or their version doesn't fit anymore.The target database has not been fully migrated, meaning there are resolved migrations that have not been applied.Some migrations have been applied to the target database that cannot be resolved locally any longer.The database is in an undefined state.The combined state of migrations resolved and applied to the target database is valid. -
Method Summary
Modifier and TypeMethodDescriptionstatic ValidationResult.Outcome
Returns the enum constant of this type with the specified name.static ValidationResult.Outcome[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
UNDEFINED
The database is in an undefined state. -
VALID
The combined state of migrations resolved and applied to the target database is valid. -
INCOMPLETE_DATABASE
The target database has not been fully migrated, meaning there are resolved migrations that have not been applied. The database can be brought into a valid state viaMigrations.validate()
. -
INCOMPLETE_MIGRATIONS
Some migrations have been applied to the target database that cannot be resolved locally any longer. The database must be repaired. -
DIFFERENT_CONTENT
Some migrations have been changed since they have been applied to the target database or their version doesn't fit anymore. The database must be repaired.
-
-
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
-