personmanagerimpl.java
来自「该项目基于mvc模式」· Java 代码 · 共 52 行
JAVA
52 行
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 + =
减小字号Ctrl + -
显示快捷键?