Package com.google.cloud.spanner
Class Statement.Builder
- java.lang.Object
-
- com.google.cloud.spanner.Statement.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Statement.Builder
append(String sqlFragment)
AppendssqlFragment
to the statement.ValueBinder<Statement.Builder>
bind(String parameter)
Returns a binder to bind the value of the query parameterparameter
.Statement
build()
Builds theStatement
.Statement.Builder
replace(String sql)
Replaces the current SQL of this builder with the given string.Statement.Builder
withQueryOptions(ExecuteSqlRequest.QueryOptions queryOptions)
Sets theExecuteSqlRequest.QueryOptions
to use when executing thisStatement
.
-
-
-
Method Detail
-
replace
public Statement.Builder replace(String sql)
Replaces the current SQL of this builder with the given string.
-
append
public Statement.Builder append(String sqlFragment)
AppendssqlFragment
to the statement.
-
withQueryOptions
public Statement.Builder withQueryOptions(ExecuteSqlRequest.QueryOptions queryOptions)
Sets theExecuteSqlRequest.QueryOptions
to use when executing thisStatement
.
-
bind
public ValueBinder<Statement.Builder> bind(String parameter)
Returns a binder to bind the value of the query parameterparameter
.
-
build
public Statement build()
Builds theStatement
.
-
-