public enum TransactionAttribute extends Enum<TransactionAttribute> implements DocumentedEnum
Enum Constant and Description |
---|
MANDATORY
Support a current transaction; throw an exception if no current transaction exists.
|
NEVER
Do not support a current transaction; throw an exception if a current transaction exists.
|
NOTSUPPORTED
Do not support a current transaction; rather always execute non-transactionally.
|
REQUIRED
Support a current transaction; create a new one if none exists.
|
REQUIRESNEW
Create a new transaction, suspending the current transaction if one exists.
|
SUPPORTS
Support a current transaction; execute non-transactionally if none exists.
|
Modifier and Type | Method and Description |
---|---|
static TransactionAttribute |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TransactionAttribute[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
getLabel, name
public static final TransactionAttribute REQUIRED
public static final TransactionAttribute SUPPORTS
public static final TransactionAttribute MANDATORY
public static final TransactionAttribute REQUIRESNEW
public static final TransactionAttribute NOTSUPPORTED
public static final TransactionAttribute NEVER
public static TransactionAttribute[] values()
for (TransactionAttribute c : TransactionAttribute.values()) System.out.println(c);
public static TransactionAttribute valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2023 Frank!Framework. All rights reserved.