public enum JournalEntryType extends Enum<JournalEntryType>
The id must be stable across new versions on the code as it ends up
in the journal on-disk so we are explicit about id even though there is
Enum.ordinal
| Modifier and Type | Method and Description |
|---|---|
static JournalEntryType |
type(int x) |
static JournalEntryType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JournalEntryType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JournalEntryType REDO
public static final JournalEntryType UNDO
public static final JournalEntryType COMMIT
public static final JournalEntryType ABORT
public static JournalEntryType[] values()
for (JournalEntryType c : JournalEntryType.values()) System.out.println(c);
public static JournalEntryType 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 JournalEntryType type(int x)
Licensed under the Apache License, Version 2.0