21ab47f307153141c5c8103e11fa80bd0e5a63c2.svn-base 1.2 KB
package com.espeed.dao.impl;

import java.util.List;
import com.espeed.dao.YxyMarketingWeekDao;
import com.espeed.pojo.YxyMarketingWeek;
import com.espeed.vo.PageBean;

public class YxyMarketingWeekDaoImpl extends HibernateBaseDAOImpl<YxyMarketingWeek, Long> implements YxyMarketingWeekDao {

	/**实体插入*/
	public int addPojo(YxyMarketingWeek o)throws Exception{
		return super.add(o);
	}
	/**实体编辑*/
	public void updatePojo(YxyMarketingWeek o)throws Exception{
		super.update(o);
	}
	/**HQL查询*/
	public List<YxyMarketingWeek> findByHql(String hql)throws Exception{
		return super.getAll(hql);
	}
	/**指定条记录*/
	public List<YxyMarketingWeek> findByHqlSet(String hql,int num)throws Exception{
		return super.findBySet(hql, num);
	}
	/**HQL查询分页*/
	public List<YxyMarketingWeek> findByHqlPage(String hql,String hqlcount,PageBean pb)throws Exception{
		return super.findByPage(hql, hqlcount, pb);
	}
	/**SQL查询*/
	public List<Object> findBySqlQuery(String sql)throws Exception{
		return super.findBySql(sql);
	}
	/**HQL更新*/
	public void updateByHql(String hql)throws Exception{
		super.updateorDelByHql(hql);
	}
	/**实体批量插入*/
	public void addPojoPi(List<YxyMarketingWeek> list) throws Exception {
		super.addPi(list);
	}
}