@FunctionalInterface public interface TemplateEngine
UseTemplateEngine annotation, and/or create your own custom annotation in case your TemplateEngine has configuration parameters! Suitable constructors are the no-arg constructor, one that takes a Class, and one that takes both a Class and a Method.DefinedAttributeTemplateEngine| Modifier and Type | Field and Description |
|---|---|
static TemplateEngine |
NOP
Convenience constant that returns the input template.
|
| Modifier and Type | Method and Description |
|---|---|
String |
render(String template,
StatementContext ctx)
Renders an SQL statement from the given template, using the statement
context as needed.
|
static final TemplateEngine NOP
String render(String template, StatementContext ctx)
template - The SQL to rewritectx - The statement context for the statement being executedCopyright © 2019. All rights reserved.