Class 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  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String locate​(java.lang.Class<?> sqlObjectType, java.lang.reflect.Method method, ConfigRegistry config)
      Locates and returns the SQL for the given SQL Object type and method.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • located

        private final java.util.concurrent.ConcurrentMap<java.lang.reflect.Method,​java.lang.String> located
    • Constructor Detail

      • AnnotationSqlLocator

        public AnnotationSqlLocator()
    • Method Detail

      • locate

        public java.lang.String locate​(java.lang.Class<?> sqlObjectType,
                                       java.lang.reflect.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.