【Java开源代码栏目提醒】:以下是网学会员为您推荐的Java开源代码-AuthorDao.java,希望本篇文章对您学习有所帮助。
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);
}
上一篇:
AuthorComparator.java
下一篇:
配电自动化系统计算机网络及其支持软件的体系结构