Class JSqlParserUtils

java.lang.Object
org.springframework.data.jpa.repository.query.JSqlParserUtils

public final class JSqlParserUtils extends Object
A utility class for JSqlParser.
Since:
2.7.0
Author:
Diego Krupitza, Greg Turnquist
  • Method Details

    • getJSqlCount

      public static net.sf.jsqlparser.expression.Function getJSqlCount(List<String> countFields, boolean distinct)
      Generates a count function call, based on the countFields.
      Parameters:
      countFields - the non-empty list of fields that are used for counting
      distinct - if it should be a distinct count
      Returns:
      the generated count function call
    • getJSqlLower

      public static net.sf.jsqlparser.expression.Function getJSqlLower(String column)
      Generates a lower function call, based on the column.
      Parameters:
      column - the non-empty column to use as param for lower
      Returns:
      the generated lower function call