Class StartsWithFunction
java.lang.Object
com.randomnoun.common.jexl.eval.function.StartsWithFunction
com.randomnoun.common.jexl.sql.function.StartsWithFunction
- All Implemented Interfaces:
EvalFunction,SqlFunction
'StartsWith' function. Returns true if the data in the specified SqlColumn (in the first
argument) starts with the text in the second argument.
-
Field Summary
Fields inherited from interface com.randomnoun.common.jexl.eval.EvalFunction
logger -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.randomnoun.common.jexl.eval.function.StartsWithFunction
evaluate
-
Constructor Details
-
StartsWithFunction
public StartsWithFunction()
-
-
Method Details
-
toSql
Description copied from interface:SqlFunctionAll SQL functions must implement this method. It returns the SQL required for the database to evaluate the function. evalContext can be used to get the database type, if required.- Specified by:
toSqlin interfaceSqlFunction- Parameters:
functionName- The name of the function being translatedevalContext- The evaluation context of the SqlGenerator doing the translationarguments- The arguments to the function- Returns:
- the SQL representation of the function
-