Package com.google.appengine.api.datastore

Examples of com.google.appengine.api.datastore.AsyncPreparedQuery


  private Future<QueryResultIterator<Entity>> futureSingleQueryEntities(Query query)
  {
      Transaction txn = this.datastore.getTransaction();
      Future<QueryResultIterator<Entity>> futureEntities;
      AsyncPreparedQuery prepared = new AsyncPreparedQuery(query, txn);
      FetchOptions fetchOptions = getRootCommand().getFetchOptions();
      if (fetchOptions == null)
      {
        futureEntities = prepared.asFutureQueryResultIterator();
      }
      else
      {
        futureEntities = prepared.asFutureQueryResultIterator(fetchOptions);
      }
      return futureEntities;
  }
View Full Code Here


  {
    final List<Future<QueryResultIterator<Entity>>> futures = new ArrayList<Future<QueryResultIterator<Entity>>>(queries.size());
    Transaction txn = datastore.getTransaction();
    for (Query query : queries)
    {
      AsyncPreparedQuery prepared = new AsyncPreparedQuery(query, txn);
      Future<QueryResultIterator<Entity>> futureEntities;
      FetchOptions fetchOptions = getRootCommand().getFetchOptions();
      if (fetchOptions == null)
      {
        futureEntities = prepared.asFutureQueryResultIterator();
      }
      else
      {
        futureEntities = prepared.asFutureQueryResultIterator(fetchOptions);
      }
      futures.add(futureEntities);
    }
    return futures;
  }
View Full Code Here

TOP

Related Classes of com.google.appengine.api.datastore.AsyncPreparedQuery

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.