|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.data.document.mongodb.query.Update
public class Update
Nested Class Summary | |
---|---|
static class |
Update.Position
|
Field Summary | |
---|---|
private java.util.HashMap<java.lang.String,java.lang.Object> |
criteria
|
Constructor Summary | |
---|---|
Update()
|
Method Summary | |
---|---|
Update |
addToSet(java.lang.String key,
java.lang.Object value)
Update using the $addToSet update modifier |
protected java.lang.Object |
convertValueIfNecessary(java.lang.Object value)
|
DBObject |
getUpdateObject()
|
Update |
inc(java.lang.String key,
java.lang.Number inc)
Update using the $inc update modifier |
Update |
pop(java.lang.String key,
Update.Position pos)
Update using the $pop update modifier |
Update |
pull(java.lang.String key,
java.lang.Object value)
Update using the $pull update modifier |
Update |
pullAll(java.lang.String key,
java.lang.Object[] values)
Update using the $pullAll update modifier |
Update |
push(java.lang.String key,
java.lang.Object value)
Update using the $push update modifier |
Update |
pushAll(java.lang.String key,
java.lang.Object[] values)
Update using the $pushAll update modifier |
Update |
rename(java.lang.String oldName,
java.lang.String newName)
Update using the $rename update modifier |
Update |
set(java.lang.String key,
java.lang.Object value)
Update using the $set update modifier |
Update |
unset(java.lang.String key)
Update using the $unset update modifier |
static Update |
update(java.lang.String key,
java.lang.Object value)
Static factory method to create an Update using the provided key |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.HashMap<java.lang.String,java.lang.Object> criteria
Constructor Detail |
---|
public Update()
Method Detail |
---|
public static Update update(java.lang.String key, java.lang.Object value)
key
-
public Update set(java.lang.String key, java.lang.Object value)
key
- value
-
public Update unset(java.lang.String key)
key
-
public Update inc(java.lang.String key, java.lang.Number inc)
key
- inc
-
public Update push(java.lang.String key, java.lang.Object value)
key
- value
-
public Update pushAll(java.lang.String key, java.lang.Object[] values)
key
- values
-
public Update addToSet(java.lang.String key, java.lang.Object value)
key
- value
-
public Update pop(java.lang.String key, Update.Position pos)
key
- pos
-
public Update pull(java.lang.String key, java.lang.Object value)
key
- value
-
public Update pullAll(java.lang.String key, java.lang.Object[] values)
key
- values
-
public Update rename(java.lang.String oldName, java.lang.String newName)
oldName
- newName
-
public DBObject getUpdateObject()
protected java.lang.Object convertValueIfNecessary(java.lang.Object value)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |