Search in sources :

Example 1 with BeginTransactionRequest

use of com.google.apphosting.datastore.DatastoreV3Pb.BeginTransactionRequest in project appengine-java-standard by GoogleCloudPlatform.

the class RemoteApiServlet method beginTransaction.

// Datastore utility functions.
private static byte[] beginTransaction(boolean allowMultipleEg) {
    String appId = ApiProxy.getCurrentEnvironment().getAppId();
    byte[] req = new BeginTransactionRequest().setApp(appId).setAllowMultipleEg(allowMultipleEg).toByteArray();
    return ApiProxy.makeSyncCall("datastore_v3", "BeginTransaction", req);
}
Also used : BeginTransactionRequest(com.google.apphosting.datastore.DatastoreV3Pb.BeginTransactionRequest)

Aggregations

BeginTransactionRequest (com.google.apphosting.datastore.DatastoreV3Pb.BeginTransactionRequest)1