📄 treatmentserviceimpl.java
字号:
package com.sean.pet.model.service.impl;
import java.util.List;
import com.sean.pet.hibernate.dao.TreatmentDao;
import com.sean.pet.hibernate.po.Treatment;
import com.sean.pet.model.service.TreatmentService;
import com.sean.pet.modelfactory.ModelFactory;
public class TreatmentServiceImpl implements TreatmentService {
private TreatmentDao tmDao = null;
public TreatmentServiceImpl(){
tmDao = (TreatmentDao)ModelFactory.getBean("com.sean.pet.hibernate.dao.impl.TreatmentDaoImpl");
}
public void delete(String id) {
// TODO Auto-generated method stub
this.tmDao.delete(id);
}
public List findAll() {
// TODO Auto-generated method stub
return this.tmDao.findAll();
}
public Treatment findByID(String id) {
// TODO Auto-generated method stub
return this.tmDao.findByID(id);
}
public void save(Treatment tm) {
// TODO Auto-generated method stub
this.tmDao.save(tm);
}
public void update(Treatment tm) {
// TODO Auto-generated method stub
this.tmDao.update(tm);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -