org.springframework.data.mongodb.core.query
Class BasicUpdate

java.lang.Object
  extended by org.springframework.data.mongodb.core.query.Update
      extended by org.springframework.data.mongodb.core.query.BasicUpdate

public class BasicUpdate
extends Update


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, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicUpdate

public BasicUpdate(String updateString)

BasicUpdate

public BasicUpdate(com.mongodb.DBObject updateObject)
Method Detail

set

public Update set(String key,
                  Object value)
Description copied from class: Update
Update using the $set update modifier

Overrides:
set in class Update
Returns:

unset

public Update unset(String key)
Description copied from class: Update
Update using the $unset update modifier

Overrides:
unset in class Update
Returns:

inc

public Update inc(String key,
                  Number inc)
Description copied from class: Update
Update using the $inc update modifier

Overrides:
inc in class Update
Returns:

push

public Update push(String key,
                   Object value)
Description copied from class: Update
Update using the $push update modifier

Overrides:
push in class Update
Returns:

pushAll

public Update pushAll(String key,
                      Object[] values)
Description copied from class: Update
Update using the $pushAll update modifier

Overrides:
pushAll in class Update
Returns:

addToSet

public Update addToSet(String key,
                       Object value)
Description copied from class: Update
Update using the $addToSet update modifier

Overrides:
addToSet in class Update
Returns:

pop

public Update pop(String key,
                  Update.Position pos)
Description copied from class: Update
Update using the $pop update modifier

Overrides:
pop in class Update
Returns:

pull

public Update pull(String key,
                   Object value)
Description copied from class: Update
Update using the $pull update modifier

Overrides:
pull in class Update
Returns:

pullAll

public Update pullAll(String key,
                      Object[] values)
Description copied from class: Update
Update using the $pullAll update modifier

Overrides:
pullAll in class Update
Returns:

rename

public Update rename(String oldName,
                     String newName)
Description copied from class: Update
Update using the $rename update modifier

Overrides:
rename in class Update
Returns:

getUpdateObject

public com.mongodb.DBObject getUpdateObject()
Overrides:
getUpdateObject in class Update


Copyright © 2011. All Rights Reserved.