Class Datastore (2.23.0)

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
Name Description
request AllocateIdsRequest
Returns
Type Description
AllocateIdsResponse
Exceptions
Type Description
DatastoreException

beginTransaction(BeginTransactionRequest request)

public BeginTransactionResponse beginTransaction(BeginTransactionRequest request)
Parameter
Name Description
request BeginTransactionRequest
Returns
Type Description
BeginTransactionResponse
Exceptions
Type Description
DatastoreException

commit(CommitRequest request)

public CommitResponse commit(CommitRequest request)
Parameter
Name Description
request CommitRequest
Returns
Type Description
CommitResponse
Exceptions
Type Description
DatastoreException

getRpcCount()

public int getRpcCount()

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

Returns
Type Description
int

lookup(LookupRequest request)

public LookupResponse lookup(LookupRequest request)
Parameter
Name Description
request LookupRequest
Returns
Type Description
LookupResponse
Exceptions
Type Description
DatastoreException

reserveIds(ReserveIdsRequest request)

public ReserveIdsResponse reserveIds(ReserveIdsRequest request)
Parameter
Name Description
request ReserveIdsRequest
Returns
Type Description
ReserveIdsResponse
Exceptions
Type Description
DatastoreException

resetRpcCount()

public void resetRpcCount()

Reset the RPC count.

rollback(RollbackRequest request)

public RollbackResponse rollback(RollbackRequest request)
Parameter
Name Description
request RollbackRequest
Returns
Type Description
RollbackResponse
Exceptions
Type Description
DatastoreException

runAggregationQuery(RunAggregationQueryRequest request)

public RunAggregationQueryResponse runAggregationQuery(RunAggregationQueryRequest request)
Parameter
Name Description
request RunAggregationQueryRequest
Returns
Type Description
RunAggregationQueryResponse
Exceptions
Type Description
DatastoreException

runQuery(RunQueryRequest request)

public RunQueryResponse runQuery(RunQueryRequest request)
Parameter
Name Description
request RunQueryRequest
Returns
Type Description
RunQueryResponse
Exceptions
Type Description
DatastoreException