Class SqlGeneratorConfig.DialectConfig

java.lang.Object
org.mybatis.scripting.thymeleaf.SqlGeneratorConfig.DialectConfig
Enclosing class:
SqlGeneratorConfig

public static class SqlGeneratorConfig.DialectConfig extends Object
Dialect configuration.
Since:
1.0.0
  • Constructor Details

    • DialectConfig

      public DialectConfig()
  • Method Details

    • getPrefix

      public String getPrefix()
      Get the prefix name of dialect provided by this project.

      Default is "mb".

      Returns:
      the prefix name of dialect
    • setPrefix

      public void setPrefix(String prefix)
      Set the prefix name of dialect provided by this project.
      Parameters:
      prefix - the prefix name of dialect
    • getLikeEscapeChar

      public Character getLikeEscapeChar()
      Get the escape character for wildcard of LIKE condition.

      Default is '\'.

      Returns:
      the escape character for wildcard
    • setLikeEscapeChar

      public void setLikeEscapeChar(Character likeEscapeChar)
      Set the escape character for wildcard of LIKE condition.
      Parameters:
      likeEscapeChar - the escape character for wildcard
    • getLikeEscapeClauseFormat

      public String 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

      public void setLikeEscapeClauseFormat(String likeEscapeClauseFormat)
      Set the format of escape clause for LIKE condition.
      Parameters:
      likeEscapeClauseFormat - the format of escape clause for LIKE condition
    • getLikeAdditionalEscapeTargetChars

      public Character[] 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

      public void setLikeAdditionalEscapeTargetChars(Character... likeAdditionalEscapeTargetChars)
      Set additional escape target characters(custom wildcard characters) for LIKE condition.
      Parameters:
      likeAdditionalEscapeTargetChars - additional escape target characters(custom wildcard characters)
    • getBindVariableRender

      @Deprecated public Class<? extends BindVariableRender> getBindVariableRender()
      Deprecated.
      Get a bind variable render.

      Default is BindVariableRender.BuiltIn.MYBATIS

      This method exists for the backward compatibility.
      Use getBindVariableRenderInstance() instead
      Returns:
      a bind variable render
    • setBindVariableRender

      @Deprecated public void setBindVariableRender(Class<? extends BindVariableRender> bindVariableRender)
      Deprecated.
      This method exists for the backward compatibility.
      Use setBindVariableRenderInstance(BindVariableRender) instead
      Parameters:
      bindVariableRender - bindVariableRender class
    • getBindVariableRenderInstance

      public BindVariableRender getBindVariableRenderInstance()
    • setBindVariableRenderInstance

      public void setBindVariableRenderInstance(BindVariableRender bindVariableRender)