Class Updates
java.lang.Object
com.codename1.backend.mongo.Updates
Builds update documents; combine(Map...) merges several into one.
Updates.combine(Updates.set("name", "Ada"), Updates.inc("visits", 1))
-
Method Summary
Modifier and TypeMethodDescriptionstatic MapAddsvalueto the array infieldunless it is already there.static MapOne update with the operators of all of these.static MapAddsamounttofield.static MapRemoves every element equal tovaluefrom the array infield.static MapAppendsvalueto the array infield.static MapSetsfieldtovalue.static MapRemovesfield.
-
Method Details
-
set
-
unset
-
inc
-
push
-
addToSet
-
pull
-
combine
-