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.REPLACEmutations.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Mutationbuild()Returns a newly createdMutationbased on the contents of theBuilder.ValueBinder<Mutation.WriteBuilder>set(String columnName)Returns a binder to set the value ofcolumnNamethat should be applied by the mutation.
-
-
-
Method Detail
-
set
public ValueBinder<Mutation.WriteBuilder> set(String columnName)
Returns a binder to set the value ofcolumnNamethat should be applied by the mutation.
-
build
public Mutation build()
Returns a newly createdMutationbased on the contents of theBuilder.- Throws:
IllegalStateException- if any duplicate columns are present. Duplicate detection is case-insensitive.
-
-