3c37d18dc000585eb77e5c4aa81815fa4539f07b.svn-base
1.6 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
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);
}
}