use of com.spaceprogram.simplejpa.SdbItemImpl2 in project simplejpa by appoxy.
the class ConcurrentRetriever method test.
public static List<ItemAndAttributes> test(EntityManagerSimpleJPA em, String domainName) throws AmazonClientException, ExecutionException, InterruptedException {
AmazonSimpleDB db = em.getSimpleDb();
SelectResult result = DomainHelper.selectItems(db, "select * from `" + domainName + "`", null);
List<SdbItem> list = new ArrayList<SdbItem>();
for (Item item : result.getItems()) {
list.add(new SdbItemImpl2(item));
}
return getAttributesFromSdb(list, em.getExecutor(), em);
}
Aggregations