public enum StateStrategy extends Enum<StateStrategy>
| Enum Constant and Description |
|---|
DUAL_VERSION
save two version together in case of rollback.
|
SINGLE_VERSION
for storage supporting mvcc, we save only current version.
|
| Modifier and Type | Method and Description |
|---|---|
static StateStrategy |
getEnum(String value) |
static StateStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StateStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StateStrategy DUAL_VERSION
public static final StateStrategy SINGLE_VERSION
public static StateStrategy[] values()
for (StateStrategy c : StateStrategy.values()) System.out.println(c);
public static StateStrategy 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 static StateStrategy getEnum(String value)
Copyright © 2020. All rights reserved.