|
Spring Data MongoDB - Core | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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.Modifier, Update.Modifiers, Update.Position, Update.PushOperatorBuilder |
| 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 |
|---|
addFieldOperation, addMultiFieldOperation, fromDBObject, modifies, push, setOnInsert, 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 Updatehttp://docs.mongodb.org/manual/reference/operator/update/set/public Update unset(String key)
Update
unset in class Updatehttp://docs.mongodb.org/manual/reference/operator/update/unset/
public Update inc(String key,
Number inc)
Update
inc in class Updatehttp://docs.mongodb.org/manual/reference/operator/update/inc/
public Update push(String key,
Object value)
Update
push in class Updatehttp://docs.mongodb.org/manual/reference/operator/update/push/
public Update pushAll(String key,
Object[] values)
Update$pushAll update modifier. $pushAll has been deprecated in favor of $push $each.
Update.push(String)) returns a builder that can be used to populate the $each object.
pushAll in class Updatehttp://docs.mongodb.org/manual/reference/operator/update/pushAll/
public Update addToSet(String key,
Object value)
Update
addToSet in class Updatehttp://docs.mongodb.org/manual/reference/operator/update/addToSet/
public Update pop(String key,
Update.Position pos)
Update
pop in class Updatehttp://docs.mongodb.org/manual/reference/operator/update/pop/
public Update pull(String key,
Object value)
Update
pull in class Updatehttp://docs.mongodb.org/manual/reference/operator/update/pull/
public Update pullAll(String key,
Object[] values)
Update
pullAll in class Updatehttp://docs.mongodb.org/manual/reference/operator/update/pullAll/
public Update rename(String oldName,
String newName)
Update
rename in class Updatehttp://docs.mongodb.org/manual/reference/operator/update/rename/public com.mongodb.DBObject getUpdateObject()
getUpdateObject in class Update
|
Spring Data MongoDB - Core | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||