Class ParsedSql.Builder

java.lang.Object
org.jdbi.v3.core.statement.ParsedSql.Builder
Enclosing class:
ParsedSql

public static class ParsedSql.Builder extends Object
Fluent builder for ParsedSql instances.
  • Method Details

    • append

      public ParsedSql.Builder append(String sqlFragment)
      Appends the given SQL fragment to the SQL string.
      Parameters:
      sqlFragment - the SQL fragment
      Returns:
      this
    • appendPositionalParameter

      public ParsedSql.Builder appendPositionalParameter()
      Records a positional parameters, and appends a ? to the SQL string.
      Returns:
      this
    • appendNamedParameter

      public ParsedSql.Builder appendNamedParameter(String name)
      Records a named parameter with the given name, and appends a ? to the SQL string.
      Parameters:
      name - the parameter name.
      Returns:
      this
    • build

      public ParsedSql build()
      Returns the finalized ParsedSql object.
      Returns:
      the finalized ParsedSql object.