Class 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)  
    • Constructor Detail

      • NamePrependingTemplateEngine

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

      • render

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