Class NamePrependingTemplateEngine

java.lang.Object
io.dropwizard.jdbi3.NamePrependingTemplateEngine
All Implemented Interfaces:
org.jdbi.v3.core.statement.TemplateEngine

public class NamePrependingTemplateEngine extends Object implements org.jdbi.v3.core.statement.TemplateEngine
Jdbi TemplateEngine that prepends the SQLObject's type and method name in front of every statement sent to the database.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.jdbi.v3.core.statement.TemplateEngine

    org.jdbi.v3.core.statement.TemplateEngine.Parsing
  • Field Summary

    Fields inherited from interface org.jdbi.v3.core.statement.TemplateEngine

    NOP
  • Constructor Summary

    Constructors
    Constructor
    Description
    NamePrependingTemplateEngine(org.jdbi.v3.core.statement.TemplateEngine originalEngine)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    render(String template, org.jdbi.v3.core.statement.StatementContext ctx)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.jdbi.v3.core.statement.TemplateEngine

    parse
  • Constructor Details

    • NamePrependingTemplateEngine

      public NamePrependingTemplateEngine(org.jdbi.v3.core.statement.TemplateEngine originalEngine)
      Parameters:
      originalEngine - The original TemplateEngine to use to create the actual statements
  • Method Details

    • render

      public String render(String template, org.jdbi.v3.core.statement.StatementContext ctx)
      Specified by:
      render in interface org.jdbi.v3.core.statement.TemplateEngine