Class StringTemplateEngine

All Implemented Interfaces:

public class StringTemplateEngine extends Object implements TemplateEngine
Rewrites a StringTemplate template, using the attributes on the StatementContext as template parameters. For configuration, see StringTemplates.
  • Constructor Details

    • StringTemplateEngine

      public StringTemplateEngine()
  • Method Details

    • render

      public String render(String sql, StatementContext ctx)
      Description copied from interface: TemplateEngine
      Renders an SQL statement from the given template, using the statement context as needed.
      Specified by:
      render in interface TemplateEngine
      sql - The SQL to rewrite
      ctx - The statement context for the statement being executed
      something which can provide the actual SQL to prepare a statement from and which can bind the correct arguments to that prepared statement