2726aceefde5b61ee145c97f3a0ba04de4368bbc.svn-base 1.1 KB
package com.espeed.yxy.dao.impl;
 
import java.util.List;
import com.espeed.yxy.dao.YxySendCountDao;
import com.espeed.yxy.pojo.YxySendCount;
/**
 * 客户发送邮件的统计Dao实现类
 * @author 陈南巧
 */
public class YxySendCountDaoImpl extends HibernateBaseDAOImpl<YxySendCount, Long> implements YxySendCountDao{
	/**实体插入*/
	public int addPojo(YxySendCount o)throws Exception{
		return super.add(o);
	}
	/**实体编辑*/
	public void updatePojo(YxySendCount o)throws Exception{
		super.update(o);
	}
	/**HQL查询*/
	public List<YxySendCount> findByHql(String hql)throws Exception{
		return super.getAll(hql);
	}
	/**指定条记录*/
	public List<YxySendCount> findByHqlSet(String hql,int num)throws Exception{
		return super.findBySet(hql, num);
	}
	/**SQL查询*/
	public List<Object> findBySqlQuery(String sql)throws Exception{
		return super.findBySql(sql);
	}
	/**HQL更新*/
	public void updateByHql(String hql)throws Exception{
		super.updateorDelByHql(hql);
	}
	
	/**HQL数量查询*/
	public int findByHqlCount(String hql)throws Exception{
		return super.count(hql);
	}
}