Class LikeFunction

java.lang.Object
com.randomnoun.common.jexl.eval.function.LikeFunction
com.randomnoun.common.jexl.sql.function.LikeFunction
All Implemented Interfaces:
EvalFunction, SqlFunction

public class LikeFunction extends LikeFunction implements 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)
  • Constructor Details

  • Method Details

    • toSql

      public String toSql(String functionName, EvalContext evalContext, List<Object> arguments)
      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 interface SqlFunction
      Parameters:
      functionName - The name of the function being translated
      evalContext - The evaluation context of the SqlGenerator doing the translation
      arguments - The arguments to the function
      Returns:
      the SQL representation of the function