com.flexive.shared.search
Class FxSQLFunctions

java.lang.Object
  extended by com.flexive.shared.search.FxSQLFunctions

public final class FxSQLFunctions
extends java.lang.Object

Container for all supported FxSQL functions.

Version:
$Rev: 2906 $
Author:
Daniel Lichtenberger (daniel.lichtenberger@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at)

Method Summary
static java.util.List<FxSQLFunction> asFunctions(java.util.Collection<java.lang.String> values)
          Converts the given function names to FxSQLFunction objects.
static FxSQLFunction forName(java.lang.String name)
          Returns the FxSQLFunction object mapped to the given function name.
static java.util.List<java.lang.String> getSqlNames(java.util.Collection<? extends FxSQLFunction> functions)
          Return the FxSQL function names for the given list of FxSQLFunction objects, i.e.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

forName

public static FxSQLFunction forName(java.lang.String name)
Returns the FxSQLFunction object mapped to the given function name. If name does not represent a known FxSQL function, a FxRuntimeException is thrown.

Parameters:
name - the function name to be looked up
Returns:
the FxSQLFunction object

asFunctions

public static java.util.List<FxSQLFunction> asFunctions(java.util.Collection<java.lang.String> values)
Converts the given function names to FxSQLFunction objects. If an entry does not represent a known FxSQL function, a FxRuntimeException is thrown.

Parameters:
values - the function names to be converted
Returns:
the FxSQLFunction objects

getSqlNames

public static java.util.List<java.lang.String> getSqlNames(java.util.Collection<? extends FxSQLFunction> functions)
Return the FxSQL function names for the given list of FxSQLFunction objects, i.e. project the result of FxSQLFunction.getSqlName().

Parameters:
functions - the FxSQL function object
Returns:
the FxSQL function names as used in FxSQL