public static class SqlGeneratorConfig.TemplateFileConfig extends Object
| Constructor and Description |
|---|
TemplateFileConfig() |
| Modifier and Type | Method and Description |
|---|---|
String |
getBaseDir()
Get the base directory for reading template resource file.
|
Long |
getCacheTtl()
Get the cache TTL(millisecond) for resolved templates.
|
Charset |
getEncoding()
Get the character encoding for reading template resource file.
|
String[] |
getPatterns()
Get patterns for reading as template resource file.
|
boolean |
isCacheEnabled()
Get whether use the cache feature when load template resource file.
|
void |
setBaseDir(String baseDir)
Set the base directory for reading template resource file.
|
void |
setCacheEnabled(boolean cacheEnabled)
Set whether use the cache feature when load template resource file.
|
void |
setCacheTtl(Long cacheTtl)
Set the cache TTL(millisecond) for resolved templates.
|
void |
setEncoding(Charset encoding)
Set the character encoding for reading template resource file.
|
void |
setPatterns(String... patterns)
Set patterns for reading as template resource file.
|
public Charset getEncoding()
Default is UTF-8.
public void setEncoding(Charset encoding)
encoding - the character encoding for reading template resource filepublic String getBaseDir()
Default is ""(none).
public void setBaseDir(String baseDir)
baseDir - the base directory for reading template resource filepublic String[] getPatterns()
Default is "*.sql".
public void setPatterns(String... patterns)
patterns - patterns for reading as template resource filepublic boolean isCacheEnabled()
Default is true.
truepublic void setCacheEnabled(boolean cacheEnabled)
cacheEnabled - If use th cache feature, set truepublic Long getCacheTtl()
Default is null(indicate to use default value of Thymeleaf).
public void setCacheTtl(Long cacheTtl)
cacheTtl - the cache TTL(millisecond) for resolved templatesCopyright © 2018–2020 MyBatis.org. All rights reserved.