Class 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 Detail

      • AnnotationSqlLocator

        public AnnotationSqlLocator()
    • Method Detail

      • 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.