YxyReplyInfoDaoImpl.java 1.6 KB
package com.espeed.dao.impl;

import java.util.List;

import com.espeed.dao.YxyReplyInfoDao;
import com.espeed.pojo.YxyReplyInfo;
import com.espeed.vo.PageBean;

public class YxyReplyInfoDaoImpl extends HibernateBaseDAOImpl<YxyReplyInfo, Long> implements YxyReplyInfoDao{

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