Class LikeFunction
java.lang.Object
com.randomnoun.common.jexl.eval.function.LikeFunction
com.randomnoun.common.jexl.sql.function.LikeFunction
- All Implemented Interfaces:
EvalFunction,SqlFunction
SQL 'LIKE' operator. Returns true if the data in the specified SqlColumn (in the first
argument) matches the supplied LIKE pattern (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.LikeFunction
evaluate
-
Constructor Details
-
LikeFunction
public LikeFunction()
-
-
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
-