Class EndsWithFunction

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

public class EndsWithFunction extends EndsWithFunction implements SqlFunction
'EndsWith' function. Returns true if the data in the specified SqlColumn (in the first argument) ends with the text 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