catalogservice.java
来自「网上购物系统struts+spring+hibernate实现」· Java 代码 · 共 47 行
JAVA
47 行
package com.sdi0708.bdifn.bookstore.service.impl;import java.util.List;import com.sdi0708.bdifn.bookstore.dao.ICatalogDao;import com.sdi0708.bdifn.bookstore.domain.Catalog;import com.sdi0708.bdifn.bookstore.service.ICatalogService;public class CatalogService implements ICatalogService { ICatalogDao catalogDao ; public void setCatalogDao(ICatalogDao catalogDao) { this.catalogDao = catalogDao; } public void addCatalog(Catalog catalog, Long parentId) { this.catalogDao.addCatalog(catalog, parentId); } public void deleteById(Long id) { this.catalogDao.deleteById(id); } public List<Catalog> findAllCatalogs() { return this.catalogDao.findAllCatalogs(); } public Catalog findById(Long id) { return this.catalogDao.findById(id); } public void modifyCatalod(Catalog catalog) { this.catalogDao.modifyCatalod(catalog); } public List<Catalog> findParentCatalogs() { return this.catalogDao.findParentCatalogs(); } public List<Catalog> findLeafCatalogs(Long parantId) { return this.catalogDao.findLeafCatalogs(parantId); } }
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?