Class Statement.Builder (6.74.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
Name Description
sqlFragment String
Returns
Type Description
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
Name Description
parameter String
Returns
Type Description
ValueBinder<Builder>

build()

public Statement build()

Builds the Statement.

Returns
Type Description
Statement

replace(String sql)

public Statement.Builder replace(String sql)

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

Parameter
Name Description
sql String
Returns
Type Description
Statement.Builder

withQueryOptions(ExecuteSqlRequest.QueryOptions queryOptions)

public Statement.Builder withQueryOptions(ExecuteSqlRequest.QueryOptions queryOptions)

Sets the QueryOptions to use when executing this Statement.

Parameter
Name Description
queryOptions ExecuteSqlRequest.QueryOptions
Returns
Type Description
Statement.Builder