Class HashPrefixSqlParser

java.lang.Object
org.jdbi.v3.core.statement.CachingSqlParser
org.jdbi.v3.core.statement.HashPrefixSqlParser
All Implemented Interfaces:
SqlParser

public class HashPrefixSqlParser extends CachingSqlParser
SQL parser which recognizes named parameter tokens of the form #tokenName.
  • Constructor Details

    • HashPrefixSqlParser

      public HashPrefixSqlParser()
    • HashPrefixSqlParser

      @Beta public HashPrefixSqlParser(JdbiCacheBuilder cacheBuilder)
  • Method Details

    • nameParameter

      public String nameParameter(String rawName, StatementContext ctx)
      Description copied from interface: SqlParser
      Convert rawName to a name as recognized by this parser
      Parameters:
      rawName - the raw name to transform
      ctx - The statement context for the statement being executed
      Returns:
      a name appropriate for being identified a a named parameter by this parser