Examples of asIterable()


Examples of com.google.appengine.api.datastore.PreparedQuery.asIterable()

  public static Iterable<Entity> listNovedades(Date fecha) {
    Query query = new Query("BitacoraLN");
    query.addFilter("fecha", FilterOperator.EQUAL, fecha);
    query.addFilter("comentario", FilterOperator.NOT_EQUAL, "");
    PreparedQuery pq = datastore.prepare(query);
    return pq.asIterable();
 
 
  public static int existeLaNovedad(Date fecha,Long idEquipo,Long idTurno) {
    Query query = new Query("BitacoraLN");
    query.addFilter("fecha", FilterOperator.EQUAL, fecha);
View Full Code Here

Examples of com.google.appengine.api.datastore.PreparedQuery.asIterable()

    Query query = new Query("BitacoraLN");
    query.addFilter("fecha", FilterOperator.EQUAL, fecha);
    //query.addFilter("comentario", FilterOperator.NOT_EQUAL, "");
    query.addFilter("negocio", FilterOperator.EQUAL, negocio);
    PreparedQuery pq = datastore.prepare(query);
    return pq.asIterable();
 
 
  public static Iterable<Entity> listNovedadesHome2(Long negocioId,Long equipoId, Date fecha) {
    Query query = new Query("BitacoraLN");
    query.addFilter("fecha", FilterOperator.EQUAL, fecha);
View Full Code Here

Examples of com.google.appengine.api.datastore.PreparedQuery.asIterable()

    query.addFilter("negocio", FilterOperator.EQUAL, negocioId);
    //query.addFilter("comentario", FilterOperator.NOT_EQUAL, "");
    //logger.info("la query : " + query.toString());
    PreparedQuery pq = datastore.prepare(query);
   
    return pq.asIterable();
 

  /**
   * Get the list of keys of all children for a given entity kind in a given
   * entity group represented by the parent key
View Full Code Here

Examples of com.google.appengine.api.datastore.PreparedQuery.asIterable()

    Query query = new Query(kind);
    query.setAncestor(ancestor).setKeysOnly();
    query.addFilter(Entity.KEY_RESERVED_PROPERTY,
        FilterOperator.GREATER_THAN, ancestor);
    PreparedQuery pq = datastore.prepare(query);
    return pq.asIterable();
  }


  public static Iterable<Entity> listEntitiesLN(String kind, String searchBy,
      Long searchFor) {
View Full Code Here

Examples of com.google.appengine.api.datastore.PreparedQuery.asIterable()

    if (searchFor != null) {
      q.addFilter(searchBy, FilterOperator.EQUAL, searchFor);
    }
    PreparedQuery pq = datastore.prepare(q);

    return pq.asIterable();
 


  /**
   * List the entities in JSON format
View Full Code Here

Examples of com.google.appengine.api.datastore.PreparedQuery.asIterable()

      query.setAncestor(getParentKey());

      PreparedQuery pq = mDatastore.prepare(query);
     
      int cont = 0;
      for (Entity entity : pq.asIterable()) {
        Contact contact = getContactFromEntity(entity);
       
        // Si vector da 1 guardamos si no no -> if(vector[i]==1 resultList.add(contact))
       
        if ((contact != null) /**&& (vec[cont] == "1") **/) {
View Full Code Here

Examples of com.google.appengine.api.datastore.PreparedQuery.asIterable()

      }
    }
   
    PreparedQuery preparedQuery = datastore.prepare(query);

    for (Entity entity : preparedQuery.asIterable()) {
      Map<String, Object> properties = entity.getProperties();
      json.accumulate((String) properties.get("namespace"), properties);
    }

    return json;
View Full Code Here

Examples of com.google.appengine.api.datastore.PreparedQuery.asIterable()

      DatastoreService datastore = DatastoreServiceFactory.getDatastoreService();
      Query query = new Query("NamespaceToUserMapping");
      query.addFilter("namespace", FilterOperator.EQUAL, namespace);
      query.addFilter("confirmed", FilterOperator.EQUAL, true);
      PreparedQuery preparedQuery = datastore.prepare(query);
      for (Entity entity : preparedQuery.asIterable()) {
        usersForNamespace.add((User) entity.getProperty("user"));
      }

      if (cache != null) {
        cache.put(namespace, usersForNamespace);
View Full Code Here

Examples of com.google.appengine.api.datastore.PreparedQuery.asIterable()

   
    DatastoreService datastore = DatastoreServiceFactory.getDatastoreService();
    Query query = new Query("NamespaceToUserMapping");
    query.addFilter("user", FilterOperator.EQUAL, user);
    PreparedQuery preparedQuery = datastore.prepare(query);
    for (Entity entity : preparedQuery.asIterable()) {
      authorizedNamespaces.add((String) entity.getProperty("namespace"));
    }
   
    NamespaceManager.set(oldNamespace);
    return authorizedNamespaces;
View Full Code Here

Examples of com.google.appengine.api.datastore.PreparedQuery.asIterable()

    Query query = new Query("NamespaceToUserMapping");
    query.addFilter("namespace", Query.FilterOperator.EQUAL, namespace);
    query.addFilter("email", Query.FilterOperator.EQUAL, email);
    PreparedQuery preparedQuery = datastore.prepare(query);

    for (Entity entity : preparedQuery.asIterable()) {
      datastore.delete(entity.getKey());
    }
   
    util.removeFromCache(namespace);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.