0ec71c6580289436c728da66351c50eac65732a0.svn-base 1.1 KB
package yxy.timer.dao.impl;
import java.util.List; 
import yxy.timer.dao.YxyReadInfoSaleDao;
import yxy.timer.sale.YxyReadingInfo;
public class YxyReadInfoSaleDaoImpl extends SaleHibernateBaseDAOImpl<YxyReadingInfo, Long> implements YxyReadInfoSaleDao
{
	/**HQL查询*/
	public List<YxyReadingInfo> findByHql(String hql) throws Exception 
	{
		return super.getAll(hql);
	}
	/**批量插入*/
	public void insertReadPi(List<YxyReadingInfo> o) throws Exception {
		super.addPi(o);
	}
	/**HQL查询指定条数据*/
	public List findByHqlNum(String hql) throws Exception 
	{
		return super.findBySet(hql, 1000);
	}
	/**sql查询*/
	public List<Object> findBySql(String sql) throws Exception
	{
		return super.findBySql(sql);
	}
	/**sql更新*/
	public void updateSql(String sql) throws Exception{
		super.updateorDelSql(sql);
	}
	/**HQL更新*/
	public void updateByHql(String hql)throws Exception
	{
		super.updateorDelByHql(hql);
	}
	/**批量插入*/
	public int insertRead(YxyReadingInfo o)throws Exception{
		return super.add(o);
	}
	public int findByHqlCount(String hql)throws Exception{
		return super.count(hql);
	}
}