|
@@ -0,0 +1,46 @@
|
|
|
+package cn.com.usky.iot.company.dao;
|
|
|
+
|
|
|
+import java.util.List;
|
|
|
+import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
|
|
|
+import cn.com.usky.utils.DaoQuery;
|
|
|
+
|
|
|
+public class YtiotVCompanyDaoImpl extends HibernateDaoSupport implements YtiotVCompanyDao {
|
|
|
+
|
|
|
+ private DaoQuery daoQuery;
|
|
|
+
|
|
|
+ public DaoQuery getDaoQuery() {
|
|
|
+ return daoQuery;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setDaoQuery(DaoQuery daoQuery) {
|
|
|
+ this.daoQuery = daoQuery;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public int getCount(String sqlwhere) {
|
|
|
+ // TODO Auto-generated method stub
|
|
|
+ return daoQuery.getCount("YtiotVCompany", sqlwhere);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public List query(String sqlwhere, String order, String dir, String start, String limit) {
|
|
|
+ // TODO Auto-generated method stub
|
|
|
+ return daoQuery.query("YtiotVCompany", sqlwhere, order, dir, start, limit);
|
|
|
+ }
|
|
|
+ @Override
|
|
|
+ public List query1(String sqlwhere, String order, String dir, String start, String limit) {
|
|
|
+ // TODO Auto-generated method stub
|
|
|
+ return daoQuery.query("YtiotTProjectDetails", sqlwhere, order, dir, start, limit);
|
|
|
+ }
|
|
|
+ @Override
|
|
|
+ public List query2(String sqlwhere, String order, String dir, String start, String limit) {
|
|
|
+ // TODO Auto-generated method stub
|
|
|
+ return daoQuery.query("YtiotTProjectDevice", sqlwhere, order, dir, start, limit);
|
|
|
+ }
|
|
|
+ @Override
|
|
|
+ public List query3(String sqlwhere, String order, String dir, String start, String limit) {
|
|
|
+ // TODO Auto-generated method stub
|
|
|
+ return daoQuery.query("YtiotTProjectMonitor", sqlwhere, order, dir, start, limit);
|
|
|
+ }
|
|
|
+
|
|
|
+}
|