public class StringTemplateSqlLocator extends Object
.sql.stg StringTemplate group files on the classpath.| Modifier and Type | Method and Description |
|---|---|
static String |
findStringTemplateSql(Class<?> type,
String name)
Locates SQL for the given type and name.
|
public static String findStringTemplateSql(Class<?> type, String name)
com.foo.Bar and a name of
baz, loads a StringTemplate group file from the resource named com/foo/Bar.sql.stg on
the classpath, and returns the template with the given name from the group.type - the type that "owns" the given StringTemplate group file. Dictates the filename of the
StringTemplate group file on the classpath.name - the template name in the StringTemplate group.Copyright © 2016. All rights reserved.