Package com.google.appengine.api.datastore.DatastoreServiceConfig

Examples of com.google.appengine.api.datastore.DatastoreServiceConfig.ApiVersion


  @Override
  public AsyncDatastoreServiceInternal getAsyncDatastoreService(DatastoreServiceConfig config) {
    TransactionStack txnStack = new TransactionStackImpl();
    DatastoreV4Proxy datastoreProxy = config.getDatastoreV4Proxy();

    ApiVersion apiVersion = config.getApiVersion();
    switch (apiVersion) {
      case V3:
        Preconditions.checkState(datastoreProxy == null);
        return new AsyncDatastoreServiceImpl(
            config,
View Full Code Here


    BeginTransactionRequest.Builder request = BeginTransactionRequest.newBuilder();
    request.setCrossGroup(options.isXG());

    Future<BeginTransactionResponse> future = datastoreProxy.beginTransaction(request.build());

    ApiVersion apiVersion = datastoreServiceConfig.getApiVersion();
    switch (apiVersion) {
      case CLOUD_DATASTORE:
        return InternalTransactionCloudDatastore.create(datastoreProxy, future);
      case V4:
        return InternalTransactionV4.create(datastoreProxy, future);
View Full Code Here

TOP

Related Classes of com.google.appengine.api.datastore.DatastoreServiceConfig.ApiVersion

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.