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.
|
List<com.google.cloud.spanner.Mutation> |
insert(Object object)
Stores an object and its interleaved child properties in Cloud Spanner.
|
List<com.google.cloud.spanner.Mutation> |
update(Object object,
Set<String> includeProperties)
Updates an object and its interleaved child properties in Cloud Spanner.
|
List<com.google.cloud.spanner.Mutation> |
upsert(Object object,
Set<String> includeProperties)
Updates or inserts an object and its interleaved child properties in Cloud Spanner.
|
List<com.google.cloud.spanner.Mutation> insert(Object object)
object - the object to store.List<com.google.cloud.spanner.Mutation> upsert(Object object, Set<String> includeProperties)
object - the object to update or newly insert.includeProperties - the properties to use in the operation. if null then all
properties are used.List<com.google.cloud.spanner.Mutation> update(Object object, Set<String> includeProperties)
object - the object to update.includeProperties - the properties to use in the operation. if null then all
properties 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)
T - the type of the object to delete.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 © 2019 Pivotal Software, Inc.. All rights reserved.