Class LocalDatastoreV3Service
- java.lang.Object
-
- com.google.appengine.api.datastore.dev.LocalDatastoreService
-
- com.google.appengine.api.datastore.dev.LocalDatastoreV3Service
-
public final class LocalDatastoreV3Service extends LocalDatastoreService
Provides an implementation ofLocalDatastoreService
that is compatible with API Proxy.While this method uses a delegation pattern, it must extend
LocalDatastoreService
to maintain backwards compatiblity for users who request the Datastore stub from the APIProxy and expect theLocalDatastoreService
type.Many of the public API methods are overridden to provide latency annotations for APIProxy. Other Datastore API methods are overridden for consistency.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.appengine.api.datastore.dev.LocalDatastoreService
LocalDatastoreService.AutoIdAllocationPolicy
-
-
Field Summary
-
Fields inherited from class com.google.appengine.api.datastore.dev.LocalDatastoreService
AUTO_ID_ALLOCATION_POLICY_PROPERTY, BACKING_STORE_PROPERTY, EMULATE_VNEXT_FEATURES, FORCE_IS_HIGH_REP_PROPERTY, HIGH_REP_JOB_POLICY_CLASS_PROPERTY, INDEX_CONFIGURATION_FORMAT_PROPERTY, MAX_EG_PER_TXN, MAX_QUERY_LIFETIME_PROPERTY, MAX_QUERY_RESULTS, MAX_TRANSACTION_LIFETIME_PROPERTY, NO_INDEX_AUTO_GEN_PROP, NO_STORAGE_PROPERTY, PACKAGE, STORE_DELAY_PROPERTY
-
-
Constructor Summary
Constructors Constructor and Description LocalDatastoreV3Service()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description protected void
addActionImpl(TaskQueueAddRequest action)
Calls the add method on the taskqueue service.VoidProto
addActions(Status status, TaskQueueBulkAddRequest request)
AllocateIdsResponse
allocateIds(Status status, AllocateIdsRequest req)
Transaction
beginTransaction(Status status, BeginTransactionRequest req)
CommitResponse
commit(Status status, Transaction req)
Integer64Proto
createIndex(Status status, CompositeIndex req)
DeleteResponse
delete(Status status, DeleteRequest request)
VoidProto
deleteCursor(Status status, Cursor request)
VoidProto
deleteIndex(Status status, CompositeIndex req)
GetResponse
get(Status status, GetRequest request)
CompositeIndices
getIndices(Status status, StringProto req)
java.lang.Integer
getMaxApiRequestSize()
QueryResult
next(Status status, NextRequest request)
PutResponse
put(Status status, PutRequest request)
VoidProto
rollback(Status status, Transaction req)
QueryResult
runQuery(Status status, Query query)
VoidProto
updateIndex(Status status, CompositeIndex req)
-
Methods inherited from class com.google.appengine.api.datastore.dev.LocalDatastoreService
clearProfiles, clearQueryHistory, deleteImpl, enableScatterProperty, getCreationCostAnalysis, getDefaultDeadline, getMaximumDeadline, getPackage, init, init, putImpl, setBackingStore, setMaxQueryLifetime, setMaxTransactionLifetime, setNoStorage, setStoreDelay, start, stop
-
-
-
-
Method Detail
-
addActionImpl
protected void addActionImpl(TaskQueueAddRequest action)
Description copied from class:LocalDatastoreService
Calls the add method on the taskqueue service.Subclasses should override this to use the appropriate method of calling other services.
- Specified by:
addActionImpl
in classLocalDatastoreService
-
get
public GetResponse get(Status status, GetRequest request)
- Overrides:
get
in classLocalDatastoreService
-
put
public PutResponse put(Status status, PutRequest request)
- Overrides:
put
in classLocalDatastoreService
-
delete
public DeleteResponse delete(Status status, DeleteRequest request)
- Overrides:
delete
in classLocalDatastoreService
-
addActions
public VoidProto addActions(Status status, TaskQueueBulkAddRequest request)
- Overrides:
addActions
in classLocalDatastoreService
-
runQuery
public QueryResult runQuery(Status status, Query query)
- Overrides:
runQuery
in classLocalDatastoreService
-
next
public QueryResult next(Status status, NextRequest request)
- Overrides:
next
in classLocalDatastoreService
-
deleteCursor
public VoidProto deleteCursor(Status status, Cursor request)
- Overrides:
deleteCursor
in classLocalDatastoreService
-
beginTransaction
public Transaction beginTransaction(Status status, BeginTransactionRequest req)
- Overrides:
beginTransaction
in classLocalDatastoreService
-
commit
public CommitResponse commit(Status status, Transaction req)
- Overrides:
commit
in classLocalDatastoreService
-
rollback
public VoidProto rollback(Status status, Transaction req)
- Overrides:
rollback
in classLocalDatastoreService
-
createIndex
public Integer64Proto createIndex(Status status, CompositeIndex req)
- Overrides:
createIndex
in classLocalDatastoreService
-
updateIndex
public VoidProto updateIndex(Status status, CompositeIndex req)
- Overrides:
updateIndex
in classLocalDatastoreService
-
getIndices
public CompositeIndices getIndices(Status status, StringProto req)
- Overrides:
getIndices
in classLocalDatastoreService
-
deleteIndex
public VoidProto deleteIndex(Status status, CompositeIndex req)
- Overrides:
deleteIndex
in classLocalDatastoreService
-
allocateIds
public AllocateIdsResponse allocateIds(Status status, AllocateIdsRequest req)
- Overrides:
allocateIds
in classLocalDatastoreService
-
getMaxApiRequestSize
public java.lang.Integer getMaxApiRequestSize()
-
-