Package org.jdbi.v3.sqlobject.locator
Class AnnotationSqlLocator
- java.lang.Object
-
- org.jdbi.v3.sqlobject.locator.AnnotationSqlLocator
-
- All Implemented Interfaces:
SqlLocator
public class AnnotationSqlLocator extends java.lang.Object implements SqlLocator
Locates SQL on the SQL method annotations like@SqlQuery("foo"). This is the default SqlLocator.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.concurrent.ConcurrentMap<java.lang.reflect.Method,java.lang.String>located
-
Constructor Summary
Constructors Constructor Description AnnotationSqlLocator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringlocate(java.lang.Class<?> sqlObjectType, java.lang.reflect.Method method, ConfigRegistry config)Locates and returns the SQL for the given SQL Object type and method.
-
-
-
Method Detail
-
locate
public java.lang.String locate(java.lang.Class<?> sqlObjectType, java.lang.reflect.Method method, ConfigRegistry config)Description copied from interface:SqlLocatorLocates and returns the SQL for the given SQL Object type and method.- Specified by:
locatein interfaceSqlLocator- Parameters:
sqlObjectType- the SQL object typemethod- the methodconfig- the config registry- Returns:
- the SQL for the given method.
-
-