public interface SqlFileRepository
SqlFile.
A SQL file corresponds to a DAO method. The path is built from the full qualified name of the
DAO and the method name. For example, when org.example.ExampleDao interface has selectAll method, the corresponding SQL file path is META-INF/org/example/ExampleDao/selectAll.sql.
The implementation class must be thread safe.
| Modifier and Type | Method and Description |
|---|---|
default void |
clearCache()
Clears cache.
|
SqlFile |
getSqlFile(java.lang.reflect.Method method,
java.lang.String path,
Dialect dialect)
Returns the SQL file.
|
SqlFile getSqlFile(java.lang.reflect.Method method, java.lang.String path, Dialect dialect)
method - the DAO methodpath - the SQL file pathdialect - the SQL dialectDomaNullPointerException - if any arguments are nullDomaIllegalArgumentException - if the method is not annotated with Sql
and the path does not match the Ant-style glob pattern "META-INF/**/*.sql"SqlFileNotFoundException - if the SQL file is not foundJdbcException - if an error other than listed above occursdefault void clearCache()