package com.metrictracker.model;
import com.google.appengine.api.datastore.QueryResultIterator;
import com.googlecode.objectify.Objectify;
import com.googlecode.objectify.ObjectifyService;
import com.googlecode.objectify.Query;
public class MetricValueDao extends ObjectifyGenericDao<MetricValue> {
public MetricValueDao() {
super(MetricValue.class);
// TODO Auto-generated constructor stub
}
public QueryResultIterator<MetricValue> getMetricGoals () {
Objectify ofy = ObjectifyService.begin();
Query<MetricValue> query = ofy.query(MetricValue.class);
return query.iterator();
}
}