Enum MigrationsConfig.TransactionMode

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

public static enum MigrationsConfig.TransactionMode extends Enum<MigrationsConfig.TransactionMode>
Used for configuring the transaction mode in Cypher-based transactions.
  • Enum Constant Details

    • PER_MIGRATION

      public static final MigrationsConfig.TransactionMode PER_MIGRATION
      Run all statements in one transaction. May need more memory, but it's generally safer. Either the migration runs as a whole or not at all.
    • PER_STATEMENT

      public static final MigrationsConfig.TransactionMode PER_STATEMENT
      Runs each statement in a separate transaction. May leave your database in an inconsistent state when one statement fails.
  • Method Details

    • values

      public static MigrationsConfig.TransactionMode[] 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 MigrationsConfig.TransactionMode 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