Uses of Class
org.springframework.data.mongodb.core.query.Update
Packages that use Update
Package
Description
MongoDB core support.
MongoDB specific query and update support.
-
Uses of Update in org.springframework.data.mongodb.core
Methods in org.springframework.data.mongodb.core with parameters of type UpdateModifier and TypeMethodDescriptiondefault BulkOperationsBulkOperations.updateMulti(Query query, Update update) Add a single update to the bulk operation.default BulkOperationsAdd a single update to the bulk operation.default BulkOperationsAdd a single upsert to the bulk operation.Method parameters in org.springframework.data.mongodb.core with type arguments of type Update -
Uses of Update in org.springframework.data.mongodb.core.query
Subclasses of Update in org.springframework.data.mongodb.core.queryMethods in org.springframework.data.mongodb.core.query that return UpdateModifier and TypeMethodDescriptionUpdate using the $addToSet update modifier.Update.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$eachto$addToSetPropagates$eachto$pushUpdate.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 UpdateUpdate.fromDocument(org.bson.Document object, String... exclude) Creates anUpdateinstance from the givenDocument.Update using the $inc update modifier by one.Update using the $inc update modifier.Update.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 thevalueif thevalueis greater than the current value of the field.Update given key to thevalueif thevalueis 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 modifier.Update using the $pull update modifier.Update using the $pullAll update modifier.Update using the $push update modifier.Update using the $rename update modifier.Update using the $set update modifier.Update.setOnInsert(String key, @Nullable Object value) Update using the $setOnInsert update modifier.Update using the $unset update modifier.static UpdateStatic factory method to create an Update using the provided keyPropagatesUpdate.AddToSetBuilder.value(Object)to$addToSetPropagatesUpdate.PushOperatorBuilder.value(Object)to$pushUpdate.BitwiseOperatorBuilder.xor(long value) Updates to the result of a bitwise xor operation between the current value and the given one.Constructors in org.springframework.data.mongodb.core.query with parameters of type UpdateModifierConstructorDescriptionprotectedBitwiseOperatorBuilder(Update reference, String key) Creates a newUpdate.BitwiseOperatorBuilder.