7440c6a2a0e15a679e6f214af4bbf704b74ea390.svn-base
1.1 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
package yxy.timer.dao.impl;
import java.util.List;
import yxy.timer.dao.YxyUnsubscribeDao;
import yxy.timer.pojo.YxyUnsubscribeInfo;
/**
*
* 退订dao实现类
*
*/
public class YxyUnsubscribeDaoImpl extends HibernateBaseDAOImpl<YxyUnsubscribeInfo, Long> implements YxyUnsubscribeDao{
/**HQL查询*/
public List<YxyUnsubscribeInfo> findByHql(String hql) throws Exception {
return super.getAll(hql);
}
/**查询指定量数据*/
public List<YxyUnsubscribeInfo> findByHqlSet(String hql,int num)throws Exception{
return super.findBySet(hql, num);
}
/**批量插入退订信息*/
public void insertUnPi(List<YxyUnsubscribeInfo> o) throws Exception {
super.addPi(o);
}
/**sql查询*/
public List<Object> findBySql(String sql) throws Exception
{
return super.findBySql(sql);
}
/**HQL更新*/
public void updateByHql(String hql)throws Exception
{
super.updateorDelByHql(hql);
}
public int insertUn(YxyUnsubscribeInfo o)throws Exception{
return super.add(o);
}
public int findByHqlCount(String hql)throws Exception{
return super.count(hql);
}
}