public interface ExpressionFunctions
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
escape(java.lang.CharSequence text)
Escapes the SQL LIKE wild card characters in a target string by using the default escape
character.
|
java.lang.String |
escape(java.lang.CharSequence text,
char escapeChar)
Escapes the SQL LIKE wild card characters in a target string by using a specified escape
character.
|
java.lang.String |
infix(java.lang.CharSequence infix)
Escapes the SQL LIKE wild card characters in a target string by using the default escape
character '$' and generate a text to perform a infix search for the SQL LIKE operator.
|
java.lang.String |
infix(java.lang.CharSequence infix,
char escapeChar)
Escapes the SQL LIKE wild card characters in a target string by using a specified escape
character and generate a text to perform a infix search for the SQL LIKE operator.
|
boolean |
isBlank(java.lang.CharSequence text)
Whether a text is blank.
|
boolean |
isEmpty(java.lang.CharSequence text)
Whether a text is empty.
|
boolean |
isNotBlank(java.lang.CharSequence text)
Whether a text is not blank.
|
boolean |
isNotEmpty(java.lang.CharSequence text)
Whether a text is not empty.
|
java.lang.String |
prefix(java.lang.CharSequence prefix)
Escapes the SQL LIKE wild card characters in a target string by using the default escape
character '$' and generate a text to perform a prefix search for the SQL Like operator.
|
java.lang.String |
prefix(java.lang.CharSequence prefix,
char escapeChar)
Escapes the SQL LIKE wild card characters in a target string by using a specified escape
character and generate a text to perform a prefix search for the SQL LIKE operator.
|
java.util.Date |
roundDownTimePart(java.util.Date date)
Round down a time part of
Date. |
java.sql.Date |
roundDownTimePart(java.sql.Date date)
Round down a time part of
Date. |
java.time.LocalDateTime |
roundDownTimePart(java.time.LocalDateTime localDateTime)
Round down a time part of
LocalDateTime. |
java.sql.Timestamp |
roundDownTimePart(java.sql.Timestamp timestamp)
Round down a time part of
Timestamp. |
java.util.Date |
roundUpTimePart(java.util.Date date)
Round up a time part of
Date. |
java.sql.Date |
roundUpTimePart(java.sql.Date date)
Round up a time part of
Date. |
java.time.LocalDate |
roundUpTimePart(java.time.LocalDate localDate)
Return the next day.
|
java.time.LocalDateTime |
roundUpTimePart(java.time.LocalDateTime localDateTime)
Round up a time part of
LocalDateTime. |
java.sql.Timestamp |
roundUpTimePart(java.sql.Timestamp timestamp)
Round up a time part of
Timestamp. |
java.lang.String |
suffix(java.lang.CharSequence suffix)
Escapes the SQL LIKE wild card characters in a target string by using the default escape
character '$' and generate a text to perform a suffix search for the SQL LIKE operator.
|
java.lang.String |
suffix(java.lang.CharSequence suffix,
char escapeChar)
Escapes the SQL LIKE wild card characters in a target string by using a specified escape
character and generate a text to perform a suffix search for the SQL LIKE operator.
|
java.lang.String escape(java.lang.CharSequence text)
For example, a%b_ is converted to the a a$%b$_.
text - the target textjava.lang.String escape(java.lang.CharSequence text,
char escapeChar)
text - the target textescapeChar - the escape characterjava.lang.String prefix(java.lang.CharSequence prefix)
For example, a%b_ is converted to the a a$%b$_%.
prefix - the prefix textjava.lang.String prefix(java.lang.CharSequence prefix,
char escapeChar)
prefix - the prefixed textescapeChar - the escape characterjava.lang.String suffix(java.lang.CharSequence suffix)
For example, a%b_ is converted to the a %a$%b$_.
suffix - the suffix textjava.lang.String suffix(java.lang.CharSequence suffix,
char escapeChar)
suffix - the suffix textescapeChar - the escape characterjava.lang.String infix(java.lang.CharSequence infix)
For example, a%b_ is converted to the a %a$%b$_%.
infix - the infix textjava.lang.String infix(java.lang.CharSequence infix,
char escapeChar)
infix - the infix textescapeChar - the escape characterjava.util.Date roundDownTimePart(java.util.Date date)
Date.date - the target datejava.sql.Date roundDownTimePart(java.sql.Date date)
Date.date - the target datejava.sql.Timestamp roundDownTimePart(java.sql.Timestamp timestamp)
Timestamp.timestamp - the target timestampjava.time.LocalDateTime roundDownTimePart(java.time.LocalDateTime localDateTime)
LocalDateTime.localDateTime - the target localDateTimejava.util.Date roundUpTimePart(java.util.Date date)
Date.date - the target datejava.sql.Date roundUpTimePart(java.sql.Date date)
Date.date - the target datejava.sql.Timestamp roundUpTimePart(java.sql.Timestamp timestamp)
Timestamp.timestamp - the target timestampjava.time.LocalDate roundUpTimePart(java.time.LocalDate localDate)
localDate - the target localDatejava.time.LocalDateTime roundUpTimePart(java.time.LocalDateTime localDateTime)
LocalDateTime.localDateTime - the target localDateTimeboolean isEmpty(java.lang.CharSequence text)
text - the target texttrue if the text is null or its length is 0, else falseboolean isNotEmpty(java.lang.CharSequence text)
text - the target textfalse if the text is null or its length is 0, else trueboolean isBlank(java.lang.CharSequence text)
text - the target texttrue if the text is null, its length is 0 or the text contains
only blank characters, else false.boolean isNotBlank(java.lang.CharSequence text)
text - the target textfalse if the text is null, its length is 0 or the text contains
only blank characters, else true.