categorydao.java

来自「个人blog struts_spring_hibernate」· Java 代码 · 共 38 行

JAVA
38
字号
package com.weblog.dao;import java.util.List;import com.weblog.model.Category;public interface CategoryDao extends DAO {    /**     * Retrieves all of the categorys     */    public List getCategorys();    /**     * Gets category's information based on primary key. An     * ObjectRetrievalFailureException Runtime Exception is thrown if      * nothing is found.     *      * @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);}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?