0ec71c6580289436c728da66351c50eac65732a0.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
package yxy.timer.dao.impl;
import java.util.List;
import yxy.timer.dao.YxyReadInfoSaleDao;
import yxy.timer.sale.YxyReadingInfo;
public class YxyReadInfoSaleDaoImpl extends SaleHibernateBaseDAOImpl<YxyReadingInfo, Long> implements YxyReadInfoSaleDao
{
/**HQL查询*/
public List<YxyReadingInfo> findByHql(String hql) throws Exception
{
return super.getAll(hql);
}
/**批量插入*/
public void insertReadPi(List<YxyReadingInfo> o) throws Exception {
super.addPi(o);
}
/**HQL查询指定条数据*/
public List findByHqlNum(String hql) throws Exception
{
return super.findBySet(hql, 1000);
}
/**sql查询*/
public List<Object> findBySql(String sql) throws Exception
{
return super.findBySql(sql);
}
/**sql更新*/
public void updateSql(String sql) throws Exception{
super.updateorDelSql(sql);
}
/**HQL更新*/
public void updateByHql(String hql)throws Exception
{
super.updateorDelByHql(hql);
}
/**批量插入*/
public int insertRead(YxyReadingInfo o)throws Exception{
return super.add(o);
}
public int findByHqlCount(String hql)throws Exception{
return super.count(hql);
}
}