📄 artclassdao.java
字号:
package com.yhcms.artclass.itface;
import java.util.List;
import com.yhcms.artclass.bean.ArtClass;
import com.yhcms.db.DBConnException;
/**
* <p>Title:系统文章栏目的相关操作</p>
* <li>文章栏目与数据库相关的各项操作</li>
* <br><b>CopyRight: yyhweb[由由华网]</b>
* @author stephen
* @version YH-2.0
*/
public interface ArtClassDao {
/** 增加一个系统栏目
* @param artClass 系统栏目
* @return 成功:ture 失败:false
* @throws DBConnException
*/
public abstract boolean addOneClass(ArtClass artClass) throws DBConnException;
/** 删除一个系统栏目,并删除属于该栏目的所有文章
* @param id 系统栏目Id
* @return 成功:ture 失败:false
* @throws DBConnException
*/
public abstract boolean delOneClass(int id) throws DBConnException;
/** 更新某个系统栏目(同时更新文章表里所有和该栏目相关文章字段值)
* @param artClass 某系统栏目
* @return 成功:ture 失败:false
* @throws DBConnException
*/
public abstract boolean updateClass(ArtClass artClass) throws DBConnException;
/** 由栏目Id获得一个系统栏目
* @param id 栏目Id
* @return 一个系统栏目
* @throws DBConnException
*/
public abstract ArtClass getOneClass(int id) throws DBConnException;
/** 判断一个栏目是否已经存在
* @param classname 栏目名称
* @return 一个栏目Id
* @throws DBConnException
*/
public abstract int getOneClass(String classname) throws DBConnException;
/** 由栏目Id取得栏目名称
* @param id 栏目Id
* @return 栏目的名称
* @throws DBConnException
*/
public abstract String getNameById(int id) throws DBConnException;
/** 由一个父栏目Id获得其所有子栏目
* @param id 父栏目Id
* @return 子栏目列表
* @throws DBConnException
*/
public abstract List getOneCsAllSon(int id) throws DBConnException;
/** 取得系统所有栏目
* @return 所有栏目列表
* @throws DBConnException
*/
public abstract List getAllClass() throws DBConnException;
/** 取得系统父类栏目(目前只有父类),用于系统导航选择所用
* @return 所有系统内部栏目列表
* @throws DBConnException
*/
public abstract List getAllParClass() throws DBConnException;
/** 取得系统内部栏目(目前只有父类),用于用户发表文章选择所用
* @return 所有系统内部栏目列表
* @throws DBConnException
*/
public abstract List getAllInClass() throws DBConnException;
/** 取得栏目最大Id
* @return 系统里栏目的最大Id
* @throws DBConnException
*/
public abstract int getClassMaxId() throws DBConnException;
/** 更新系统的栏目顺序
* @param id 栏目Id
* @param sort 栏目的顺序
* @return 成功:ture 失败:false
* @throws DBConnException
*/
public abstract boolean updateClassSort(int id,int sort) throws DBConnException;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -