Spring Data Graph

org.springframework.data.document.mongodb.query
Class Update

java.lang.Object
  extended by org.springframework.data.document.mongodb.query.Update
Direct Known Subclasses:
BasicUpdate

public class Update
extends Object


Nested Class Summary
static class Update.Position
           
 
Constructor Summary
Update()
           
 
Method Summary
 Update addToSet(String key, Object value)
          Update using the $addToSet update modifier
protected  Object convertValueIfNecessary(Object value)
           
 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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Update

public Update()
Method Detail

set

public Update set(String key,
                  Object value)
Update using the $set update modifier

Parameters:
key -
value -
Returns:

unset

public Update unset(String key)
Update using the $unset update modifier

Parameters:
key -
Returns:

inc

public Update inc(String key,
                  Number inc)
Update using the $inc update modifier

Parameters:
key -
inc -
Returns:

push

public Update push(String key,
                   Object value)
Update using the $push update modifier

Parameters:
key -
value -
Returns:

pushAll

public Update pushAll(String key,
                      Object[] values)
Update using the $pushAll update modifier

Parameters:
key -
values -
Returns:

addToSet

public Update addToSet(String key,
                       Object value)
Update using the $addToSet update modifier

Parameters:
key -
value -
Returns:

pop

public Update pop(String key,
                  Update.Position pos)
Update using the $pop update modifier

Parameters:
key -
pos -
Returns:

pull

public Update pull(String key,
                   Object value)
Update using the $pull update modifier

Parameters:
key -
value -
Returns:

pullAll

public Update pullAll(String key,
                      Object[] values)
Update using the $pullAll update modifier

Parameters:
key -
values -
Returns:

rename

public Update rename(String oldName,
                     String newName)
Update using the $rename update modifier

Parameters:
oldName -
newName -
Returns:

getUpdateObject

public DBObject getUpdateObject()

convertValueIfNecessary

protected Object convertValueIfNecessary(Object value)

Spring Data Graph

Copyright © 2011. All Rights Reserved.