YxyMailStencilHtmlDaoImpl.java 1.1 KB
package com.espeed.dao.impl;
 
import java.util.List;

import com.espeed.dao.YxyMailStencilHtmlDao;
import com.espeed.pojo.YxyMailStencilHtml;
import com.espeed.vo.PageBean;

public class YxyMailStencilHtmlDaoImpl extends HibernateBaseDAOImpl<YxyMailStencilHtml, Long> implements YxyMailStencilHtmlDao {

	/**实体插入*/
	public int addPojo(YxyMailStencilHtml o)throws Exception{
		return super.add(o);
	}
	/**实体编辑*/
	public void updatePojo(YxyMailStencilHtml o)throws Exception{
		super.update(o);
	}
	/**HQL查询*/
	public List<YxyMailStencilHtml> findByHql(String hql)throws Exception{
		return super.getAll(hql);
	}
	/**指定条记录*/
	public List<YxyMailStencilHtml> findByHqlSet(String hql,int num)throws Exception{
		return super.findBySet(hql, num);
	}
	/**HQL查询分页*/
	public List<YxyMailStencilHtml> 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);
	}
}