⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 guestbookdao.java

📁 学习tapestry的好书啊,绝对经典实用.
💻 JAVA
字号:
package com.cucu.tapestry.dao;

import java.util.List;

import org.springframework.dao.DataAccessException;

import com.cucu.tapestry.entity.Guestbook;

/**
 * Guestbook DAO接口类,定义所有与分页无关的DAO 接口
 *
 * @author 绝情酷哥
 * @version 1.0
 */
public interface GuestbookDAO {
    /**
     * @return 返回留言列表
     */
    public List getList() throws DataAccessException;

    /**
     * @param parentId
     * @return 回复总数
     */
    public Integer getCommentCount(Integer parentId) throws DataAccessException;

    /**
     * @return 计算总共花费时间
     */
    public Integer getSumTime() throws DataAccessException;

    /**
     * 根据ID删除一个对象
     *
     * @param id
     * @throws DataAccessException
     */
    public void doDeleteTopic(Integer id) throws DataAccessException;

    /**
     * @return 总数
     */
    public Integer getCount() throws DataAccessException;

    /**
     * 设置置顶操作
     *
     * @param id
     * @throws DataAccessException
     */
    public void doSetTop(Integer id) throws DataAccessException;

    /**
     * 新建或者修改一个guestbook
     *
     * @param gb
     * @throws DataAccessException
     */
    public void doUpdateTopic(Guestbook gb) throws DataAccessException;

    /**
     * 根据ID返回guestbook
     *
     * @param id
     * @return guestbook
     * @throws DataAccessException
     */
    public Guestbook getGuestbook(Integer id) throws DataAccessException;

    /**
     * @return 回复总数
     */
    public Integer getReplyCount(Integer parentId) throws DataAccessException;
}

⌨️ 快捷键说明

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