Package com.metrictracker.model

Examples of com.metrictracker.model.MetricValueDao.deleteAll()


    MetricDao dao = new MetricDao();
    Metric metric = getMetric();

    MetricValueDao valueDao = new MetricValueDao();
    List<MetricValue> metricValues = valueDao.listByProperty("metricKey", metric.getKey());
    valueDao.deleteAll(metricValues);

    MetricGoalDao goalDao = new MetricGoalDao();
    List<MetricGoal> metricGoals = goalDao.listByProperty("metricKey", metric.getKey());
    goalDao.deleteAll(metricGoals);
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.