Package org.mybatis.scripting.freemarker
Class FreeMarkerLanguageDriverConfig.TemplateFileConfig.PathProviderConfig
java.lang.Object
org.mybatis.scripting.freemarker.FreeMarkerLanguageDriverConfig.TemplateFileConfig.PathProviderConfig
- Enclosing class:
FreeMarkerLanguageDriverConfig.TemplateFileConfig
public static class FreeMarkerLanguageDriverConfig.TemplateFileConfig.PathProviderConfig
extends Object
The template file path provider configuration.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet a prefix for adding to template file path.boolean
Get whether cache a resolved template file path.boolean
Get whether includes mapper name into file name when separate directory per mapper.boolean
Get whether includes package path part.boolean
Get whether separate directory per mapper.void
setCacheEnabled
(boolean cacheEnabled) Set whether cache a resolved template file path.void
setIncludesMapperNameWhenSeparateDirectory
(boolean includesMapperNameWhenSeparateDirectory) Set whether includes mapper name into file name when separate directory per mapper.void
setIncludesPackagePath
(boolean includesPackagePath) Set whether includes package path part.void
Set the prefix for adding to template file path.void
setSeparateDirectoryPerMapper
(boolean separateDirectoryPerMapper) Set whether separate directory per mapper.
-
Constructor Details
-
PathProviderConfig
public PathProviderConfig()
-
-
Method Details
-
getPrefix
Get a prefix for adding to template file path.Default is
""
.- Returns:
- a prefix for adding to template file path
-
setPrefix
Set the prefix for adding to template file path.- Parameters:
prefix
- The prefix for adding to template file path
-
isIncludesPackagePath
public boolean isIncludesPackagePath()Get whether includes package path part.Default is
true
.- Returns:
- If includes package path, return
true
-
setIncludesPackagePath
public void setIncludesPackagePath(boolean includesPackagePath) Set whether includes package path part.- Parameters:
includesPackagePath
- If want to includes, settrue
-
isSeparateDirectoryPerMapper
public boolean isSeparateDirectoryPerMapper()Get whether separate directory per mapper.- Returns:
- If separate directory per mapper, return
true
-
setSeparateDirectoryPerMapper
public void setSeparateDirectoryPerMapper(boolean separateDirectoryPerMapper) Set whether separate directory per mapper.Default is
true
.- Parameters:
separateDirectoryPerMapper
- If want to separate directory, settrue
-
isIncludesMapperNameWhenSeparateDirectory
public boolean isIncludesMapperNameWhenSeparateDirectory()Get whether includes mapper name into file name when separate directory per mapper.Default is
true
.- Returns:
- If includes mapper name, return
true
-
setIncludesMapperNameWhenSeparateDirectory
public void setIncludesMapperNameWhenSeparateDirectory(boolean includesMapperNameWhenSeparateDirectory) Set whether includes mapper name into file name when separate directory per mapper.Default is
true
.- Parameters:
includesMapperNameWhenSeparateDirectory
- If want to includes, settrue
-
isCacheEnabled
public boolean isCacheEnabled()Get whether cache a resolved template file path.Default is
true
.- Returns:
- If cache a resolved template file path, return
true
-
setCacheEnabled
public void setCacheEnabled(boolean cacheEnabled) Set whether cache a resolved template file path.- Parameters:
cacheEnabled
- If want to cache, settrue
-