Class StringTemplates

java.lang.Object
org.jdbi.v3.stringtemplate4.StringTemplates
All Implemented Interfaces:
JdbiConfig<StringTemplates>

public class StringTemplates extends Object implements JdbiConfig<StringTemplates>
Configuration options for StringTemplateEngine.
  • Constructor Details

    • StringTemplates

      public StringTemplates()
  • Method Details

    • isFailOnMissingAttribute

      public boolean isFailOnMissingAttribute()
      Returns:
      whether missing attributes in a StringTemplate are a rendering error
    • setFailOnMissingAttribute

      public StringTemplates setFailOnMissingAttribute(boolean failOnMissingAttribute)
      Control whether missing attributes cause a rendering exception. Defaults to false.
      Parameters:
      failOnMissingAttribute - whether a missing attribute throws an exception
      Returns:
      this configuration instance
    • createCopy

      public StringTemplates createCopy()
      Description copied from interface: JdbiConfig
      Returns a copy of this configuration object. Changes to the copy should not modify the original, and vice-versa.
      Specified by:
      createCopy in interface JdbiConfig<StringTemplates>
      Returns:
      a copy of this configuration object.