public class ParsedSql extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ParsedSql.Builder
Fluent builder for ParsedSql instances.
|
| Modifier and Type | Method and Description |
|---|---|
static ParsedSql.Builder |
builder() |
boolean |
equals(Object o) |
ParsedParameters |
getParameters() |
String |
getSql() |
int |
hashCode() |
static ParsedSql |
of(String sql,
ParsedParameters parameters)
A static factory of
ParsedSql instances. |
String |
toString() |
public static ParsedSql.Builder builder()
public ParsedParameters getParameters()
public String getSql()
PreparedStatement.public static ParsedSql of(String sql, ParsedParameters parameters)
ParsedSql instances. The statement
may contain only positional parameters
(the character). If your SQL
code contains named parameters (for example variables preceded
by a colon) then you have to replace them with positional
parameters and specify the mapping in the
ParsedParameters. You cannot mix named and positional
parameters in one SQL statement.sql - the SQL code containing only positional parametersparameters - the ordered list of named parameters, or positional parametersParsedSql instanceParsedParameters.positional(int),
ParsedParameters.named(List)Copyright © 2019. All rights reserved.