Package org.mybatis.scripting.thymeleaf
Class SqlGeneratorConfig.DialectConfig
java.lang.Object
org.mybatis.scripting.thymeleaf.SqlGeneratorConfig.DialectConfig
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionClass
<? extends BindVariableRender> Deprecated.Get additional escape target characters(custom wildcard characters) for LIKE condition.Get the escape character for wildcard of LIKE condition.Get the format of escape clause for LIKE condition.Get the prefix name of dialect provided by this project.void
setBindVariableRender
(Class<? extends BindVariableRender> bindVariableRender) Deprecated.void
setBindVariableRenderInstance
(BindVariableRender bindVariableRender) void
setLikeAdditionalEscapeTargetChars
(Character... likeAdditionalEscapeTargetChars) Set additional escape target characters(custom wildcard characters) for LIKE condition.void
setLikeEscapeChar
(Character likeEscapeChar) Set the escape character for wildcard of LIKE condition.void
setLikeEscapeClauseFormat
(String likeEscapeClauseFormat) Set the format of escape clause for LIKE condition.void
Set the prefix name of dialect provided by this project.
-
Constructor Details
-
DialectConfig
public DialectConfig()
-
-
Method Details
-
getPrefix
Get the prefix name of dialect provided by this project.Default is
"mb"
.- Returns:
- the prefix name of dialect
-
setPrefix
Set the prefix name of dialect provided by this project.- Parameters:
prefix
- the prefix name of dialect
-
getLikeEscapeChar
Get the escape character for wildcard of LIKE condition.Default is
'\'
.- Returns:
- the escape character for wildcard
-
setLikeEscapeChar
Set the escape character for wildcard of LIKE condition.- Parameters:
likeEscapeChar
- the escape character for wildcard
-
getLikeEscapeClauseFormat
Get the format of escape clause for LIKE condition.Can specify format that can be allowed by String#format method. Default is
"ESCAPE '%s'"
.- Returns:
- the format of escape clause for LIKE condition
-
setLikeEscapeClauseFormat
Set the format of escape clause for LIKE condition.- Parameters:
likeEscapeClauseFormat
- the format of escape clause for LIKE condition
-
getLikeAdditionalEscapeTargetChars
Get additional escape target characters(custom wildcard characters) for LIKE condition.Can specify multiple characters using comma(",") as separator character. Default is empty(none).
- Returns:
- additional escape target characters(custom wildcard characters)
-
setLikeAdditionalEscapeTargetChars
Set additional escape target characters(custom wildcard characters) for LIKE condition.- Parameters:
likeAdditionalEscapeTargetChars
- additional escape target characters(custom wildcard characters)
-
getBindVariableRender
Deprecated.Get a bind variable render.Default is
This method exists for the backward compatibility.BindVariableRender.BuiltIn.MYBATIS
UsegetBindVariableRenderInstance()
instead- Returns:
- a bind variable render
-
setBindVariableRender
@Deprecated public void setBindVariableRender(Class<? extends BindVariableRender> bindVariableRender) Deprecated.This method exists for the backward compatibility.
UsesetBindVariableRenderInstance(BindVariableRender)
instead- Parameters:
bindVariableRender
- bindVariableRender class
-
getBindVariableRenderInstance
-
setBindVariableRenderInstance
-