Class Statement.Builder (6.60.0)

public static final class Statement.Builder

Builder for Statement.

Inheritance

java.lang.Object > Statement.Builder

Methods

append(String sqlFragment)

public Statement.Builder append(String sqlFragment)

Appends sqlFragment to the statement.

Parameter
NameDescription
sqlFragmentString
Returns
TypeDescription
Statement.Builder

bind(String parameter)

public ValueBinder<Statement.Builder> bind(String parameter)

Returns a binder to bind the value of the query parameter parameter.

Parameter
NameDescription
parameterString
Returns
TypeDescription
ValueBinder<Builder>

build()

public Statement build()

Builds the Statement.

Returns
TypeDescription
Statement

replace(String sql)

public Statement.Builder replace(String sql)

Replaces the current SQL of this builder with the given string.

Parameter
NameDescription
sqlString
Returns
TypeDescription
Statement.Builder

withQueryOptions(ExecuteSqlRequest.QueryOptions queryOptions)

public Statement.Builder withQueryOptions(ExecuteSqlRequest.QueryOptions queryOptions)

Sets the QueryOptions to use when executing this Statement.

Parameter
NameDescription
queryOptionsExecuteSqlRequest.QueryOptions
Returns
TypeDescription
Statement.Builder