Package com.google.appengine.api.datastore

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


      while (it.hasNext()) {
        results.add(it.next());
      }
      return results;
    } else {
      return q.asList(fetchOptions);
    }
  }
}
View Full Code Here


    // Check returned query
    PreparedQuery sessaoById = ses.getBySisId(1);
    assertEquals(1, sessaoById.countEntities(FetchOptions.Builder.withDefaults()));
   
    // Check all properties
    Entity sessao = sessaoById.asList(FetchOptions.Builder.withDefaults()).get(0);
    assertEquals("1", sessao.getProperty("cliente_id"));
    assertEquals(1l, sessao.getProperty("sis_id"));
    assertEquals(1l, sessao.getProperty("nav_id"));
    assertEquals("20130601", sessao.getProperty("ses_data"));
    assertEquals("01:30:00", sessao.getProperty("ses_hora"));
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.