Package org.jdbi.v3.freemarker
Class FreemarkerEngine
java.lang.Object
org.jdbi.v3.freemarker.FreemarkerEngine
- All Implemented Interfaces:
TemplateEngine
,TemplateEngine.Parsing
Rewrites a Freemarker template, using the attributes on the
StatementContext
as template parameters.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jdbi.v3.core.statement.TemplateEngine
TemplateEngine.Parsing
-
Field Summary
Fields inherited from interface org.jdbi.v3.core.statement.TemplateEngine
NOP
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionparse
(String sqlTemplate, ConfigRegistry config) Parse a SQL template and return a parsed representation ready to apply to a statement.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jdbi.v3.core.statement.TemplateEngine.Parsing
render
-
Constructor Details
-
FreemarkerEngine
public FreemarkerEngine()
-
-
Method Details
-
parse
Description copied from interface:TemplateEngine
Parse a SQL template and return a parsed representation ready to apply to a statement. This allows the parsed representation to be cached and reused.- Specified by:
parse
in interfaceTemplateEngine
- Specified by:
parse
in interfaceTemplateEngine.Parsing
- Parameters:
sqlTemplate
- the sql template to parseconfig
- the Jdbi configuration at prepare time- Returns:
- a parsed representation, if available
-