Examples of asIterable()


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

  private ReportMetaData[] metaData;

  @Override
  public Map<Integer, Double> getAnnuallyOfferingVolumes() {
    final PreparedQuery pq = db.prepare(new Query(Offering.class.getSimpleName()));
    final ListQueryResult r = copy.entitiesToDtoArray(Offering.class.getSimpleName(), pq.countEntities(withDefaults()), pq.asIterable(withDefaults()), false);
    return new OfferingReports().getAnnuallyOfferingVolumes(r.getResults());
  }

  @Override
  public Map<Integer, Map<String, Integer>> getExpensesPerCategoryPerYear() {
View Full Code Here

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

    final PreparedQuery preparedQuery = dataStore.prepare(query);
    return tryFiveTimes(new Operation<Set<String>>("getRootPipelinesDisplayName") {
      @Override
      public Set<String> call() {
        Set<String> pipelines = new LinkedHashSet<>();
        for (Entity entity : preparedQuery.asIterable()) {
          pipelines.add((String) entity.getProperty(JobRecord.ROOT_JOB_DISPLAY_NAME));
        }
        return pipelines;
      }
    });
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();
  }
 
  public static Iterable<Entity> listEntities(String kind, String searchBy,
      String searchFor) {
View Full Code Here

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

    if (searchFor != null && !"".equals(searchFor)) {
      q.addFilter(searchBy, FilterOperator.EQUAL, searchFor);
    }
    PreparedQuery pq = datastore.prepare(q);
    //logger.info(pq.toString());
    return pq.asIterable();
  }
 
  public static Iterable<Entity> listAllEntities(String kind) {

    Query q = new Query(kind);
View Full Code Here

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

    Query q = new Query(kind);

    PreparedQuery pq = datastore.prepare(q);

    return pq.asIterable();
 

  /**
   * Get the list of children from a parent key in the entity group
   *
 
View Full Code Here

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

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

  public static Iterable<Entity> listNovedadesHome(Date fecini, Date fecter, Long negocio) {

    Query q = new Query("BitacoraLN");
View Full Code Here

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

    q.addFilter("negocio", FilterOperator.EQUAL, negocio);
    q.addSort("fecha", Query.SortDirection.DESCENDING);
    //logger.info("super query : " + q.toString());
    PreparedQuery pq = datastore.prepare(q);

    return pq.asIterable();
  }

  public static Iterable<Entity> listNovedadesHome(Date fecini, Date fecter) {

    Query q = new Query("NovedadLN");
View Full Code Here

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

    q.addFilter("fecha", FilterOperator.LESS_THAN_OR_EQUAL, fecter);
    q.addSort("fecha", Query.SortDirection.DESCENDING);
    //logger.info("query : " + q.toString());
    PreparedQuery pq = datastore.prepare(q);

    return pq.asIterable();
  }
 
  public static Iterable<Entity> listTurnoHome() {
    Query q = new Query("TipoLN");
    q.addSort("orden", Query.SortDirection.ASCENDING);
View Full Code Here

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

  public static Iterable<Entity> listTurnoHome() {
    Query q = new Query("TipoLN");
    q.addSort("orden", Query.SortDirection.ASCENDING);
    PreparedQuery pq = datastore.prepare(q);
    //logger.info("query : " + q.toString());
    return pq.asIterable();
  }

  public static Iterable<Entity> listEquipoHome(Long negocio,Long turno, Date fecha) {
    Query query = new Query("BitacoraLN");
    query.addFilter("turno", FilterOperator.EQUAL, turno);
View Full Code Here

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

    query.addFilter("turno", FilterOperator.EQUAL, turno);
    query.addFilter("fecha", FilterOperator.EQUAL, fecha);
    //query.addFilter("comentario", FilterOperator.NOT_EQUAL, null);
    query.addFilter("negocio", FilterOperator.EQUAL, negocio);
    PreparedQuery pq = datastore.prepare(query);
    return pq.asIterable();
  }
 
  public static Iterable<Entity> listNovedades(Date fecha) {
    Query query = new Query("BitacoraLN");
    query.addFilter("fecha", FilterOperator.EQUAL, fecha);
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.