Class JSqlParserUtils
java.lang.Object
org.springframework.data.jpa.repository.query.JSqlParserUtils
A utility class for JSqlParser.
- Since:
- 2.7.0
- Author:
- Diego Krupitza, Greg Turnquist
-
Method Summary
Modifier and TypeMethodDescriptionstatic net.sf.jsqlparser.expression.Function
getJSqlCount
(List<String> countFields, boolean distinct) Generates a count function call, based on thecountFields
.static net.sf.jsqlparser.expression.Function
getJSqlLower
(String column) Generates a lower function call, based on thecolumn
.
-
Method Details
-
getJSqlCount
public static net.sf.jsqlparser.expression.Function getJSqlCount(List<String> countFields, boolean distinct) Generates a count function call, based on thecountFields
.- Parameters:
countFields
- the non-empty list of fields that are used for countingdistinct
- if it should be a distinct count- Returns:
- the generated count function call
-
getJSqlLower
Generates a lower function call, based on thecolumn
.- Parameters:
column
- the non-empty column to use as param for lower- Returns:
- the generated lower function call
-