|
Spring Data MongoDB | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.data.mongodb.core.query.Update org.springframework.data.mongodb.core.query.BasicUpdate
public class BasicUpdate
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.springframework.data.mongodb.core.query.Update |
---|
Update.Position |
Constructor Summary | |
---|---|
BasicUpdate(com.mongodb.DBObject updateObject)
|
|
BasicUpdate(String updateString)
|
Method Summary | |
---|---|
Update |
addToSet(String key,
Object value)
Update using the $addToSet update modifier |
com.mongodb.DBObject |
getUpdateObject()
|
Update |
inc(String key,
Number inc)
Update using the $inc update modifier |
Update |
pop(String key,
Update.Position pos)
Update using the $pop update modifier |
Update |
pull(String key,
Object value)
Update using the $pull update modifier |
Update |
pullAll(String key,
Object[] values)
Update using the $pullAll update modifier |
Update |
push(String key,
Object value)
Update using the $push update modifier |
Update |
pushAll(String key,
Object[] values)
Update using the $pushAll update modifier |
Update |
rename(String oldName,
String newName)
Update using the $rename update modifier |
Update |
set(String key,
Object value)
Update using the $set update modifier |
Update |
unset(String key)
Update using the $unset update modifier |
Methods inherited from class org.springframework.data.mongodb.core.query.Update |
---|
addMultiFieldOperation, fromDBObject, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BasicUpdate(String updateString)
public BasicUpdate(com.mongodb.DBObject updateObject)
Method Detail |
---|
public Update set(String key, Object value)
Update
set
in class Update
public Update unset(String key)
Update
unset
in class Update
public Update inc(String key, Number inc)
Update
inc
in class Update
public Update push(String key, Object value)
Update
push
in class Update
public Update pushAll(String key, Object[] values)
Update
pushAll
in class Update
public Update addToSet(String key, Object value)
Update
addToSet
in class Update
public Update pop(String key, Update.Position pos)
Update
pop
in class Update
public Update pull(String key, Object value)
Update
pull
in class Update
public Update pullAll(String key, Object[] values)
Update
pullAll
in class Update
public Update rename(String oldName, String newName)
Update
rename
in class Update
public com.mongodb.DBObject getUpdateObject()
getUpdateObject
in class Update
|
Spring Data MongoDB | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |