public static enum BuilderToken.UPDATEACTION extends Enum<BuilderToken.UPDATEACTION>
Enum Constant and Description |
---|
ADD
Add one element (or each element of a list) if not already in the list
$add : { name : { $each : [ value, value, ... |
INC
increment one field named 'name' with default 1 or value
$inc : { name : value } |
MAX
set one field named 'name' with maximum value of current value and given value
$max : { name : value } |
MIN
set one field named 'name' with minimum value of current value and given value
$min : { name : value } |
POP
Remove n element from a list from the end (1) or the beginning (-1)
$pop : { name : -1/1 } |
PULL
Remove one specific element from a list or each element of a list if $each parameter is used
$pull : { name : { $each : [ value, value, ... |
PUSH
Add one element at the end of a list value, or each element of a list if $each parameter is used
$push : { name : { $each : [ value, value, ... |
RENAME
rename one field named 'name' to 'newname'
$rename : { name : newname } |
SET
$set : { name : value, name : value, ...
|
UNSET
$unset : [ name, name, ...
|
Modifier and Type | Method and Description |
---|---|
String |
exactToken() |
static BuilderToken.UPDATEACTION |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BuilderToken.UPDATEACTION[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BuilderToken.UPDATEACTION SET
public static final BuilderToken.UPDATEACTION UNSET
public static final BuilderToken.UPDATEACTION INC
public static final BuilderToken.UPDATEACTION MIN
public static final BuilderToken.UPDATEACTION MAX
public static final BuilderToken.UPDATEACTION RENAME
public static final BuilderToken.UPDATEACTION PUSH
public static final BuilderToken.UPDATEACTION PULL
public static final BuilderToken.UPDATEACTION ADD
public static final BuilderToken.UPDATEACTION POP
public static BuilderToken.UPDATEACTION[] values()
for (BuilderToken.UPDATEACTION c : BuilderToken.UPDATEACTION.values()) System.out.println(c);
public static BuilderToken.UPDATEACTION 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 final String exactToken()
Copyright © 2018 Vitam. All rights reserved.