java.lang.Object
org.seasar.doma.internal.expr.NullExpressionFunctions
- All Implemented Interfaces:
ExpressionFunctions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionescape(CharSequence text) Escapes the SQL LIKE wild card characters in a target string by using the default escape character.escape(CharSequence text, char escapeChar) Escapes the SQL LIKE wild card characters in a target string by using a specified escape character.infix(CharSequence text) 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.infix(CharSequence text, 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.booleanisBlank(CharSequence charSequence) Whether a text is blank.booleanisEmpty(CharSequence charSequence) Whether a text is empty.booleanisNotBlank(CharSequence charSequence) Whether a text is not blank.booleanisNotEmpty(CharSequence charSequence) Whether a text is not empty.prefix(CharSequence text) 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.prefix(CharSequence text, char escape) 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.roundDownTimePart(Date date) Round down a time part ofDate.roundDownTimePart(Timestamp timestamp) Round down a time part ofTimestamp.roundDownTimePart(LocalDateTime localDateTime) Round down a time part ofLocalDateTime.roundDownTimePart(Date date) Round down a time part ofDate.roundUpTimePart(Date date) Round up a time part ofDate.roundUpTimePart(Timestamp timestamp) Round up a time part ofTimestamp.roundUpTimePart(LocalDate localDate) Return the next day.roundUpTimePart(LocalDateTime localDateTime) Round up a time part ofLocalDateTime.roundUpTimePart(Date date) Round up a time part ofDate.suffix(CharSequence text) 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.suffix(CharSequence text, char escape) 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.
-
Constructor Details
-
NullExpressionFunctions
public NullExpressionFunctions()
-
-
Method Details
-
escape
Description copied from interface:ExpressionFunctionsEscapes the SQL LIKE wild card characters in a target string by using the default escape character.For example,
a%b_is converted to the aa$%b$_.- Specified by:
escapein interfaceExpressionFunctions- Parameters:
text- the target text- Returns:
- the escaped text
-
escape
Description copied from interface:ExpressionFunctionsEscapes the SQL LIKE wild card characters in a target string by using a specified escape character.- Specified by:
escapein interfaceExpressionFunctions- Parameters:
text- the target textescapeChar- the escape character- Returns:
- the escaped text
-
prefix
Description copied from interface:ExpressionFunctionsEscapes 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.For example,
a%b_is converted to the aa$%b$_%.- Specified by:
prefixin interfaceExpressionFunctions- Parameters:
text- the prefix text- Returns:
- the text for a prefix search
-
prefix
Description copied from interface:ExpressionFunctionsEscapes 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.- Specified by:
prefixin interfaceExpressionFunctions- Parameters:
text- the prefixed textescape- the escape character- Returns:
- the text for a prefix search
-
suffix
Description copied from interface:ExpressionFunctionsEscapes 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.For example,
a%b_is converted to the a%a$%b$_.- Specified by:
suffixin interfaceExpressionFunctions- Parameters:
text- the suffix text- Returns:
- the text for a suffix search
-
suffix
Description copied from interface:ExpressionFunctionsEscapes 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.- Specified by:
suffixin interfaceExpressionFunctions- Parameters:
text- the suffix textescape- the escape character- Returns:
- the text for a suffix search
-
infix
Description copied from interface:ExpressionFunctionsEscapes 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.For example,
a%b_is converted to the a%a$%b$_%.- Specified by:
infixin interfaceExpressionFunctions- Parameters:
text- the infix text- Returns:
- the text for a infix search
-
infix
Description copied from interface:ExpressionFunctionsEscapes 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.- Specified by:
infixin interfaceExpressionFunctions- Parameters:
text- the infix textescapeChar- the escape character- Returns:
- the text for a infix search
-
roundDownTimePart
Description copied from interface:ExpressionFunctionsRound down a time part ofDate.- Specified by:
roundDownTimePartin interfaceExpressionFunctions- Parameters:
date- the target date- Returns:
- the date whose time part is rounded down
-
roundDownTimePart
Description copied from interface:ExpressionFunctionsRound down a time part ofDate.- Specified by:
roundDownTimePartin interfaceExpressionFunctions- Parameters:
date- the target date- Returns:
- the date whose time part is rounded down
-
roundDownTimePart
Description copied from interface:ExpressionFunctionsRound down a time part ofTimestamp.- Specified by:
roundDownTimePartin interfaceExpressionFunctions- Parameters:
timestamp- the target timestamp- Returns:
- the timestamp whose time part is rounded down
-
roundDownTimePart
Description copied from interface:ExpressionFunctionsRound down a time part ofLocalDateTime.- Specified by:
roundDownTimePartin interfaceExpressionFunctions- Parameters:
localDateTime- the target localDateTime- Returns:
- the localDateTime whose time part is rounded down
-
roundUpTimePart
Description copied from interface:ExpressionFunctionsRound up a time part ofDate.- Specified by:
roundUpTimePartin interfaceExpressionFunctions- Parameters:
date- the target date- Returns:
- the date whose time part is rounded up
-
roundUpTimePart
Description copied from interface:ExpressionFunctionsRound up a time part ofDate.- Specified by:
roundUpTimePartin interfaceExpressionFunctions- Parameters:
date- the target date- Returns:
- the date whose time part is rounded up
-
roundUpTimePart
Description copied from interface:ExpressionFunctionsRound up a time part ofTimestamp.- Specified by:
roundUpTimePartin interfaceExpressionFunctions- Parameters:
timestamp- the target timestamp- Returns:
- the timestamp whose time part is rounded up
-
roundUpTimePart
Description copied from interface:ExpressionFunctionsReturn the next day.- Specified by:
roundUpTimePartin interfaceExpressionFunctions- Parameters:
localDate- the target localDate- Returns:
- the next day
-
roundUpTimePart
Description copied from interface:ExpressionFunctionsRound up a time part ofLocalDateTime.- Specified by:
roundUpTimePartin interfaceExpressionFunctions- Parameters:
localDateTime- the target localDateTime- Returns:
- the localDateTime whose time part is rounded up
-
isEmpty
Description copied from interface:ExpressionFunctionsWhether a text is empty.- Specified by:
isEmptyin interfaceExpressionFunctions- Parameters:
charSequence- the target text- Returns:
trueif the text isnullor its length is0, elsefalse
-
isNotEmpty
Description copied from interface:ExpressionFunctionsWhether a text is not empty.- Specified by:
isNotEmptyin interfaceExpressionFunctions- Parameters:
charSequence- the target text- Returns:
falseif the text isnullor its length is0, elsetrue
-
isBlank
Description copied from interface:ExpressionFunctionsWhether a text is blank.- Specified by:
isBlankin interfaceExpressionFunctions- Parameters:
charSequence- the target text- Returns:
trueif the text isnull, its length is0or the text contains only blank characters, elsefalse.
-
isNotBlank
Description copied from interface:ExpressionFunctionsWhether a text is not blank.- Specified by:
isNotBlankin interfaceExpressionFunctions- Parameters:
charSequence- the target text- Returns:
falseif the text isnull, its length is0or the text contains only blank characters, elsetrue.
-