Package ac.simons.neo4j.migrations.core
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
Used for configuring the transaction mode in Cypher-based transactions.
-
Enum Constant Summary
Enum ConstantDescriptionRun all statements in one transaction.Runs each statement in a separate transaction. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.static MigrationsConfig.TransactionMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
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
Runs each statement in a separate transaction. May leave your database in an inconsistent state when one statement fails.
-
-
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
-