Class AnnotationSqlLocator

java.lang.Object
org.jdbi.v3.sqlobject.locator.AnnotationSqlLocator
All Implemented Interfaces:
SqlLocator

public class AnnotationSqlLocator extends Object implements SqlLocator
Locates SQL on the SQL method annotations like @SqlQuery("foo"). This is the default SqlLocator.
  • Constructor Details

    • AnnotationSqlLocator

      public AnnotationSqlLocator()
  • Method Details

    • locate

      public String locate(Class<?> sqlObjectType, Method method, ConfigRegistry config)
      Description copied from interface: SqlLocator
      Locates and returns the SQL for the given SQL Object type and method.
      Specified by:
      locate in interface SqlLocator
      Parameters:
      sqlObjectType - the SQL object type
      method - the method
      config - the config registry
      Returns:
      the SQL for the given method.