Class Datastore (2.14.1)

public class Datastore

Provides access to Cloud Datastore.

This class is thread-safe.

Inheritance

java.lang.Object > Datastore

Methods

allocateIds(AllocateIdsRequest request)

public AllocateIdsResponse allocateIds(AllocateIdsRequest request)
Parameter
NameDescription
requestAllocateIdsRequest
Returns
TypeDescription
AllocateIdsResponse
Exceptions
TypeDescription
DatastoreException

beginTransaction(BeginTransactionRequest request)

public BeginTransactionResponse beginTransaction(BeginTransactionRequest request)
Parameter
NameDescription
requestBeginTransactionRequest
Returns
TypeDescription
BeginTransactionResponse
Exceptions
TypeDescription
DatastoreException

commit(CommitRequest request)

public CommitResponse commit(CommitRequest request)
Parameter
NameDescription
requestCommitRequest
Returns
TypeDescription
CommitResponse
Exceptions
TypeDescription
DatastoreException

getRpcCount()

public int getRpcCount()

Returns the number of RPC calls made since the client was created or #resetRpcCount was called.

Returns
TypeDescription
int

lookup(LookupRequest request)

public LookupResponse lookup(LookupRequest request)
Parameter
NameDescription
requestLookupRequest
Returns
TypeDescription
LookupResponse
Exceptions
TypeDescription
DatastoreException

reserveIds(ReserveIdsRequest request)

public ReserveIdsResponse reserveIds(ReserveIdsRequest request)
Parameter
NameDescription
requestReserveIdsRequest
Returns
TypeDescription
ReserveIdsResponse
Exceptions
TypeDescription
DatastoreException

resetRpcCount()

public void resetRpcCount()

Reset the RPC count.

rollback(RollbackRequest request)

public RollbackResponse rollback(RollbackRequest request)
Parameter
NameDescription
requestRollbackRequest
Returns
TypeDescription
RollbackResponse
Exceptions
TypeDescription
DatastoreException

runAggregationQuery(RunAggregationQueryRequest request)

public RunAggregationQueryResponse runAggregationQuery(RunAggregationQueryRequest request)
Parameter
NameDescription
requestRunAggregationQueryRequest
Returns
TypeDescription
RunAggregationQueryResponse
Exceptions
TypeDescription
DatastoreException

runQuery(RunQueryRequest request)

public RunQueryResponse runQuery(RunQueryRequest request)
Parameter
NameDescription
requestRunQueryRequest
Returns
TypeDescription
RunQueryResponse
Exceptions
TypeDescription
DatastoreException