Class AnnotationSqlLocator
java.lang.Object
org.jdbi.v3.sqlobject.locator.AnnotationSqlLocator
- All Implemented Interfaces:
SqlLocator
Locates SQL on the SQL method annotations like
@SqlQuery("foo")
. This is the default SqlLocator.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlocate
(Class<?> sqlObjectType, Method method, ConfigRegistry config) Locates and returns the SQL for the given SQL Object type and method.
-
Constructor Details
-
AnnotationSqlLocator
public AnnotationSqlLocator()
-
-
Method Details
-
locate
Description copied from interface:SqlLocator
Locates and returns the SQL for the given SQL Object type and method.- Specified by:
locate
in interfaceSqlLocator
- Parameters:
sqlObjectType
- the SQL object typemethod
- the methodconfig
- the config registry- Returns:
- the SQL for the given method.
-