📄 categorydao.java
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -