public enum TransactionMode extends java.lang.Enum<TransactionMode>
Modifier and Type | Method and Description |
---|---|
static TransactionMode |
deserialize(java.lang.String value)
Used by JiBX to unmarshal a transaction mode
|
java.util.concurrent.ExecutorService |
getTransactionExecutor(java.util.concurrent.ExecutorService executor) |
static java.lang.String |
serialize(TransactionMode mode)
Used by JiBX to marshal a transaction mode
|
static TransactionMode |
valueOf(java.lang.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 PARALLEL
public static final TransactionMode SERIAL
public static TransactionMode[] values()
for (TransactionMode c : TransactionMode.values()) System.out.println(c);
public static TransactionMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static TransactionMode deserialize(java.lang.String value)
value
- transaction modepublic static java.lang.String serialize(TransactionMode mode)
mode
- transaction mode enumpublic java.util.concurrent.ExecutorService getTransactionExecutor(java.util.concurrent.ExecutorService executor)