Class NoTemplateEngine

  • All Implemented Interfaces:
    TemplateEngine

    public class NoTemplateEngine
    extends java.lang.Object
    implements TemplateEngine
    A TemplateEngine that does not do any templating but returns SQL verbatim.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String render​(java.lang.String template, StatementContext ctx)
      Renders an SQL statement from the given template, using the statement context as needed.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NoTemplateEngine

        public NoTemplateEngine()
    • Method Detail

      • render

        public java.lang.String render​(java.lang.String template,
                                       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
        Parameters:
        template - The SQL to rewrite
        ctx - The statement context for the statement being executed
        Returns:
        something which can provide the actual SQL to prepare a statement from and which can bind the correct arguments to that prepared statement