public abstract class AbstractSqlFileRepository extends java.lang.Object implements SqlFileRepository
SqlFileRepository interface.| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractSqlFileRepository.CacheKey |
| Constructor and Description |
|---|
AbstractSqlFileRepository() |
| Modifier and Type | Method and Description |
|---|---|
protected SqlFile |
createSqlFile(java.lang.reflect.Method method,
java.lang.String path,
Dialect dialect)
Creates the SQL file.
|
protected java.lang.String |
getPrimaryPath(java.lang.String path,
Dialect dialect)
Returns the primary path to find SQL file for specific RDBMS.
|
protected java.lang.String |
getSql(java.lang.String path)
Retrieves the SQL string from the SQL file.
|
SqlFile |
getSqlFile(java.lang.reflect.Method method,
java.lang.String path,
Dialect dialect)
Returns the SQL file.
|
protected abstract SqlFile |
getSqlFileWithCacheControl(java.lang.reflect.Method method,
java.lang.String path,
Dialect dialect)
Returns the SQL file in consideration of cache control.
|
protected SqlNode |
parse(java.lang.String sql)
Parses the SQL string.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclearCachepublic final SqlFile getSqlFile(java.lang.reflect.Method method, java.lang.String path, Dialect dialect)
SqlFileRepositorygetSqlFile in interface SqlFileRepositorymethod - the DAO methodpath - the SQL file pathdialect - the SQL dialectprotected abstract SqlFile getSqlFileWithCacheControl(java.lang.reflect.Method method, java.lang.String path, Dialect dialect)
method - the Dao methodpath - the SQL file pathdialect - the dialectSqlFileNotFoundException - if the SQL file is not foundJdbcException - if an error occursprotected final SqlFile createSqlFile(java.lang.reflect.Method method, java.lang.String path, Dialect dialect)
method - the Dao methodpath - the SQL file pathdialect - the dialectprotected final java.lang.String getPrimaryPath(java.lang.String path,
Dialect dialect)
path - the SQL file pathdialect - the dialectprotected final SqlNode parse(java.lang.String sql)
sql - the SQL stringprotected java.lang.String getSql(java.lang.String path)
path - the SQL file path