|
Spring Data Document | |||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use Update | |
|---|---|
| org.springframework.data.document.mongodb | MongoDB core support. |
| org.springframework.data.document.mongodb.query | MongoDB specific query and update support. |
| Uses of Update in org.springframework.data.document.mongodb |
|---|
| Methods in org.springframework.data.document.mongodb with parameters of type Update | |
|---|---|
protected WriteResult |
MongoTemplate.doUpdate(String collectionName,
Query query,
Update update,
Class<?> entityClass,
boolean upsert,
boolean multi)
|
WriteResult |
MongoTemplate.updateFirst(Query query,
Update update,
Class<?> entityClass)
|
WriteResult |
MongoOperations.updateFirst(Query query,
Update update,
Class<?> entityClass)
Updates the first object that is found in the collection of the entity class that matches the query document with the provided update document. |
WriteResult |
MongoTemplate.updateFirst(Query query,
Update update,
String collectionName)
|
WriteResult |
MongoOperations.updateFirst(Query query,
Update update,
String collectionName)
Updates the first object that is found in the specified collection that matches the query document criteria with the provided updated document. |
WriteResult |
MongoTemplate.updateMulti(Query query,
Update update,
Class<?> entityClass)
|
WriteResult |
MongoOperations.updateMulti(Query query,
Update update,
Class<?> entityClass)
Updates all objects that are found in the collection for the entity class that matches the query document criteria with the provided updated document. |
WriteResult |
MongoTemplate.updateMulti(Query query,
Update update,
String collectionName)
|
WriteResult |
MongoOperations.updateMulti(Query query,
Update update,
String collectionName)
Updates all objects that are found in the specified collection that matches the query document criteria with the provided updated document. |
| Uses of Update in org.springframework.data.document.mongodb.query |
|---|
| Subclasses of Update in org.springframework.data.document.mongodb.query | |
|---|---|
class |
BasicUpdate
|
| Methods in org.springframework.data.document.mongodb.query that return Update | |
|---|---|
Update |
Update.addToSet(String key,
Object value)
Update using the $addToSet update modifier |
Update |
BasicUpdate.addToSet(String key,
Object value)
|
Update |
Update.inc(String key,
Number inc)
Update using the $inc update modifier |
Update |
BasicUpdate.inc(String key,
Number inc)
|
Update |
Update.pop(String key,
Update.Position pos)
Update using the $pop update modifier |
Update |
BasicUpdate.pop(String key,
Update.Position pos)
|
Update |
Update.pull(String key,
Object value)
Update using the $pull update modifier |
Update |
BasicUpdate.pull(String key,
Object value)
|
Update |
Update.pullAll(String key,
Object[] values)
Update using the $pullAll update modifier |
Update |
BasicUpdate.pullAll(String key,
Object[] values)
|
Update |
Update.push(String key,
Object value)
Update using the $push update modifier |
Update |
BasicUpdate.push(String key,
Object value)
|
Update |
Update.pushAll(String key,
Object[] values)
Update using the $pushAll update modifier |
Update |
BasicUpdate.pushAll(String key,
Object[] values)
|
Update |
Update.rename(String oldName,
String newName)
Update using the $rename update modifier |
Update |
BasicUpdate.rename(String oldName,
String newName)
|
Update |
Update.set(String key,
Object value)
Update using the $set update modifier |
Update |
BasicUpdate.set(String key,
Object value)
|
Update |
Update.unset(String key)
Update using the $unset update modifier |
Update |
BasicUpdate.unset(String key)
|
static Update |
Update.update(String key,
Object value)
Static factory method to create an Update using the provided key |
|
Spring Data Document | |||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||