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.Builderappend(String sqlFragment)AppendssqlFragmentto the statement.ValueBinder<Statement.Builder>bind(String parameter)Returns a binder to bind the value of the query parameterparameter.Statementbuild()Builds theStatement.Statement.BuilderwithQueryOptions(ExecuteSqlRequest.QueryOptions queryOptions)Sets theExecuteSqlRequest.QueryOptionsto use when executing thisStatement.
-
-
-
Method Detail
-
append
public Statement.Builder append(String sqlFragment)
AppendssqlFragmentto the statement.
-
withQueryOptions
public Statement.Builder withQueryOptions(ExecuteSqlRequest.QueryOptions queryOptions)
Sets theExecuteSqlRequest.QueryOptionsto 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.
-
-