public enum TransactionConfigEnum extends Enum<TransactionConfigEnum>
TransactionConfig
.Enum Constant and Description |
---|
ACTION_ALWAYS_BEGIN
Will ensure that a new transaction is created for each invocation
|
ACTION_ALWAYS_JOIN
There must always be a transaction present for the invocation
|
ACTION_BEGIN_OR_JOIN
Will begin a new transaction if no transaction is already present
|
ACTION_DEFAULT
Transaction action by default.
|
ACTION_INDIFFERENT
Be indifferent to any active transaction.
|
ACTION_JOIN_IF_POSSIBLE
If there is a transaction available, then use it, otherwise continue processing
|
ACTION_NEVER
There must not be a transaction present for the invocation
|
ACTION_NONE
Whether there is a transaction available or not, ignore it
|
ACTION_NOT_SUPPORTED |
Modifier and Type | Method and Description |
---|---|
byte |
getAction() |
static TransactionConfigEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TransactionConfigEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TransactionConfigEnum ACTION_NONE
J2EE: NotSupported
public static final TransactionConfigEnum ACTION_ALWAYS_BEGIN
J2EE RequiresNew
public static final TransactionConfigEnum ACTION_BEGIN_OR_JOIN
J2EE: Required
public static final TransactionConfigEnum ACTION_ALWAYS_JOIN
J2EE: Mandatory
public static final TransactionConfigEnum ACTION_JOIN_IF_POSSIBLE
J2EE: Supports
public static final TransactionConfigEnum ACTION_NEVER
J2EE Never
public static final TransactionConfigEnum ACTION_INDIFFERENT
public static final TransactionConfigEnum ACTION_NOT_SUPPORTED
public static final TransactionConfigEnum ACTION_DEFAULT
public static TransactionConfigEnum[] values()
for (TransactionConfigEnum c : TransactionConfigEnum.values()) System.out.println(c);
public static TransactionConfigEnum 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 nullpublic byte getAction()
TransactionConfig
.Copyright © 2018. All rights reserved.