Class ColonPrefixSqlParser
java.lang.Object
org.jdbi.v3.core.statement.CachingSqlParser
org.jdbi.v3.core.statement.ColonPrefixSqlParser
- All Implemented Interfaces:
SqlParser
SQL parser which recognizes named parameter tokens of the form
:tokenName
This is the default SQL parser
-
Field Summary
Fields inherited from class CachingSqlParser
PARSED_SQL_CACHE_SIZEModifier and TypeFieldDescriptionstatic final intThe default size of the parsed SQL cache. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnameParameter(String rawName, StatementContext ctx) Convert rawName to a name as recognized by this parserMethods inherited from class CachingSqlParser
cacheStats, parseModifier and TypeMethodDescription<T> TReturns cache statistics for the internal sql parser cache.parse(String sql, StatementContext ctx) Parses the given SQL statement, and returns theParsedSqlfor the statement.
-
Constructor Details
-
ColonPrefixSqlParser
public ColonPrefixSqlParser() -
ColonPrefixSqlParser
-
-
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
-