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
FieldsModifier and TypeFieldDescriptionstatic final intThe default size of the parsed SQL cache. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> TReturns cache statistics for the internal sql parser cache.(package private) abstract ParsedSqlinternalParse(String sql) parse(String sql, StatementContext ctx) Parses the given SQL statement, and returns theParsedSqlfor the statement.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
-
parsedSqlCache
-
-
Constructor Details
-
CachingSqlParser
CachingSqlParser() -
CachingSqlParser
CachingSqlParser(JdbiCacheBuilder cacheBuilder)
-
-
Method Details
-
parse
Description copied from interface:SqlParserParses the given SQL statement, and returns theParsedSqlfor the statement. -
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. -
internalParse
-