1ea2d90b074f7b85bd8dd38db104a21846c9391f.svn-base
1.2 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 com.espeed.dao.impl;
import java.util.List;
import com.espeed.dao.YxyMailStencilKeywordDao;
import com.espeed.pojo.YxyMailStencilKeyword;
import com.espeed.vo.PageBean;
public class YxyMailStencilKeywordDaoImpl extends HibernateBaseDAOImpl<YxyMailStencilKeyword, Long> implements YxyMailStencilKeywordDao {
/**实体插入*/
public int addPojo(YxyMailStencilKeyword o)throws Exception{
return super.add(o);
}
/**实体编辑*/
public void updatePojo(YxyMailStencilKeyword o)throws Exception{
super.update(o);
}
/**HQL查询*/
public List<YxyMailStencilKeyword> findByHql(String hql)throws Exception{
return super.getAll(hql);
}
/**指定条记录*/
public List<YxyMailStencilKeyword> findByHqlSet(String hql,int num)throws Exception{
return super.findBySet(hql, num);
}
/**HQL查询分页*/
public List<YxyMailStencilKeyword> 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);
}
}