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

EquipmentManageImpl

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

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.huaweisymantec.rmc.core.dao.EquipmentDAO;
import com.huaweisymantec.rmc.core.domain.Equipment;
import com.huaweisymantec.rmc.core.service.EquipmentManage;

@Component
public class EquipmentManageImpl implements EquipmentManage{

private EquipmentDAO equipmentDAO;

public EquipmentDAO getEquipmentDAO() {
return equipmentDAO;
}

@Resource
public void setEquipmentDAO(EquipmentDAO equipmentDAO)
{
this.equipmentDAO=equipmentDAO;
}


public void saveEquipment(Equipment equip) {

equipmentDAO.saveEquipment(equip);
}




public void deleteEquipment(String ESN) {

equipmentDAO.deleteEquipment(ESN);
}

public void updateEquipment(Equipment equip) {

equipmentDAO.updateEquipment(equip);
}

public Equipment findEquipment(String ESN) {

return equipmentDAO.findEquipment(ESN);

}


public boolean isExitEquipment(String ESN) {

return equipmentDAO.isExitEquipment(ESN);
}

public Equipment getEquipment(String ESN) {

return equipmentDAO.getEquipmentByESN(ESN);
}


}
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics