inoticenewsdetaildao.java

来自「学习dwr+struts2+spring进行开发的好例子」· Java 代码 · 共 52 行

JAVA
52
字号
package com.szhelper.lotteryWeb.dao;

import java.util.List;

import com.szhelper.lotteryWeb.model.NoticeNewsDetail;
import com.szhelper.lotteryWeb.util.PageBean;

public interface INoticeNewsDetailDao {
	/**
	 * save notice comment to database and then return the NoticeNewsDetail.
	 * 
	 * @param dataObject
	 *            be ready for saving NoticeNewsDetail
	 * @return boolean
	 */
	boolean save(NoticeNewsDetail dataObject);

	/**
	 * delete a piece of noticing comment from database by key id.
	 * 
	 * @param id
	 *            notice comment key.
	 */
	boolean delete(Integer id);

	/**
	 * update notice comment
	 * 
	 * @param dataObject
	 *            be ready for updating NoticeNewsDetail
	 */
	boolean update(NoticeNewsDetail dataObject);

	/**
	 * retrieve all NoticeNewsDetail from database.
	 * 
	 * @return list including all record and encapsulated NoticeNewsDetail Objects
	 */
	List<NoticeNewsDetail> list();

	/**
	 * search NoticeNewsDetail by key.
	 * 
	 * @param id
	 *            key
	 * @return if finding,return direct; otherwise return null.
	 */
	NoticeNewsDetail findByKey(Integer id);
	
	List getPageList(PageBean page);
}

⌨️ 快捷键说明

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