public enum WriteMode extends java.lang.Enum<WriteMode>
Enum Constant | Description |
---|---|
None |
Does not update data source.
|
WriteBehind |
Updates data source asynchronously.
|
WriteThru |
Updates data source synchronously.
|
Modifier and Type | Method | Description |
---|---|---|
static WriteMode |
forValue(int value) |
retreives the enum constant of the specified value, if exists.
|
int |
getValue() |
Order is important in enums.By using getValue() method, each enum constant index can be found, just like array index.
|
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 indexpublic int getValue()