public enum TransactionMode extends Enum<TransactionMode>
| Enum Constant and Description |
|---|
COMMIT
Value indicating that the test should be executed in a transaction, and that this transaction must be committed
at the end of the test.
|
DEFAULT
Value indicating that the default behavior is defined by the unitils property
DatabaseModule.Transactional.value.default is in use. |
DISABLED
Value indicating that transactions should be disabled, i.e. the test should not be run in a transaction
|
ROLLBACK
Value indicating that the test should be executed in a transaction, and that this transaction must be rollbacked
at the end of the test.
|
| Modifier and Type | Method and Description |
|---|---|
static TransactionMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TransactionMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TransactionMode DISABLED
public static final TransactionMode COMMIT
public static final TransactionMode ROLLBACK
public static final TransactionMode DEFAULT
DatabaseModule.Transactional.value.default is in use.public static TransactionMode[] values()
for (TransactionMode c : TransactionMode.values()) System.out.println(c);
public static TransactionMode 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 © 2017. All rights reserved.