Enum Mutation
- java.lang.Object
-
- java.lang.Enum<Mutation>
-
- com.couchbase.client.core.message.kv.subdoc.multi.Mutation
-
- All Implemented Interfaces:
Serializable
,Comparable<Mutation>
@Committed @Public public enum Mutation extends Enum<Mutation>
Enumeration of possible mutations inside a sub-documentMutationCommand
.- Since:
- 1.2
- Author:
- Simon Baslé
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ARRAY_ADD_UNIQUE
ARRAY_INSERT
ARRAY_PUSH_FIRST
ARRAY_PUSH_LAST
COUNTER
DELETE
DICT_ADD
DICT_UPSERT
REPLACE
UPSERTDOC
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte
opCode()
static Mutation
valueOf(String name)
Returns the enum constant of this type with the specified name.static Mutation[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UPSERTDOC
public static final Mutation UPSERTDOC
-
COUNTER
public static final Mutation COUNTER
-
REPLACE
public static final Mutation REPLACE
-
DICT_ADD
public static final Mutation DICT_ADD
-
DICT_UPSERT
public static final Mutation DICT_UPSERT
-
ARRAY_PUSH_FIRST
public static final Mutation ARRAY_PUSH_FIRST
-
ARRAY_PUSH_LAST
public static final Mutation ARRAY_PUSH_LAST
-
ARRAY_ADD_UNIQUE
public static final Mutation ARRAY_ADD_UNIQUE
-
ARRAY_INSERT
public static final Mutation ARRAY_INSERT
-
DELETE
public static final Mutation DELETE
-
-
Method Detail
-
values
public static Mutation[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Mutation c : Mutation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Mutation valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
opCode
public byte opCode()
-
-