Class Likes.Builder
java.lang.Object
org.mybatis.scripting.thymeleaf.expression.Likes.Builder
-
Method Summary
Modifier and TypeMethodDescriptionadditionalEscapeTargetChars
(Character... additionalEscapeTargetChars) Set additional escape target characters(custom wildcard characters) for LIKE condition.build()
Return aLikes
instance .escapeChar
(Character escapeChar) Set an escape character for wildcard of LIKE.escapeClauseFormat
(String escapeClauseFormat) Set a format of escape clause.
-
Method Details
-
escapeChar
Set an escape character for wildcard of LIKE.
The default value is'\'
(backslash)- Parameters:
escapeChar
- A escape character- Returns:
- A self instance
-
additionalEscapeTargetChars
Set additional escape target characters(custom wildcard characters) for LIKE condition.
The default value is nothing.- Parameters:
additionalEscapeTargetChars
- escape target characters(custom wildcard characters)- Returns:
- A self instance
-
escapeClauseFormat
Set a format of escape clause.
The default value is"ESCAPE '%s'"
.- Parameters:
escapeClauseFormat
- a format of escape clause- Returns:
- A self instance
-
build
-