Package com.googlecode.objectify.impl
Class SaverImpl
java.lang.Object
com.googlecode.objectify.impl.SaverImpl
- All Implemented Interfaces:
Saver
Implementation of the Put interface.
- Author:
- Jeff Schnitzer <[email protected]>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionentities
(E... entities) A convenience method for entities(Iterable)Asynchronously save a batch of entities in the datastore.entity
(E entity) Asynchronously save a single entity in the datastore.com.google.cloud.datastore.FullEntity<?>
Convert a POJO object to a native datastore Entity.
-
Constructor Details
-
SaverImpl
-
-
Method Details
-
entity
Description copied from interface:Saver
Asynchronously save a single entity in the datastore.
If the entity has a null Long id, the value will be autogenerated and populated on the entity object when the async operation completes. If you require this value, call now() on the result.
Puts do not cascade.
-
entities
Description copied from interface:Saver
A convenience method for entities(Iterable) -
entities
Description copied from interface:Saver
Asynchronously save a batch of entities in the datastore.
If any entities have null Long ids, the values will be autogenerated and populated on the entity objects when the async operation completes. If you require these values, call now() on the result.
Puts do not cascade.
-
toEntity
Description copied from interface:Saver
Convert a POJO object to a native datastore Entity. This is like a save() operation but without actually saving the data to the datastore.
-