11bc36c94564eceae7d68f906b0baf07b128abbe.svn-base
859 字节
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package yxy.timer.dao.impl;
import java.util.List;
import yxy.timer.dao.YxyReplyInfoDao;
import yxy.timer.pojo.YxyReplyInfo;
/**
*
* 回复dao实现类
*
*/
public class YxyReplyInfoDaoImpl extends HibernateBaseDAOImpl<YxyReplyInfo, Long> implements YxyReplyInfoDao{
/**实体插入*/
public int addPojo(YxyReplyInfo reply)throws Exception{
return super.add(reply);
}
/**查询指定量数据*/
public List<YxyReplyInfo> findByHqlSet(String hql,int num)throws Exception
{
return super.findBySet(hql, num);
}
/**统计条数*/
public int count(String hql)throws Exception
{
return super.count(hql);
}
/**根据sql查询*/
public List<Object> findBySql(String sql)throws Exception
{
return super.findBySql(sql);
}
/**hql更新*/
public void updateByHql(String hql)throws Exception
{
super.updateorDelByHql(hql);
}
}