LinkServiceImpl.java
上传用户:yunfeng252
上传日期:2022-07-23
资源大小:12403k
文件大小:1k
- package org.yufeng.service.serviceImpl;
- import java.util.List;
- import java.util.Map;
- import org.yufeng.dao.ILinkDao;
- import org.yufeng.domains.Link;
- import org.yufeng.service.ILinkServiceDao;
- public class LinkServiceImpl implements ILinkServiceDao {
- private ILinkDao linkDao;
- public List browseLink() throws Exception {
- return getLinkDao().browseLink();
- }
- public Link loadLink(Integer id) throws Exception {
- return getLinkDao().loadLink(id);
- }
- public boolean delLink(Link link) throws Exception {
- return getLinkDao().delLink(link);
- }
- public boolean delLink(int id) throws Exception {
- return getLinkDao().delLink(id);
- }
- public boolean addLink(Link link) throws Exception {
- return getLinkDao().addLink(link);
- }
- public boolean updateLink(Link link) throws Exception {
- return getLinkDao().updateLink(link);
- }
- public ILinkDao getLinkDao() {
- return this.linkDao;
- }
- public void setLinkDao(ILinkDao linkDao) {
- this.linkDao = linkDao;
- }
- }