Package org.jdbi.v3.core.statement
Class HashPrefixSqlParser
java.lang.Object
org.jdbi.v3.core.statement.HashPrefixSqlParser
- All Implemented Interfaces:
SqlParser
SQL parser which recognizes named parameter tokens of the form
#tokenName.-
Constructor Summary
ConstructorsConstructorDescriptionHashPrefixSqlParser(com.github.benmanes.caffeine.cache.Caffeine<Object, Object> cache) -
Method Summary
Modifier and TypeMethodDescriptioncom.github.benmanes.caffeine.cache.stats.CacheStatsnameParameter(String rawName, StatementContext ctx) Convert rawName to a name as recognized by this parserparse(String sql, StatementContext ctx) Parses the given SQL statement, and returns theParsedSqlfor the statement.
-
Constructor Details
-
HashPrefixSqlParser
public HashPrefixSqlParser() -
HashPrefixSqlParser
-
-
Method Details
-
nameParameter
Description copied from interface:SqlParserConvert rawName to a name as recognized by this parser- Parameters:
rawName- the raw name to transformctx- The statement context for the statement being executed- Returns:
- a name appropriate for being identified a a named parameter by this parser
-
parse
Description copied from interface:SqlParserParses the given SQL statement, and returns theParsedSqlfor the statement. -
cacheStats
-