Interface SqlFileRepository

All Known Implementing Classes:
AbstractSqlFileRepository, GreedyCacheSqlFileRepository, NoCacheSqlFileRepository

public interface SqlFileRepository
A repository interface for managing and retrieving SqlFile instances.

This repository is responsible for locating and loading SQL files that correspond to DAO methods. The path to a SQL file is built from the fully qualified name of the DAO interface and the method name. For example, when org.example.ExampleDao interface has a selectAll method, the corresponding SQL file path is META-INF/org/example/ExampleDao/selectAll.sql.

The implementation class must be thread safe.

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Clears cache.
    getSqlFile(Method method, String path, Dialect dialect)
    Returns the SQL file.
  • Method Details