Spring Data Solr

org.springframework.data.solr.core.query
Class Criteria.Predicate

java.lang.Object
  extended by org.springframework.data.solr.core.query.Criteria.Predicate
Enclosing class:
Criteria

public static class Criteria.Predicate
extends Object

Single entry to be used when defining search criteria

Author:
Christoph Strobl, Francisco Spaeth

Constructor Summary
Criteria.Predicate(Criteria.OperationKey key, Object value)
           
Criteria.Predicate(String key, Object value)
           
 
Method Summary
 String getKey()
           
 Object getValue()
           
 void setKey(String key)
          set the operation key to be applied when parsing query
 void setValue(Object value)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Criteria.Predicate

public Criteria.Predicate(Criteria.OperationKey key,
                          Object value)

Criteria.Predicate

public Criteria.Predicate(String key,
                          Object value)
Method Detail

getKey

public String getKey()
Returns:
null if not set

setKey

public void setKey(String key)
set the operation key to be applied when parsing query

Parameters:
key -

getValue

public Object getValue()
Returns:
null if not set

setValue

public void setValue(Object value)

toString

public String toString()
Overrides:
toString in class Object

Spring Data Solr

Copyright © 2011-2014-2014 Pivotal Software, Inc.. All Rights Reserved.