Class TemplateRenderer


  • public class TemplateRenderer
    extends Object
    Delegate for handling function "templates".
    • Constructor Detail

      • TemplateRenderer

        public TemplateRenderer​(String template)
        Constructs a template renderer
        Parameters:
        template - The template
    • Method Detail

      • getTemplate

        public String getTemplate()
      • getAnticipatedNumberOfArguments

        public int getAnticipatedNumberOfArguments()
      • render

        public String render​(List args,
                             SessionFactoryImplementor factory)
        The rendering code.
        Parameters:
        args - The arguments to inject into the template
        factory - The SessionFactory
        Returns:
        The rendered template with replacements