Enum Propagation
- All Implemented Interfaces:
Comparable<Propagation>
What a
Transactional method does about a transaction that is already
open on the calling thread. Spring's meanings, one for one.-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionJoins the open transaction, and refuses to run without one.Runs in a savepoint of the open transaction, which a failure rolls back to without failing the outer transaction; opens one when none is open.Refuses to run inside a transaction.Suspends the open transaction, if any, and runs without one.Joins the open transaction, or opens one.Suspends the open transaction, if any, and opens its own on another connection.Joins the open transaction, or runs without one. -
Method Summary
Modifier and TypeMethodDescriptionstatic PropagationReturns the enum constant of this type with the specified name.static Propagation[]values()Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class Enum
clone, compareTo, equals, getDeclaringClass, getEnumValues, hashCode, name, ordinal, setEnumValues, toString, valueOf
-
Enum Constant Details
-
REQUIRED
Joins the open transaction, or opens one. The default. -
SUPPORTS
Joins the open transaction, or runs without one. -
MANDATORY
Joins the open transaction, and refuses to run without one. -
REQUIRES_NEW
Suspends the open transaction, if any, and opens its own on another connection. It commits or rolls back independently of the outer one. -
NOT_SUPPORTED
Suspends the open transaction, if any, and runs without one. -
NEVER
Refuses to run inside a transaction. -
NESTED
Runs in a savepoint of the open transaction, which a failure rolls back to without failing the outer transaction; opens one when none is open.
-
-
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
-