Enum Class BuilderToken.UPDATEACTION
java.lang.Object
java.lang.Enum<BuilderToken.UPDATEACTION>
fr.gouv.vitam.common.database.builder.request.configuration.BuilderToken.UPDATEACTION
- All Implemented Interfaces:
Serializable
,Comparable<BuilderToken.UPDATEACTION>
,Constable
- Enclosing class:
- BuilderToken
Update model
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAdd one element (or each element of a list) if not already in the list
$add : { name : [ value, value, ...increment one field named 'name' with default 1 or value
$inc : { name : value }set one field named 'name' with maximum value of current value and given value
$max : { name : value }set one field named 'name' with minimum value of current value and given value
$min : { name : value }Remove n element from a list from the end (1) or the beginning (-1)
$pop : { name : -1/1 }Remove one specific element from a list or each element of a list
$pull : { name : [ value, value, ...Add one element at the end of a list value, or each element of a list
$push : { name : [ value, value, ...rename one field named 'name' to 'newname'
$rename : { name : newname }$set : { name : value, name : value, ...$setregex : { name : value, name : value, name : value }$unset : [ name, name, ... -
Method Summary
Modifier and TypeMethodDescriptionfinal String
static BuilderToken.UPDATEACTION
Returns the enum constant of this class with the specified name.static BuilderToken.UPDATEACTION[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SET
$set : { name : value, name : value, ... } -
UNSET
$unset : [ name, name, ... ] -
INC
increment one field named 'name' with default 1 or value
$inc : { name : value } -
MIN
set one field named 'name' with minimum value of current value and given value
$min : { name : value } -
MAX
set one field named 'name' with maximum value of current value and given value
$max : { name : value } -
RENAME
rename one field named 'name' to 'newname'
$rename : { name : newname } -
PUSH
Add one element at the end of a list value, or each element of a list
$push : { name : [ value, value, ... ] } -
PULL
Remove one specific element from a list or each element of a list
$pull : { name : [ value, value, ... ] } -
ADD
Add one element (or each element of a list) if not already in the list
$add : { name : [ value, value, ... ] } -
POP
Remove n element from a list from the end (1) or the beginning (-1)
$pop : { name : -1/1 } -
SETREGEX
$setregex : { name : value, name : value, name : value }
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
exactToken
- Returns:
- the exact token
-