Enum Class TransactionalHostContextAccessor.Propagation
java.lang.Object
java.lang.Enum<TransactionalHostContextAccessor.Propagation>
com.atlassian.confluence.spring.transaction.interceptor.TransactionalHostContextAccessor.Propagation
- All Implemented Interfaces:
Serializable
,Comparable<TransactionalHostContextAccessor.Propagation>
,Constable
- Enclosing interface:
- TransactionalHostContextAccessor
public static enum TransactionalHostContextAccessor.Propagation
extends Enum<TransactionalHostContextAccessor.Propagation>
Transaction propagation, equivalent to the corresponding values of javax.ejb.TransactionAttributeType
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionUses the current transaction, or throwsTransactionRequiredException
if there is no such transaction.Uses the current transaction, if any, otherwise creates a new transaction.Uses a new transaction, suspending any current transaction. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
REQUIRED
Uses the current transaction, if any, otherwise creates a new transaction. -
REQUIRES_NEW
Uses a new transaction, suspending any current transaction. -
MANDATORY
Uses the current transaction, or throwsTransactionRequiredException
if there is no such transaction.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-