Spring Data Solr

org.springframework.data.solr.core.query
Class SimpleUpdateField

java.lang.Object
  extended by org.springframework.data.solr.core.query.SimpleField
      extended by org.springframework.data.solr.core.query.SimpleUpdateField
All Implemented Interfaces:
Field, UpdateField, ValueHoldingField

public class SimpleUpdateField
extends SimpleField
implements UpdateField

Implementation of UpdateField to be used with Update

Author:
Christoph Strobl

Constructor Summary
SimpleUpdateField(String name)
           
SimpleUpdateField(String name, Object value)
          Creates new instance with DEFAULT_ACTION
SimpleUpdateField(String name, Object value, UpdateAction action)
           
 
Method Summary
 UpdateAction getAction()
          UpdateAction to perform during update
 Object getValue()
          Get value for field
 void setValue(Object value)
           
 
Methods inherited from class org.springframework.data.solr.core.query.SimpleField
getName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.springframework.data.solr.core.query.ValueHoldingField
getValue
 
Methods inherited from interface org.springframework.data.solr.core.query.Field
getName
 

Constructor Detail

SimpleUpdateField

public SimpleUpdateField(String name)

SimpleUpdateField

public SimpleUpdateField(String name,
                         Object value)
Creates new instance with DEFAULT_ACTION

Parameters:
name -
value -

SimpleUpdateField

public SimpleUpdateField(String name,
                         Object value,
                         UpdateAction action)
Parameters:
name -
value -
action -
Method Detail

getAction

public UpdateAction getAction()
Description copied from interface: UpdateField
UpdateAction to perform during update

Specified by:
getAction in interface UpdateField
Returns:

getValue

public Object getValue()
Description copied from interface: ValueHoldingField
Get value for field

Specified by:
getValue in interface ValueHoldingField
Returns:

setValue

public void setValue(Object value)

Spring Data Solr

Copyright © 2011-2014-2014 Pivotal. All Rights Reserved.