java.lang.Object
org.springframework.data.relational.core.sql.Functions
Factory for common
function expressions.- Since:
- 1.1
- Author:
- Mark Paluch, Jens Schauder
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic SimpleFunctioncoalesce(Expression... expressions) Creates a newCOALESCEfunction.static SimpleFunctioncount(Collection<? extends Expression> columns) Creates a newCOUNTfunction.static SimpleFunctioncount(Expression... columns) Creates a newCOUNTfunction.static SimpleFunctiongreatest(List<? extends Expression> expressions) Creates a newGREATESTfunction.static SimpleFunctiongreatest(Expression... expressions) Creates a newGREATESTfunction.static SimpleFunctionleast(Expression... expressions) Creates a newLEASTfunction.static SimpleFunctionlower(Expression expression) Creates a newLOWERfunction.static SimpleFunctionupper(Expression expression) Creates a newUPPERfunction.
-
Method Details
-
coalesce
Creates a newCOALESCEfunction.- Parameters:
expressions- expressions to applyCOALESCE, must not be null.- Returns:
- the new
COALESCE functionforexpression. - Since:
- 3.2
-
count
Creates a newCOUNTfunction.- Parameters:
columns- columns to applyCOUNT, must not be null.- Returns:
- the new
COUNT functionforcolumns.
-
count
Creates a newCOUNTfunction.- Parameters:
columns- columns to applyCOUNT, must not be null.- Returns:
- the new
COUNT functionforcolumns.
-
greatest
Creates a newGREATESTfunction.- Parameters:
expressions- expressions to applyGREATEST, must not be null.- Returns:
- the new
GREATEST functionforexpression. - Since:
- 3.2
-
greatest
Creates a newGREATESTfunction.- Parameters:
expressions- expressions to applyGREATEST, must not be null.- Returns:
- the new
GREATEST functionforexpression. - Since:
- 3.2
-
least
Creates a newLEASTfunction.- Parameters:
expressions- expressions to applyLEAST, must not be null.- Returns:
- the new
LEAST functionforexpression. - Since:
- 3.2
-
lower
Creates a newLOWERfunction.- Parameters:
expression- expression to applyLOWER, must not be null.- Returns:
- the new
LOWER functionforexpression. - Since:
- 2.0
-
upper
Creates a newUPPERfunction.- Parameters:
expression- expression to applyUPPER, must not be null.- Returns:
- the new
UPPER functionforexpression. - Since:
- 2.0
-