package cn.com.usky.iot.EfAnalysis.dao;

import java.util.Date;
import java.util.List;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import cn.com.usky.iot.entity.YtiotTEfAnalysis;
import cn.com.usky.utils.DaoQuery;
import cn.com.usky.utils.DaoResult;

public class YtiotTEfAnalysisDaoImpl extends HibernateDaoSupport implements YtiotTEfAnalysisDao {

	private DaoQuery daoQuery;
	private YtiotTEfAnalysisDao ytiotTEfAnalysisDao;
	public DaoQuery getDaoQuery() {
		return daoQuery;
	}

	public void setDaoQuery(DaoQuery daoQuery) {
		this.daoQuery = daoQuery;
	}

	public YtiotTEfAnalysisDao getYtiotTEfAnalysisDao() {
		return ytiotTEfAnalysisDao;
	}

	public void setYtiotTEfAnalysisDao(YtiotTEfAnalysisDao ytiotTEfAnalysisDao) {
		this.ytiotTEfAnalysisDao = ytiotTEfAnalysisDao;
	}

	@Override
	public int getCount(String sqlwhere) {
		// TODO Auto-generated method stub
		return daoQuery.getCount("YtiotTEfAnalysis", sqlwhere);
	}
	
	@Override
	public int getWaterCount(String sqlwhere) {
		// TODO Auto-generated method stub
		return daoQuery.getCount("YtiotTWaterAnalysis", sqlwhere);
	}

	@Override
	public List query(String sqlwhere, String order, String dir, String start, String limit) {
		// TODO Auto-generated method stub
		return daoQuery.query("YtiotTEfAnalysis", sqlwhere, order, dir, start, limit);
	}
	@Override
	public List queryWater(String sqlwhere, String order, String dir, String start, String limit) {
		// TODO Auto-generated method stub
		return daoQuery.query("YtiotTWaterAnalysis", sqlwhere, order, dir, start, limit);
	}

}
