`
myway84
  • 浏览: 203070 次
  • 性别: Icon_minigender_1
  • 来自: 重庆
文章分类
社区版块
存档分类
最新评论

InfoManageImpl

DAO 
阅读更多
package com.huaweisymantec.rmc.core.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.huaweisymantec.rmc.core.dao.InfoDAO;
import com.huaweisymantec.rmc.core.domain.Info;
import com.huaweisymantec.rmc.core.service.InfoManage;

@Component
public class InfoManageImpl implements InfoManage{

private InfoDAO infoDAO;

public InfoDAO getInfoDAO() {
return infoDAO;
}

@Resource
public void setInfoDAO(InfoDAO infoDAO) {
this.infoDAO = infoDAO;
}

public Info find(String ESN) {

return infoDAO.findInfo(ESN);
}

public void save(Info info)
{

infoDAO.saveInfo(info);

}
public Info getInfo(String ESN)
{
return infoDAO.getInfo(ESN);
}

}
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics