1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- package cn.com.usky.iot.userstatus.dao;
- import java.util.Date;
- import java.util.List;
- import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
- import cn.com.usky.iot.entity.YtiotTAdminStateEntity;
- import cn.com.usky.iot.order.dao.YtiotTOrderDao;
- import cn.com.usky.utils.DaoQuery;
- import cn.com.usky.utils.DaoResult;
- public class YtiotTAdminStateEntityDaoImpl extends HibernateDaoSupport implements YtiotTAdminStateEntityDao {
- private DaoQuery daoQuery;
- private YtiotTOrderDao ytiotTOrderDao;
- public DaoQuery getDaoQuery() {
- return daoQuery;
- }
- public void setDaoQuery(DaoQuery daoQuery) {
- this.daoQuery = daoQuery;
- }
- public YtiotTOrderDao getYtiotTOrderDao() {
- return ytiotTOrderDao;
- }
- public void setYtiotTOrderDao(YtiotTOrderDao ytiotTOrderDao) {
- this.ytiotTOrderDao = ytiotTOrderDao;
- }
- @Override
- public DaoResult update(YtiotTAdminStateEntity ytiotTAdminStateEntity) {
- this.getHibernateTemplate().update(ytiotTAdminStateEntity);
- return new DaoResult(String.valueOf(ytiotTAdminStateEntity.getUusid()),true);
- }
- @Override
- public int getCount(String sqlwhere) {
- // TODO Auto-generated method stub
- return daoQuery.getCount("YtiotTAdminStateEntity", sqlwhere);
- }
- @Override
- public List query(String sqlwhere, String order, String dir, String start, String limit) {
- // TODO Auto-generated method stub
- return daoQuery.query("YtiotTAdminStateEntity", sqlwhere, order, dir, start, limit);
- }
- }
|