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 SimpleFunctioncount(Collection<? extends Expression> columns) Creates a newCOUNTfunction.static SimpleFunctioncount(Expression... columns) Creates a newCOUNTfunction.static SimpleFunctionleast(Expression... expressions) static SimpleFunctionlower(Expression expression) Creates a newLOWERfunction.static SimpleFunctionupper(Expression expression) Creates a newUPPERfunction.
-
Method Details
-
count
Creates a newCOUNTfunction.- Parameters:
columns- columns to apply count, must not be null.- Returns:
- the new
count functionforcolumns.
-
least
-
count
Creates a newCOUNTfunction.- Parameters:
columns- columns to apply count, must not be null.- Returns:
- the new
count functionforcolumns.
-
upper
Creates a newUPPERfunction.- Parameters:
expression- expression to apply count, must not be null.- Returns:
- the new
upper functionforexpression. - Since:
- 2.0
-
lower
Creates a newLOWERfunction.- Parameters:
expression- expression to apply lower, must not be null.- Returns:
- the new
lower functionforexpression. - Since:
- 2.0
-