Enum MigrationState

java.lang.Object
java.lang.Enum<MigrationState>
com.codename1.migration.MigrationState
All Implemented Interfaces:
Comparable<MigrationState>

public enum MigrationState extends Enum<MigrationState>
Where one migration stands, as reported by Migrator.info().
  • Enum Constant Details

    • PENDING

      public static final MigrationState PENDING
      Carried by this build and not applied yet.
    • SUCCESS

      public static final MigrationState SUCCESS
      Applied.
    • FAILED

      public static final MigrationState FAILED
      Applied and failed; the database may hold half of it.
    • BASELINE

      public static final MigrationState BASELINE
      The baseline marker: everything up to this version is taken as already present.
    • BELOW_BASELINE

      public static final MigrationState BELOW_BASELINE
      At or below the baseline, so it is never applied.
    • MISSING

      public static final MigrationState MISSING
      Applied, and no longer carried by this build.
    • FUTURE

      public static final MigrationState FUTURE
      Applied by a newer build: its version is above everything this build carries.
    • IGNORED

      public static final MigrationState IGNORED
      Not applied, and older than the newest applied version.
    • OUTDATED

      public static final MigrationState OUTDATED
      A repeatable migration whose script changed since it last ran.
    • SUPERSEDED

      public static final MigrationState SUPERSEDED
      An earlier run of a repeatable migration that a later run replaced.
    • ABOVE_TARGET

      public static final MigrationState ABOVE_TARGET
      Above the configured target version.
  • Method Details

    • values

      public static MigrationState[] 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 MigrationState 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