Enum Class AbstractScheduledAction.TransactionMode
java.lang.Object
java.lang.Enum<AbstractScheduledAction.TransactionMode>
org.alfresco.repo.action.scheduled.AbstractScheduledAction.TransactionMode
- All Implemented Interfaces:
Serializable,Comparable<AbstractScheduledAction.TransactionMode>,Constable
- Enclosing class:
- AbstractScheduledAction
public static enum AbstractScheduledAction.TransactionMode
extends Enum<AbstractScheduledAction.TransactionMode>
Enum to define the transaction mode.
- Author:
- Andy Hind
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRun Each action in an isolated transactionRun in one big transaction.Run each action in anisolated transaction, but stop at the first failure -
Method Summary
Modifier and TypeMethodDescriptiongetTransactionMode(String transactionModeString) Generate a mode from a string.Returns 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
-
ISOLATED_TRANSACTIONS
Run Each action in an isolated transaction -
UNTIL_FIRST_FAILURE
Run each action in anisolated transaction, but stop at the first failure -
ONE_TRANSACTION
Run in one big transaction. Any failure rolls the whole lot b ack
-
-
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
-
getTransactionMode
public static AbstractScheduledAction.TransactionMode getTransactionMode(String transactionModeString) Generate a mode from a string.- Parameters:
transactionModeString- String- Returns:
- - the transaction mode.
-