Package com.metrictracker.model

Source Code of com.metrictracker.model.MetricValueDao

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();
  }

}
TOP

Related Classes of com.metrictracker.model.MetricValueDao

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.