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 Details

    • PathProviderConfig

      public PathProviderConfig()
  • Method Details

    • getPrefix

      public String getPrefix()
      Get a prefix for adding to template file path.

      Default is "".

      Returns:
      a prefix for adding to template file path
    • setPrefix

      public void setPrefix(String prefix)
      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, set true
    • 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, set true
    • 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, set true
    • 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, set true