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 MetricGoalDao extends ObjectifyGenericDao<MetricGoal> {
public MetricGoalDao() {
super(MetricGoal.class);
// TODO Auto-generated constructor stub
}
public QueryResultIterator<MetricGoal> getMetricGoals () {
Objectify ofy = ObjectifyService.begin();
Query<MetricGoal> query = ofy.query(MetricGoal.class);
return query.iterator();
}
}