Package com.google.cloud.spanner
Class Mutation.WriteBuilder
- java.lang.Object
-
- com.google.cloud.spanner.Mutation.WriteBuilder
-
- Enclosing class:
- Mutation
public static class Mutation.WriteBuilder extends Object
Builder forMutation.Op.INSERT
,Mutation.Op.INSERT_OR_UPDATE
,Mutation.Op.UPDATE
, andMutation.Op.REPLACE
mutations.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Mutation
build()
Returns a newly createdMutation
based on the contents of theBuilder
.ValueBinder<Mutation.WriteBuilder>
set(String columnName)
Returns a binder to set the value ofcolumnName
that should be applied by the mutation.
-
-
-
Method Detail
-
set
public ValueBinder<Mutation.WriteBuilder> set(String columnName)
Returns a binder to set the value ofcolumnName
that should be applied by the mutation.
-
build
public Mutation build()
Returns a newly createdMutation
based on the contents of theBuilder
.- Throws:
IllegalStateException
- if any duplicate columns are present. Duplicate detection is case-insensitive.
-
-