public interface SpannerMutationFactory
| Modifier and Type | Method and Description |
|---|---|
<T> com.google.cloud.spanner.Mutation |
delete(Class<T> entityClass,
Iterable<? extends T> entities)
Deletes several objects from Spanner.
|
com.google.cloud.spanner.Mutation |
delete(Class entityClass,
com.google.cloud.spanner.Key key)
Deletes a key from Spanner.
|
com.google.cloud.spanner.Mutation |
delete(Class entityClass,
com.google.cloud.spanner.KeySet keys)
Deletes a set of keys from Spanner.
|
<T> com.google.cloud.spanner.Mutation |
delete(T object)
Deletes a single object from Spanner.
|
com.google.cloud.spanner.Mutation |
insert(Object object)
Stores a single object in Spanner.
|
com.google.cloud.spanner.Mutation |
update(Object object,
Optional<Set<String>> includeColumns)
Updates a single object in Spanner.
|
com.google.cloud.spanner.Mutation |
upsert(Object object,
Optional<Set<String>> includeColumns)
Updates or inserts a single object in Spanner.
|
com.google.cloud.spanner.Mutation insert(Object object)
object - The object to store.com.google.cloud.spanner.Mutation upsert(Object object, Optional<Set<String>> includeColumns)
object - The object to update or newly insert.includeColumns - The columns to use in the operation. if null or empty
Optional, then all columns are used.com.google.cloud.spanner.Mutation update(Object object, Optional<Set<String>> includeColumns)
object - The object to update.includeColumns - The columns to use in the operation. if null or empty
Optional, then all columns are used.<T> com.google.cloud.spanner.Mutation delete(Class<T> entityClass, Iterable<? extends T> entities)
T - The type of object to delete.entityClass - The type of the objects to delete.entities - A list of objects to delete. Each object can be a subtype of
entityClass.<T> com.google.cloud.spanner.Mutation delete(T object)
object - The object to delete.com.google.cloud.spanner.Mutation delete(Class entityClass, com.google.cloud.spanner.KeySet keys)
entityClass - The type of the entity to delete.keys - The keys of the objects to delete.com.google.cloud.spanner.Mutation delete(Class entityClass, com.google.cloud.spanner.Key key)
entityClass - The type of the entity to delete.key - The key of the object to delete.Copyright © 2018 Pivotal Software, Inc.. All rights reserved.