com.stackmob.sdkapi
Class SMSet

java.lang.Object
  extended by com.stackmob.sdkapi.SMUpdate
      extended by com.stackmob.sdkapi.SMSet

public class SMSet
extends SMUpdate

A "set" update action. Sets the specified field to a new value.


Constructor Summary
SMSet(String field, SMValue value)
          Creates a new set operation
 
Method Summary
 String getField()
          Gets the field on which to execute this action.
 SMValue getValue()
          Gets the new value for the specified field
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SMSet

public SMSet(String field,
             SMValue value)
Creates a new set operation

Parameters:
field - the field on which to operate
value - the new value for that field
Method Detail

getField

public String getField()
Gets the field on which to execute this action.

Returns:
the field

getValue

public SMValue getValue()
Gets the new value for the specified field

Returns:
the value


Copyright © 2012 StackMob. All Rights Reserved.