EquipmentManageImpl

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


}

你可能感兴趣的:(DAO)