Class FreemarkerSqlLocator


  • public class FreemarkerSqlLocator
    extends java.lang.Object
    Locates SQL in .sql.ftl Freemarker files on the classpath.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private FreemarkerConfig config  
      private static freemarker.template.Configuration CONFIGURATION
      Deprecated.
      don't use static scope
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static freemarker.template.Template findTemplate​(freemarker.template.Configuration config, java.lang.Class<?> type, java.lang.String templateName)  
      static freemarker.template.Template findTemplate​(java.lang.Class<?> type, java.lang.String templateName)
      Deprecated.
      this static method does not respect configuration, use FreemarkerConfig.createLocator()
      freemarker.template.Template locate​(java.lang.Class<?> type, java.lang.String templateName)  
      private static java.lang.ClassLoader selectClassLoader()  
      • Methods inherited from class java.lang.Object

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

      • CONFIGURATION

        @Deprecated
        private static final freemarker.template.Configuration CONFIGURATION
        Deprecated.
        don't use static scope
    • Constructor Detail

    • Method Detail

      • selectClassLoader

        private static java.lang.ClassLoader selectClassLoader()
      • findTemplate

        @Deprecated
        public static freemarker.template.Template findTemplate​(java.lang.Class<?> type,
                                                                java.lang.String templateName)
        Deprecated.
        this static method does not respect configuration, use FreemarkerConfig.createLocator()
      • findTemplate

        public static freemarker.template.Template findTemplate​(freemarker.template.Configuration config,
                                                                java.lang.Class<?> type,
                                                                java.lang.String templateName)
      • locate

        public freemarker.template.Template locate​(java.lang.Class<?> type,
                                                   java.lang.String templateName)