【Java开源代码栏目提醒】:本文主要为网学会员提供CategoryManager.java,希望对需要CategoryManager.java网友有所帮助,学习一下!
package com.weblog.service;
import java.util.List;
import com.weblog.model.Category;
import com.weblog.dao.CategoryDao;
public interface CategoryManager {
/**
* Retrieves all of the categorys
*/
public List getCategorys();
/**
* Gets category's information based on id.
*
* @param id
* the category's id
* @return category populated category object
*/
public Category getCategory(Long id);
/**
* Saves a category's information
*
* @param category
* the object to be saved
*/
public void saveCategory(Category category);
/**
* Removes a category from the database by id
*
* @param id
* the category's id
*/
public void removeCategory(Long id);
}
上一篇:
CategoryIAdo.java
下一篇:
第1章 现在完成时和现在完成进行时