Spring Data Solr

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

java.lang.Object
  extended by org.springframework.data.solr.core.query.AbstractFunction
      extended by org.springframework.data.solr.core.query.CurrencyFunction
All Implemented Interfaces:
Function

public class CurrencyFunction
extends AbstractFunction

Implementation of currency(field_name,[CODE])

Since:
1.1
Author:
Christoph Strobl

Method Summary
static CurrencyFunction currency(Field field)
          Create new CurrencyFunction representing currency(field.getName())
static CurrencyFunction currency(Field field, String currencyCode)
          Create new CurrencyFunction using ISO-4217 currencyCode representing currency(fiel.getName(),currencyCode)
static CurrencyFunction currency(String fieldname)
          Create new CurrencyFunction representing currency(fieldname)
static CurrencyFunction currency(String fieldname, String currencyCode)
          Create new CurrencyFunction using ISO-4217 currencyCode representing currency(fieldname,currencyCode)
 String getOperation()
          solr readable representation of function
 
Methods inherited from class org.springframework.data.solr.core.query.AbstractFunction
addArgument, getArguments, hasArguments, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

currency

public static CurrencyFunction currency(String fieldname)
Create new CurrencyFunction representing currency(fieldname)

Parameters:
fieldname -
Returns:

currency

public static CurrencyFunction currency(Field field)
Create new CurrencyFunction representing currency(field.getName())

Parameters:
field -
Returns:

currency

public static CurrencyFunction currency(Field field,
                                        String currencyCode)
Create new CurrencyFunction using ISO-4217 currencyCode representing currency(fiel.getName(),currencyCode)

Parameters:
field -
currencyCode -
Returns:

currency

public static CurrencyFunction currency(String fieldname,
                                        String currencyCode)
Create new CurrencyFunction using ISO-4217 currencyCode representing currency(fieldname,currencyCode)

Parameters:
fieldname -
currencyCode -
Returns:

getOperation

public String getOperation()
Description copied from interface: Function
solr readable representation of function

Returns:

Spring Data Solr

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