inoticecommentdao.java
来自「学习dwr+struts2+spring进行开发的好例子」· Java 代码 · 共 52 行
JAVA
52 行
package com.szhelper.lotteryWeb.dao;
import java.util.List;
import com.szhelper.lotteryWeb.model.NoticeComment;
import com.szhelper.lotteryWeb.util.PageBean;
public interface INoticeCommentDao {
/**
* save notice comment to database and then return the NoticeComment.
*
* @param dataObject
* be ready for saving NoticeComment
* @return boolean
*/
boolean save(NoticeComment 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 NoticeComment
*/
boolean update(NoticeComment dataObject);
/**
* retrieve all noticecomment from database.
*
* @return list including all record and encapsulated NoticeComment Objects
*/
List<NoticeComment> list();
/**
* search noticeComment by key.
*
* @param id
* key
* @return if finding,return direct; otherwise return null.
*/
NoticeComment findByKey(Integer id);
List getPageList(PageBean page);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?