public class MappingSpannerWriteConverter extends AbstractSpannerCustomConverter implements org.springframework.data.convert.EntityWriter<Object,com.google.cloud.spanner.Mutation.WriteBuilder>
| Modifier and Type | Field and Description |
|---|---|
static Map<Class,BiFunction<com.google.cloud.spanner.ValueBinder,?,?>> |
singleItemType2ToMethodMap |
| Modifier and Type | Method and Description |
|---|---|
void |
write(Object source,
com.google.cloud.spanner.Mutation.WriteBuilder sink) |
void |
write(Object source,
com.google.cloud.spanner.Mutation.WriteBuilder sink,
Set<String> includeColumns)
Writes an object's properties to the sink.
|
canConvert, convertpublic static final Map<Class,BiFunction<com.google.cloud.spanner.ValueBinder,?,?>> singleItemType2ToMethodMap
public void write(Object source, com.google.cloud.spanner.Mutation.WriteBuilder sink)
write in interface org.springframework.data.convert.EntityWriter<Object,com.google.cloud.spanner.Mutation.WriteBuilder>public void write(Object source, com.google.cloud.spanner.Mutation.WriteBuilder sink, Set<String> includeColumns)
source - the object to writesink - the sink to which to writeincludeColumns - the properties/columns to write. If null, then all columns
are written.Copyright © 2018 Pivotal Software, Inc.. All rights reserved.