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

public static enum MigrationChain.ChainBuilderMode extends Enum<MigrationChain.ChainBuilderMode>
Used for selecting how the MigrationChain should be computed.
Since:
1.4.0
See Also:
  • Enum Constant Details

    • COMPARE

      public static final MigrationChain.ChainBuilderMode 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

      public static final MigrationChain.ChainBuilderMode LOCAL
      Build a chain only based on locally discovered migrations and assume all migrations are pending. No validation will be performed.
    • REMOTE

      public static final MigrationChain.ChainBuilderMode REMOTE
      Build a chain only based on remotely applied migrations and assume all migrations are applied. No validation will be performed.
  • Method Details

    • values

      public static MigrationChain.ChainBuilderMode[] 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 MigrationChain.ChainBuilderMode 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