public interface DatastoreWriter
| Modifier and Type | Method and Description |
|---|---|
List<Entity> |
add(FullEntity<?>... entities)
Datastore add operation.
|
Entity |
add(FullEntity<?> entity)
Datastore add operation.
|
void |
delete(Key... keys)
A datastore delete operation.
|
List<Entity> |
put(FullEntity<?>... entities)
A Datastore put (a.k.a upsert) operation.
|
Entity |
put(FullEntity<?> entity)
A Datastore put (a.k.a upsert) operation.
|
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)
Entity 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 © 2016 Google. All rights reserved.