InfoManageImpl

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);
}

}

你可能感兴趣的:(DAO)