Package org.jdbi.v3.core.statement
Class ParsedSql.Builder
- java.lang.Object
-
- org.jdbi.v3.core.statement.ParsedSql.Builder
-
- Enclosing class:
- ParsedSql
public static class ParsedSql.Builder extends java.lang.ObjectFluent builder for ParsedSql instances.
-
-
Field Summary
Fields Modifier and Type Field Description private booleannamedprivate java.util.List<java.lang.String>parameterNamesprivate booleanpositionalprivate java.lang.StringBuildersql
-
Constructor Summary
Constructors Modifier Constructor Description privateBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ParsedSql.Builderappend(java.lang.String sqlFragment)Appends the given SQL fragment to the SQL string.ParsedSql.BuilderappendNamedParameter(java.lang.String name)Records a named parameter with the given name, and appends a?to the SQL string.ParsedSql.BuilderappendPositionalParameter()Records a positional parameters, and appends a?to the SQL string.ParsedSqlbuild()Returns the finalizedParsedSqlobject.
-
-
-
Method Detail
-
append
public ParsedSql.Builder append(java.lang.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(java.lang.String name)
Records a named parameter with the given name, and appends a?to the SQL string.- Parameters:
name- the parameter name.- Returns:
- this
-
-