📄 personmanagerimpl.java
字号:
package com.sunny.test.service.impl;
import java.util.List;
import com.sunny.test.dao.PersonDao;
import com.sunny.test.model.Person;
import com.sunny.test.service.PersonManager;
public class PersonManagerImpl implements PersonManager
{
private PersonDao persondao;
public void delete(String id) throws Exception
{
persondao.delete(Integer.parseInt(id));
}
public List findAll() throws Exception
{
return persondao.findAll();
}
public Person getPerson(String id) throws Exception
{
return persondao.getPerson(Integer.parseInt(id));
}
public void save(Person person) throws Exception
{
persondao.save(person);
}
public PersonDao getPersondao()
{
return persondao;
}
public void setPersondao(PersonDao persondao)
{
this.persondao = persondao;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -