Class ColonPrefixSqlParser

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

public class ColonPrefixSqlParser extends CachingSqlParser
SQL parser which recognizes named parameter tokens of the form :tokenName

This is the default SQL parser

  • Constructor Details

    • ColonPrefixSqlParser

      public ColonPrefixSqlParser()
    • ColonPrefixSqlParser

      @Beta public ColonPrefixSqlParser(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