Enum ValidationResult.Outcome

java.lang.Object
java.lang.Enum<ValidationResult.Outcome>
ac.simons.neo4j.migrations.core.ValidationResult.Outcome
All Implemented Interfaces:
Serializable, Comparable<ValidationResult.Outcome>
Enclosing class:
ValidationResult

public static enum ValidationResult.Outcome extends Enum<ValidationResult.Outcome>
The outcome of the validation. The outcome itself is agnostic to the validity, this is up to the result to decide.
  • Enum Constant Details

    • UNDEFINED

      public static final ValidationResult.Outcome UNDEFINED
      The database is in an undefined state.
    • VALID

      public static final ValidationResult.Outcome VALID
      The combined state of migrations resolved and applied to the target database is valid.
    • INCOMPLETE_DATABASE

      public static final ValidationResult.Outcome 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 via Migrations.validate().
    • INCOMPLETE_MIGRATIONS

      public static final ValidationResult.Outcome 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

      public static final ValidationResult.Outcome 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

      public static ValidationResult.Outcome[] 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

      public static ValidationResult.Outcome valueOf(String name)
      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 name
      NullPointerException - if the argument is null