|
Spring Data Document | |||||||||
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,
DBObject query,
DBObject fields,
DBObject sort,
Class<T> entityClass,
Update update,
FindAndModifyOptions options)
|
|
protected 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)
|
|
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. |
|
WriteResult |
MongoTemplate.upsert(Query query,
Update update,
Class<?> entityClass)
|
|
WriteResult |
MongoOperations.upsert(Query query,
Update update,
Class<?> entityClass)
Performs an upsert. |
|
WriteResult |
MongoTemplate.upsert(Query query,
Update update,
String collectionName)
|
|
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 |
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 |