Package org.jdbi.v3.stringtemplate4
Class StringTemplates
java.lang.Object
org.jdbi.v3.stringtemplate4.StringTemplates
- All Implemented Interfaces:
JdbiConfig<StringTemplates>
Configuration options for
StringTemplateEngine.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a copy of this configuration object.booleansetFailOnMissingAttribute(boolean failOnMissingAttribute) Control whether missing attributes cause a rendering exception.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jdbi.v3.core.config.JdbiConfig
setRegistry
-
Constructor Details
-
StringTemplates
public StringTemplates()
-
-
Method Details
-
isFailOnMissingAttribute
public boolean isFailOnMissingAttribute()- Returns:
- whether missing attributes in a StringTemplate are a rendering error
-
setFailOnMissingAttribute
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
Description copied from interface:JdbiConfigReturns a copy of this configuration object. Changes to the copy should not modify the original, and vice-versa.- Specified by:
createCopyin interfaceJdbiConfig<StringTemplates>- Returns:
- a copy of this configuration object.
-