YxySendCountDaoImpl.java
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
package com.espeed.yxy.dao.impl;
import java.util.List;
import com.espeed.yxy.dao.YxySendCountDao;
import com.espeed.yxy.pojo.YxySendCount;
/**
* 客户发送邮件的统计Dao实现类
* @author 陈南巧
*/
public class YxySendCountDaoImpl extends HibernateBaseDAOImpl<YxySendCount, Long> implements YxySendCountDao{
/**实体插入*/
public int addPojo(YxySendCount o)throws Exception{
return super.add(o);
}
/**实体编辑*/
public void updatePojo(YxySendCount o)throws Exception{
super.update(o);
}
/**HQL查询*/
public List<YxySendCount> findByHql(String hql)throws Exception{
return super.getAll(hql);
}
/**指定条记录*/
public List<YxySendCount> findByHqlSet(String hql,int num)throws Exception{
return super.findBySet(hql, num);
}
/**SQL查询*/
public List<Object> findBySqlQuery(String sql)throws Exception{
return super.findBySql(sql);
}
/**HQL更新*/
public void updateByHql(String hql)throws Exception{
super.updateorDelByHql(hql);
}
/**HQL数量查询*/
public int findByHqlCount(String hql)throws Exception{
return super.count(hql);
}
}