Enum AbstractScheduledAction.TransactionMode
- java.lang.Object
-
- java.lang.Enum<AbstractScheduledAction.TransactionMode>
-
- org.alfresco.repo.action.scheduled.AbstractScheduledAction.TransactionMode
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<AbstractScheduledAction.TransactionMode>
- Enclosing class:
- AbstractScheduledAction
public static enum AbstractScheduledAction.TransactionMode extends java.lang.Enum<AbstractScheduledAction.TransactionMode>
Enum to define the transaction mode.- Author:
- Andy Hind
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ISOLATED_TRANSACTIONSRun Each action in an isolated transactionONE_TRANSACTIONRun in one big transaction.UNTIL_FIRST_FAILURERun each action in anisolated transaction, but stop at the first failure
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AbstractScheduledAction.TransactionModegetTransactionMode(java.lang.String transactionModeString)Generate a mode from a string.static AbstractScheduledAction.TransactionModevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static AbstractScheduledAction.TransactionMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ISOLATED_TRANSACTIONS
public static final AbstractScheduledAction.TransactionMode ISOLATED_TRANSACTIONS
Run Each action in an isolated transaction
-
UNTIL_FIRST_FAILURE
public static final AbstractScheduledAction.TransactionMode UNTIL_FIRST_FAILURE
Run each action in anisolated transaction, but stop at the first failure
-
ONE_TRANSACTION
public static final AbstractScheduledAction.TransactionMode ONE_TRANSACTION
Run in one big transaction. Any failure rolls the whole lot b ack
-
-
Method Detail
-
values
public static AbstractScheduledAction.TransactionMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AbstractScheduledAction.TransactionMode c : AbstractScheduledAction.TransactionMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AbstractScheduledAction.TransactionMode valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getTransactionMode
public static AbstractScheduledAction.TransactionMode getTransactionMode(java.lang.String transactionModeString)
Generate a mode from a string.- Parameters:
transactionModeString- String- Returns:
- - the transaction mode.
-
-