Package org.jdbi.v3.core.statement
Class CachingSqlParser
java.lang.Object
org.jdbi.v3.core.statement.CachingSqlParser
- All Implemented Interfaces:
SqlParser
- Direct Known Subclasses:
ColonPrefixSqlParser
,HashPrefixSqlParser
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The default size of the parsed SQL cache. -
Method Summary
Modifier and TypeMethodDescription<T> T
Returns cache statistics for the internal sql parser cache.parse
(String sql, StatementContext ctx) Parses the given SQL statement, and returns theParsedSql
for the statement.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jdbi.v3.core.statement.SqlParser
nameParameter
-
Field Details
-
PARSED_SQL_CACHE_SIZE
public static final int PARSED_SQL_CACHE_SIZEThe default size of the parsed SQL cache.- See Also:
-
-
Method Details
-
parse
-
cacheStats
Returns cache statistics for the internal sql parser cache. This returns a cache specific object, so the user needs to know what caching library is in use.
-