public enum TransactionMode extends Enum<TransactionMode>
- a transactionManagerLookup is configured for the cache - batching is enabled - it is explicitly marked as transactional: config.fluent().transaction().transactionMode(TransactionMode.TRANSACTIONAL). In this last case a transactionManagerLookup needs to be explicitly setBy default a cache is not transactional.
Enum Constant and Description |
---|
NON_TRANSACTIONAL |
TRANSACTIONAL |
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 NON_TRANSACTIONAL
public static final TransactionMode TRANSACTIONAL
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 © 2012 JBoss by Red Hat. All Rights Reserved.