Uses of Class
org.springframework.data.mongodb.core.query.Update
Package
Description
MongoDB core support.
MongoDB specific query and update support.
-
Uses of Update in org.springframework.data.mongodb.core
Modifier and TypeMethodDescriptiondefault BulkOperations
BulkOperations.updateMulti
(Query query, Update update) Add a single update to the bulk operation.default BulkOperations
Add a single update to the bulk operation.default BulkOperations
Add a single upsert to the bulk operation. -
Uses of Update in org.springframework.data.mongodb.core.query
Modifier and TypeMethodDescriptionUpdate using the $addToSet update modifierUpdate.BitwiseOperatorBuilder.and
(long value) Updates to the result of a bitwise and operation between the current value and the given one.Update.currentDate
(String key) Update given key to current date using $currentDate modifier.Update.currentTimestamp
(String key) Update given key to current date using $currentDate : { $type : "timestamp" } modifier.Propagates$each
to$addToSet
Propagates$each
to$push
Update.filterArray
(String identifier, Object expression) Filter elements in an array that match the given criteria for update.Update.filterArray
(CriteriaDefinition criteria) Filter elements in an array that match the given criteria for update.static Update
Update.fromDocument
(org.bson.Document object, String... exclude) Creates anUpdate
instance from the givenDocument
.Update using the $inc update modifierUpdate.isolated()
Prevents a write operation that affects multiple documents from yielding to other reads or writes once the first document is written.Update given key to thevalue
if thevalue
is greater than the current value of the field.Update given key to thevalue
if thevalue
is less than the current value of the field.Multiply the value of given key by the given number.Update.BitwiseOperatorBuilder.or
(long value) Updates to the result of a bitwise or operation between the current value and the given one.BasicUpdate.pop
(String key, Update.Position pos) Update.pop
(String key, Update.Position pos) Update using the $pop update modifierUpdate using the $pull update modifierUpdate using the $pullAll update modifierUpdate using the $push update modifierUpdate using the $rename update modifierUpdate using the $set update modifierUpdate.setOnInsert
(String key, Object value) Update using the $setOnInsert update modifierUpdate using the $unset update modifierstatic Update
Static factory method to create an Update using the provided keyPropagatesUpdate.AddToSetBuilder.value(Object)
to$addToSet
PropagatesUpdate.PushOperatorBuilder.value(Object)
to$push
Update.BitwiseOperatorBuilder.xor
(long value) Updates to the result of a bitwise xor operation between the current value and the given one.ModifierConstructorDescriptionprotected
BitwiseOperatorBuilder
(Update reference, String key) Creates a newUpdate.BitwiseOperatorBuilder
.