Package org.jdbi.v3.sqlobject.locator
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
Constructors -
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: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.
-