PointManageImpl

package com.huaweisymantec.rmc.core.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.huaweisymantec.rmc.core.dao.PointDao;
import com.huaweisymantec.rmc.core.domain.RemoteClientPoint;
import com.huaweisymantec.rmc.core.service.PointManage;
@Component("pm")
public class PointManageImpl implements PointManage{

private PointDao pd;
public void addPoint(RemoteClientPoint rcp) {
pd.savePoint(rcp);

}
public PointDao getPd() {
return pd;
}
@Resource
public void setPd(PointDao pd) {
this.pd = pd;
}
public RemoteClientPoint getPointByName(String rcpname) {
return pd.getPoint(rcpname);

}
public void delPoint(RemoteClientPoint rcp) {
pd.delPoint(rcp);

}
public void updatePoint(RemoteClientPoint rcp) {
pd.updatePoint(rcp);

}
public boolean checkExist(String rcpname) {
return pd.checkExist(rcpname);
}


}

你可能感兴趣的:(DAO)