inoticecommentservice.java.svn-base

来自「学习dwr+struts2+spring进行开发的好例子」· SVN-BASE 代码 · 共 67 行

SVN-BASE
67
字号
package com.szhelper.lotteryWeb.service;

import java.util.List;

import com.szhelper.lotteryWeb.dao.INoticeCommentDao;
import com.szhelper.lotteryWeb.exception.NoticeCommentExistsException;
import com.szhelper.lotteryWeb.model.NoticeComment;
import com.szhelper.lotteryWeb.util.PageBean;

/**
 * Business Service Interface to handle communication between web and
 * persistence layer.
 *
 */
public interface INoticeCommentService {

    /**
     * Convenience method for testing - allows you to mock the DAO and set it on an interface.
     * @param noticeCommentDao the NoticeCommentDao implementation to use
     */
    void setNoticeCommentDao(INoticeCommentDao noticeCommentDao);

    /**
     * Retrieves a NoticeComment by NoticeCommentId.  An exception is thrown if NoticeComment not found
     *
     * @param NoticeCommentId the identifier for the NoticeComment
     * @return NoticeComment
     */
    NoticeComment getNoticeCommentByKey(int NoticeCommentId);

    /**
     * Finds a NoticeComment by their NoticeCommentname.
     * @param NoticeCommentname the NoticeComment's NoticeCommentname used to login
     * @return NoticeComment a populated NoticeComment object
     * @throws org.acegisecurity.NoticeCommentdetails.NoticeCommentnameNotFoundException
     *         exception thrown when NoticeComment not found
     *//*
    NoticeComment getNoticeCommentByNoticeCommentname(String NoticeCommentname) throws NoticeCommentnameNotFoundException;
*/
    /**
     * Retrieves a list of NoticeComments, filtering with parameters on a NoticeComment object
     * @return List
     */
    List getNoticeCommentList();

    /**
     * Saves a NoticeComment's information.
     *
     * @param NoticeComment the NoticeComment's information
     * @throws NoticeCommentExistsException thrown when NoticeComment already exists
     * @return NoticeComment the updated NoticeComment object
     */
    boolean saveNoticeComment(NoticeComment NoticeComment) throws NoticeCommentExistsException;
    
    boolean updateNoticeComment(NoticeComment NoticeComment) throws NoticeCommentExistsException;

    /**
     * Deletes a NoticeComment from the database by their noticeCommentId
     *
     * @param noticeCommentId the NoticeComment's id
     */
    boolean deleteNoticeComment(int noticeCommentId);
    
    List getNoticeCommentPageList(PageBean page);
}

⌨️ 快捷键说明

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