Package org.jdbi.v3.stringtemplate4
Annotation Type UseStringTemplateSqlLocator
-
@Retention(RUNTIME) @Target({TYPE,METHOD}) public @interface UseStringTemplateSqlLocatorConfigures SQL Object to locate SQL using theStringTemplateSqlLocator.findStringTemplate(Class, String)method. If the SQL annotation (e.g.@SqlQuery) defines a value (e.g.@SqlQuery("hello")), that value ("hello") will be used for thenameparameter; if undefined, the name of the SQL object method will be used:@UseStringTemplateSqlLocator interface Viccini { @SqlUpdate void doTheThing(long id); // => StringTemplateSqlLocator.findStringTemplateSql(Viccini.class, "doTheThing") @SqlUpdate("thatOtherThing") void doTheThing(String name); // => StringTemplateSqlLocator.findStringTemplateSql(Viccini.class, "thatOtherThing") }