JavaScript is disabled on your browser.
Enum Constant Summary
Enum Constants
如果当前存在事务,则在嵌套事务内执行,如果当前没有事务,就新建一个事务。
以非事务方式执行操作,如果当前存在事务,就把当前事务挂起。
支持当前事务,如果当前没有事务,就新建一个事务。这是最常见的选择。
支持当前事务,如果当前没有事务,就以非事务方式执行。
Method Summary
All Methods Static Methods Concrete Methods
Returns the enum constant of this class with the specified name.
Returns an array containing the constants of this enum class, in
the order they are declared.
Methods inherited from class java.lang.Enum
clone , compareTo , describeConstable , equals , finalize , getDeclaringClass , hashCode , name , ordinal , toString , valueOf
Enum Constant Details
REQUIRED
支持当前事务,如果当前没有事务,就新建一个事务。这是最常见的选择。
REQUIRES_NEW
新建事务,如果当前存在事务,把当前事务挂起。
NOT_SUPPORTED
以非事务方式执行操作,如果当前存在事务,就把当前事务挂起。
SUPPORTS
支持当前事务,如果当前没有事务,就以非事务方式执行。
NEVER
以非事务方式执行,如果当前存在事务,则抛出异常。
MANDATORY
支持当前事务,如果当前没有事务,就抛出异常。
NESTED
如果当前存在事务,则在嵌套事务内执行,如果当前没有事务,就新建一个事务。
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 name
NullPointerException - if the argument is null