categorymanagerimpl.java.svn-base
来自「本人编写的基于spring + spring mvc + hibernate架构」· SVN-BASE 代码 · 共 47 行
SVN-BASE
47 行
package org.coldice.service.impl;
import java.util.Collection;
import org.coldice.dao.CategoryDao;
import org.coldice.model.Category;
import org.coldice.service.CategoryManager;
public class CategoryManagerImpl implements CategoryManager {
private CategoryDao categoryDao;
/**
* @param categoryDao
* the categoryDao to set
*/
public void setCategoryDao(CategoryDao categoryDao) {
this.categoryDao = categoryDao;
}
public void addCategory(Category category) {
// TODO Auto-generated method stub
categoryDao.add(category);
}
public Category getCategory(Integer categoryid) {
// TODO Auto-generated method stub
return categoryDao.get(categoryid);
}
public Collection listCategorys() {
// TODO Auto-generated method stub
return categoryDao.list();
}
public void removeCategory(Category category) {
// TODO Auto-generated method stub
categoryDao.remove(category);
}
public void updateCategory(Category category) {
// TODO Auto-generated method stub
categoryDao.update(category);
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?