public static class SqlGeneratorConfig.DialectConfig extends Object
| Constructor and Description |
|---|
DialectConfig() |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends BindVariableRender> |
getBindVariableRender()
Get a bind variable render.
|
Character[] |
getLikeAdditionalEscapeTargetChars()
Get additional escape target characters(custom wildcard characters) for LIKE condition.
|
Character |
getLikeEscapeChar()
Get the escape character for wildcard of LIKE condition.
|
String |
getLikeEscapeClauseFormat()
Get the format of escape clause for LIKE condition.
|
String |
getPrefix()
Get the prefix name of dialect provided by this project.
|
void |
setBindVariableRender(Class<? extends 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 |
setPrefix(String prefix)
Set the prefix name of dialect provided by this project.
|
public String getPrefix()
Default is "mb".
public void setPrefix(String prefix)
prefix - the prefix name of dialectpublic Character getLikeEscapeChar()
Default is '\'.
public void setLikeEscapeChar(Character likeEscapeChar)
likeEscapeChar - the escape character for wildcardpublic String getLikeEscapeClauseFormat()
Can specify format that can be allowed by String#format method. Default is "ESCAPE '%s'".
public void setLikeEscapeClauseFormat(String likeEscapeClauseFormat)
likeEscapeClauseFormat - the format of escape clause for LIKE conditionpublic Character[] getLikeAdditionalEscapeTargetChars()
Can specify multiple characters using comma(",") as separator character. Default is empty(none).
public void setLikeAdditionalEscapeTargetChars(Character... likeAdditionalEscapeTargetChars)
likeAdditionalEscapeTargetChars - additional escape target characters(custom wildcard characters)public Class<? extends BindVariableRender> getBindVariableRender()
Default is BindVariableRender.BuiltIn#MYBATIS
public void setBindVariableRender(Class<? extends BindVariableRender> bindVariableRender)
Copyright © 2018–2020 MyBatis.org. All rights reserved.