Class Functions
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 SimpleFunction
count
(Collection<? extends Expression> columns) Creates a newCOUNT
function.static SimpleFunction
count
(Expression... columns) Creates a newCOUNT
function.static SimpleFunction
least
(Expression... expressions) static SimpleFunction
lower
(Expression expression) Creates a newLOWER
function.static SimpleFunction
upper
(Expression expression) Creates a newUPPER
function.
-
Method Details
-
count
Creates a newCOUNT
function.- Parameters:
columns
- columns to apply count, must not be null.- Returns:
- the new
count function
forcolumns
.
-
least
-
count
Creates a newCOUNT
function.- Parameters:
columns
- columns to apply count, must not be null.- Returns:
- the new
count function
forcolumns
.
-
upper
Creates a newUPPER
function.- Parameters:
expression
- expression to apply count, must not be null.- Returns:
- the new
upper function
forexpression
. - Since:
- 2.0
-
lower
Creates a newLOWER
function.- Parameters:
expression
- expression to apply lower, must not be null.- Returns:
- the new
lower function
forexpression
. - Since:
- 2.0
-