public enum TransactionMode extends Enum<TransactionMode>
| 枚举常量和说明 |
|---|
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.
|
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 - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值Copyright © 2008–2020 Matrix. All rights reserved.