public static enum TransactionOptions.Mode extends java.lang.Enum<TransactionOptions.Mode>
| Enum Constant and Description |
|---|
READ_ONLY
Transaction will only be used for reads.
|
READ_WRITE
Transaction will be used for reads and writes.
|
| Modifier and Type | Method and Description |
|---|---|
static TransactionOptions.Mode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TransactionOptions.Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TransactionOptions.Mode READ_ONLY
public static final TransactionOptions.Mode READ_WRITE
public static TransactionOptions.Mode[] values()
for (TransactionOptions.Mode c : TransactionOptions.Mode.values()) System.out.println(c);
public static TransactionOptions.Mode 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 null