|
Spring Data MongoDB | |||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use Update | |
|---|---|
| org.springframework.data.mongodb.core | MongoDB core support. |
| org.springframework.data.mongodb.core.query | 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 Update | ||
|---|---|---|
protected
|
MongoTemplate.doFindAndModify(String collectionName,
com.mongodb.DBObject query,
com.mongodb.DBObject fields,
com.mongodb.DBObject sort,
Class<T> entityClass,
Update update,
FindAndModifyOptions options)
|
|
protected com.mongodb.WriteResult |
MongoTemplate.doUpdate(String collectionName,
Query query,
Update update,
Class<?> entityClass,
boolean upsert,
boolean multi)
|
|
|
MongoTemplate.findAndModify(Query query,
Update update,
Class<T> entityClass)
|
|
|
MongoOperations.findAndModify(Query query,
Update update,
Class<T> entityClass)
|
|
|
MongoTemplate.findAndModify(Query query,
Update update,
Class<T> entityClass,
String collectionName)
|
|
|
MongoOperations.findAndModify(Query query,
Update update,
Class<T> entityClass,
String collectionName)
|
|
|
MongoTemplate.findAndModify(Query query,
Update update,
FindAndModifyOptions options,
Class<T> entityClass)
|
|
|
MongoOperations.findAndModify(Query query,
Update update,
FindAndModifyOptions options,
Class<T> entityClass)
|
|
|
MongoTemplate.findAndModify(Query query,
Update update,
FindAndModifyOptions options,
Class<T> entityClass,
String collectionName)
|
|
|
MongoOperations.findAndModify(Query query,
Update update,
FindAndModifyOptions options,
Class<T> entityClass,
String collectionName)
|
|
com.mongodb.WriteResult |
MongoTemplate.updateFirst(Query query,
Update update,
Class<?> entityClass)
|
|
com.mongodb.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. |
|
com.mongodb.WriteResult |
MongoTemplate.updateFirst(Query query,
Update update,
String collectionName)
|
|
com.mongodb.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. |
|
com.mongodb.WriteResult |
MongoTemplate.updateMulti(Query query,
Update update,
Class<?> entityClass)
|
|
com.mongodb.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. |
|
com.mongodb.WriteResult |
MongoTemplate.updateMulti(Query query,
Update update,
String collectionName)
|
|
com.mongodb.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. |
|
com.mongodb.WriteResult |
MongoTemplate.upsert(Query query,
Update update,
Class<?> entityClass)
|
|
com.mongodb.WriteResult |
MongoOperations.upsert(Query query,
Update update,
Class<?> entityClass)
Performs an upsert. |
|
com.mongodb.WriteResult |
MongoTemplate.upsert(Query query,
Update update,
String collectionName)
|
|
com.mongodb.WriteResult |
MongoOperations.upsert(Query query,
Update update,
String collectionName)
Performs an upsert. |
|
| Uses of Update in org.springframework.data.mongodb.core.query |
|---|
| Subclasses of Update in org.springframework.data.mongodb.core.query | |
|---|---|
class |
BasicUpdate
|
| Methods in org.springframework.data.mongodb.core.query that return Update | |
|---|---|
Update |
BasicUpdate.addToSet(String key,
Object value)
|
Update |
Update.addToSet(String key,
Object value)
Update using the $addToSet update modifier |
static Update |
Update.fromDBObject(com.mongodb.DBObject object,
String... exclude)
Creates an Update instance from the given DBObject. |
Update |
BasicUpdate.inc(String key,
Number inc)
|
Update |
Update.inc(String key,
Number inc)
Update using the $inc update modifier |
Update |
BasicUpdate.pop(String key,
Update.Position pos)
|
Update |
Update.pop(String key,
Update.Position pos)
Update using the $pop update modifier |
Update |
BasicUpdate.pull(String key,
Object value)
|
Update |
Update.pull(String key,
Object value)
Update using the $pull update modifier |
Update |
BasicUpdate.pullAll(String key,
Object[] values)
|
Update |
Update.pullAll(String key,
Object[] values)
Update using the $pullAll update modifier |
Update |
BasicUpdate.push(String key,
Object value)
|
Update |
Update.push(String key,
Object value)
Update using the $push update modifier |
Update |
BasicUpdate.pushAll(String key,
Object[] values)
|
Update |
Update.pushAll(String key,
Object[] values)
Update using the $pushAll update modifier |
Update |
BasicUpdate.rename(String oldName,
String newName)
|
Update |
Update.rename(String oldName,
String newName)
Update using the $rename update modifier |
Update |
BasicUpdate.set(String key,
Object value)
|
Update |
Update.set(String key,
Object value)
Update using the $set update modifier |
Update |
BasicUpdate.unset(String key)
|
Update |
Update.unset(String key)
Update using the $unset update modifier |
static Update |
Update.update(String key,
Object value)
Static factory method to create an Update using the provided key |
|
Spring Data MongoDB | |||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||