Class EndsWithFunction
java.lang.Object
com.randomnoun.common.jexl.eval.function.EndsWithFunction
com.randomnoun.common.jexl.sql.function.EndsWithFunction
- All Implemented Interfaces:
EvalFunction
,SqlFunction
'EndsWith' function. Returns true if the data in the specified SqlColumn (in the first
argument) ends 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.EndsWithFunction
evaluate
-
Constructor Details
-
EndsWithFunction
public EndsWithFunction()
-
-
Method Details
-
toSql
Description copied from interface:SqlFunction
All 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:
toSql
in 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
-