bfbf137d76c4210e42b899a0c4e20cf18c4a6f40.svn-base
1.0 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
package yxy.timer.dao.impl;
import java.util.List;
import yxy.timer.dao.YxySendMailMasterBaseDao;
import yxy.timer.pojo.YxySendMailMasterBase;
/***
*
* @author 谢勇
* 营销邮件dao
*/
public class YxySendMailMasterBaseDaoImpl extends HibernateBaseDAOImpl<YxySendMailMasterBase, Long> implements YxySendMailMasterBaseDao{
/**实体插入*/
public int addPojo(YxySendMailMasterBase o)throws Exception{
return super.add(o);
}
/**实体编辑*/
public void updatePojo(YxySendMailMasterBase o)throws Exception{
super.update(o);
}
/**HQL查询*/
public List<YxySendMailMasterBase> findByHql(String hql)throws Exception{
return super.getAll(hql);
}
/**指定条记录*/
public List<YxySendMailMasterBase> 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);
}
}