7440c6a2a0e15a679e6f214af4bbf704b74ea390.svn-base 1.1 KB
package yxy.timer.dao.impl;

import java.util.List;

import yxy.timer.dao.YxyUnsubscribeDao;
import yxy.timer.pojo.YxyUnsubscribeInfo;

/**
 * 
 * 退订dao实现类
 *
 */
public class YxyUnsubscribeDaoImpl extends HibernateBaseDAOImpl<YxyUnsubscribeInfo, Long> implements YxyUnsubscribeDao{
	/**HQL查询*/
	public List<YxyUnsubscribeInfo> findByHql(String hql) throws Exception {		
		return super.getAll(hql);
	}
	/**查询指定量数据*/
	public List<YxyUnsubscribeInfo> findByHqlSet(String hql,int num)throws Exception{
		return super.findBySet(hql, num);
	}
	/**批量插入退订信息*/
	public void insertUnPi(List<YxyUnsubscribeInfo> o) throws Exception {
		super.addPi(o);		
	}
	/**sql查询*/
	public List<Object> findBySql(String sql) throws Exception
	{
		return super.findBySql(sql);
	}
	/**HQL更新*/
	public void updateByHql(String hql)throws Exception
	{
		super.updateorDelByHql(hql);
	}
	
	public int insertUn(YxyUnsubscribeInfo o)throws Exception{
		return super.add(o);
	}
	
	public int findByHqlCount(String hql)throws Exception{
		return super.count(hql);
	}
}