public enum WriteOperationType extends java.lang.Enum<WriteOperationType>
Enum Constant | Description |
---|---|
Add |
To log the Add Items operations in write behind.
|
Delete |
To log the Delete operations in write behind.
|
Update |
To log the Update Items Operations in write behind.
|
Modifier and Type | Method | Description |
---|---|---|
static WriteOperationType |
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 WriteOperationType |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static WriteOperationType[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WriteOperationType Add
public static final WriteOperationType Update
public static final WriteOperationType Delete
public static WriteOperationType[] values()
for (WriteOperationType c : WriteOperationType.values()) System.out.println(c);
public static WriteOperationType 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 WriteOperationType forValue(int value)
value
- enum constant indexpublic int getValue()