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
ConstructorDescriptionHashPrefixSqlParser
(com.github.benmanes.caffeine.cache.Caffeine<Object, Object> cache) -
Method Summary
Modifier and TypeMethodDescriptioncom.github.benmanes.caffeine.cache.stats.CacheStats
nameParameter
(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 theParsedSql
for the statement.
-
Constructor Details
-
HashPrefixSqlParser
public HashPrefixSqlParser() -
HashPrefixSqlParser
-
-
Method Details
-
nameParameter
Description copied from interface:SqlParser
Convert 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:SqlParser
Parses the given SQL statement, and returns theParsedSql
for the statement. -
cacheStats
-