java.lang.Object
org.seasar.doma.jdbc.AbstractSqlFileRepository
org.seasar.doma.jdbc.GreedyCacheSqlFileRepository
- All Implemented Interfaces:
SqlFileRepository
An SQL file repository that caches the results of SQL parsing without limit.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.seasar.doma.jdbc.AbstractSqlFileRepository
AbstractSqlFileRepository.CacheKey -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ConcurrentMap<AbstractSqlFileRepository.CacheKey,SqlFile> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidClears cache.protected SqlFilegetSqlFileWithCacheControl(Method method, String path, Dialect dialect) Returns the SQL file in consideration of cache control.Methods inherited from class org.seasar.doma.jdbc.AbstractSqlFileRepository
createSqlFile, getPrimaryPath, getSql, getSqlFile, parse
-
Field Details
-
sqlFileMap
-
-
Constructor Details
-
GreedyCacheSqlFileRepository
public GreedyCacheSqlFileRepository()
-
-
Method Details
-
getSqlFileWithCacheControl
Description copied from class:AbstractSqlFileRepositoryReturns the SQL file in consideration of cache control.- Specified by:
getSqlFileWithCacheControlin classAbstractSqlFileRepository- Parameters:
method- the Dao methodpath- the SQL file pathdialect- the dialect- Returns:
- the SQL file
-
clearCache
public void clearCache()Description copied from interface:SqlFileRepositoryClears cache.
-