comtdao.java

来自「前台:文章浏览、发表留言、Game、Music 后台:文章相关:发表文章、修改文」· Java 代码 · 共 44 行

JAVA
44
字号
package com.yhcms.comt.itface;

import java.util.List;

import com.yhcms.comt.bean.Comment;
import com.yhcms.db.DBConnException;

/**
 * <p>Title:系统文章评论的相关操作</p>
 * <li>文章评论与数据库相关的各项操作</li>
 * <b>CopyRight: yyhweb[由由华网]</b>
 * @author stephen
 * @version YH-2.0
 */
public interface ComtDao {
	
	/**
	 * @param comment 文章评论
	 * @return 成功:ture  失败:false
	 * @throws DBConnException
	 */
	public abstract boolean addComt(Comment comment) throws DBConnException;
	
	/**
	 * @param id 评论Id
	 * @return 成功:ture  失败:false
	 * @throws DBConnException
	 */
	public abstract boolean delComt(int id) throws DBConnException;
	
	/**
	 * @param artId 文章Id
	 * @return 成功:ture  失败:false
	 * @throws DBConnException
	 */
	public abstract List getAllByArtId(int artId) throws DBConnException;
	
	/**
	 * @return 评论最大Id
	 * @throws DBConnException
	 */
	public abstract int getMaxId() throws DBConnException;
}

⌨️ 快捷键说明

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