public final class Mutation
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Cloud Spanner API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
Mutation() |
Modifier and Type | Method and Description |
---|---|
Mutation |
clone() |
Delete |
getDelete()
Delete rows from a table.
|
Write |
getInsert()
Insert new rows in a table.
|
Write |
getInsertOrUpdate()
Like insert, except that if the row already exists, then its column values are overwritten with
the ones provided.
|
Write |
getReplace()
Like insert, except that if the row already exists, it is deleted, and the column values
provided are inserted instead.
|
Write |
getUpdate()
Update existing rows in a table.
|
Mutation |
set(String fieldName,
Object value) |
Mutation |
setDelete(Delete delete)
Delete rows from a table.
|
Mutation |
setInsert(Write insert)
Insert new rows in a table.
|
Mutation |
setInsertOrUpdate(Write insertOrUpdate)
Like insert, except that if the row already exists, then its column values are overwritten with
the ones provided.
|
Mutation |
setReplace(Write replace)
Like insert, except that if the row already exists, it is deleted, and the column values
provided are inserted instead.
|
Mutation |
setUpdate(Write update)
Update existing rows in a table.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public Delete getDelete()
null
for nonepublic Mutation setDelete(Delete delete)
delete
- delete or null
for nonepublic Write getInsert()
null
for nonepublic Mutation setInsert(Write insert)
insert
- insert or null
for nonepublic Write getInsertOrUpdate()
null
for nonepublic Mutation setInsertOrUpdate(Write insertOrUpdate)
insertOrUpdate
- insertOrUpdate or null
for nonepublic Write getReplace()
null
for nonepublic Mutation setReplace(Write replace)
replace
- replace or null
for nonepublic Write getUpdate()
null
for nonepublic Mutation setUpdate(Write update)
update
- update or null
for nonepublic Mutation set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public Mutation clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2025 Google. All rights reserved.