public interface DatastoreWriter
| Modifier and Type | Method and Description |
|---|---|
List<Entity> |
add(FullEntity<?>... entities)
Datastore add operation: inserts the provided entities.
|
Entity |
add(FullEntity<?> entity)
Datastore add operation: inserts the provided entity.
|
void |
delete(Key... keys)
A datastore delete operation.
|
List<Entity> |
put(FullEntity<?>... entities)
A Datastore put (a.k.a upsert) operation: creates an entity if it does not exist, updates it
otherwise.
|
Entity |
put(FullEntity<?> entity)
A Datastore put (a.k.a upsert) operation: inserts an entity if it does not exist, updates it
otherwise.
|
void |
update(Entity... entities)
A Datastore update operation.
|
Entity add(FullEntity<?> entity)
entity - the entity to addEntity with the same properties and a key that is either newly allocated or
the same one if key is already completeDatastoreException - upon failureIllegalArgumentException - if the given entity is missing a keyList<Entity> add(FullEntity<?>... entities)
Entity ordered by input with the same properties and a key that is
either newly allocated or the same one if was already completeDatastoreException - upon failureIllegalArgumentException - if any of the given entities is missing a keyadd(FullEntity)void update(Entity... entities)
DatastoreException - upon failureEntity put(FullEntity<?> entity)
entity - the entity to putEntity with the same properties and a key that is either newly allocated or
the same one if key is already completeDatastoreException - upon failureIllegalArgumentException - if the given entity is missing a keyList<Entity> put(FullEntity<?>... entities)
Entity, ordered by input. Returned keys are
either newly allocated or the same one if was already complete.DatastoreException - upon failureIllegalArgumentException - if any of the given entities is missing a keyvoid delete(Key... keys)
Copyright © 2019 Google LLC. All rights reserved.