newsdao.java

来自「STRUTS数据库项目开发宝典」· Java 代码 · 共 38 行

JAVA
38 行
字号
package com.relationinfo.dao;import java.util.List;import com.relationinfo.model.News;public interface NewsDAO extends DAO {    /**     * Retrieves all of the newss     */    public List getNewss(News news);    /**     * Gets news's information based on primary key. An     * ObjectRetrievalFailureException Runtime Exception is thrown if      * nothing is found.     *      * @param newscode the news's newscode     * @return news populated news object     */    public News getNews(final String newscode);    /**     * Saves a news's information     * @param news the object to be saved     */	    public void saveNews(News news);	/**     * Removes a news from the database by newscode     * @param newscode the news's newscode     */    public void removeNews(final String newscode);}

⌨️ 快捷键说明

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