public enum WriteMode extends java.lang.Enum<WriteMode>
Enum Constant | Description |
---|---|
None |
Does not update the data source.
|
WriteBehind |
Updates the data source asynchronously.
|
WriteThru |
Updates data source synchronously.
|
Modifier and Type | Method | Description |
---|---|---|
static WriteMode |
forValue(int value) |
Retrieves the enum constant of the specified value, if exists.
|
int |
getValue() |
Order is important in enums.
|
static WriteMode |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static WriteMode[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WriteMode None
public static final WriteMode WriteThru
public static final WriteMode WriteBehind
public static WriteMode[] values()
for (WriteMode c : WriteMode.values()) System.out.println(c);
public static WriteMode 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 WriteMode forValue(int value)
value
- Enum constant index.public int getValue()