Package org.jdbi.v3.core.statement
Class ParsedSql
java.lang.Object
org.jdbi.v3.core.statement.ParsedSql
The SQL and parameters parsed from an SQL statement.
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFluent builder for ParsedSql instances. - 
Method Summary
Modifier and TypeMethodDescriptionstatic ParsedSql.Builderbuilder()Creates a new ParsedSql builder.booleanThe set of parameters parsed from the input SQL string.getSql()Returns a SQL string suitable for use with a JDBCPreparedStatement.inthashCode()static ParsedSqlof(String sql, ParsedParameters parameters) A static factory ofParsedSqlinstances.toString() 
- 
Method Details
- 
getSql
Returns a SQL string suitable for use with a JDBCPreparedStatement.- Returns:
 - a SQL string suitable for use with a JDBC 
PreparedStatement. 
 - 
getParameters
The set of parameters parsed from the input SQL string.- Returns:
 - the set of parameters parsed from the input SQL string.
 
 - 
equals
 - 
hashCode
public int hashCode() - 
toString
 - 
of
A static factory ofParsedSqlinstances. 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 theParsedParameters. You cannot mix named and positional parameters in one SQL statement.- Parameters:
 sql- the SQL code containing only positional parametersparameters- the ordered list of named parameters, or positional parameters- Returns:
 - New 
ParsedSqlinstance - See Also:
 
 - 
builder
Creates a new ParsedSql builder.- Returns:
 - a builder instance.
 
 
 -