Package com.googlecode.objectify.impl
Interface AsyncDatastoreReaderWriter
- All Known Subinterfaces:
AsyncDatastore
,AsyncTransaction
,PrivateAsyncTransaction
- All Known Implementing Classes:
AsyncDatastoreImpl
,AsyncDatastoreReaderWriterImpl
,AsyncTransactionImpl
,CachingAsyncDatastore
,CachingAsyncDatastoreReaderWriter
,CachingAsyncTransaction
public interface AsyncDatastoreReaderWriter
The new datastore SDK has a neat structure of interfaces and implementations (transaction, datastorereader, etc)
but doesn't currently support async operations. We need to shim in a Future-based API so that we can seamlessly
support it when it becomes available. We'll remove this parallel hierarchy then.
-
Method Summary
Modifier and TypeMethodDescriptionget
(com.google.cloud.datastore.Key... keys) get
(Collection<com.google.cloud.datastore.Key> keys, com.google.cloud.datastore.ReadOption... options) put
(com.google.cloud.datastore.FullEntity<?>... entities) <T> com.google.cloud.datastore.QueryResults<T>
run
(com.google.cloud.datastore.Query<T> query)
-
Method Details
-
get
Future<Map<com.google.cloud.datastore.Key,com.google.cloud.datastore.Entity>> get(Collection<com.google.cloud.datastore.Key> keys, com.google.cloud.datastore.ReadOption... options) -
run
<T> com.google.cloud.datastore.QueryResults<T> run(com.google.cloud.datastore.Query<T> query) -
delete
-
put
-
get
-
put
-