authordao.java

来自「struts+hibernate+spring的blog,本人也是下载的」· Java 代码 · 共 38 行

JAVA
38
字号
package com.weblog.dao;import java.util.List;import com.weblog.model.Author;public interface AuthorDao extends DAO {    /**     * Retrieves all of the authors     */    public List getAuthors();    /**     * Gets author's information based on primary key. An     * ObjectRetrievalFailureException Runtime Exception is thrown if      * nothing is found.     *      * @param id the author's id     * @return author populated author object     */    public Author getAuthor( Long id);    /**     * Saves a author's information     * @param author the object to be saved     */        public void saveAuthor(Author author);    /**     * Removes a author from the database by id     * @param id the author's id     */    public void removeAuthor( Long id);}

⌨️ 快捷键说明

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