📄 upfiledao.java
字号:
package com.yhcms.manage.upload.itface;
import java.util.List;
import com.yhcms.db.DBConnException;
import com.yhcms.manage.upload.bean.UpFile;
/**
* <p>Title:系统上传文件的相关操作接口</p>
* <li>上传文件与数据库相关的各项操作</li>
* <b>CopyRight: yyhweb[由由华网]</b>
* @author stephen
* @version YH-2.0
*/
public interface UpFileDao {
/** 上传一个文件
* @param file 文件
* @return 成功:ture 失败:false
* @throws DBConnException
*/
public abstract boolean uploadFile(UpFile file) throws DBConnException;
/** 删除一个文件
* @param id 文件Id
* @return 成功:ture 失败:false
* @throws DBConnException
*/
public abstract boolean delFile(int id) throws DBConnException;
/** 取得系统文件最大Id
* @return 系统文件最大Id
* @throws DBConnException
*/
public abstract int getFileMaxId() throws DBConnException;
/** 当文件被下载一次,其下载次数就要加一。
* @param id 文章Id
* @throws DBConnException
*/
public abstract void downAddTime(int id) throws DBConnException;
/** 取得系统某段区间内的所有附件(按照录入的时间反排序)
* @param begin 开始附件Id
* @param size 一次查询的长度
* @return 某栏目的所有附件DTO对象
* @throws DBConnException
*/
public abstract List getAllFiles(int begin,int size) throws DBConnException;
/** 取得某文章的附件列表
** @param artid 文章Id
* @return 最新文章列表
* @throws DBConnException
*/
public abstract List getArtFiles(int artid) throws DBConnException;
/** 发表文章时,更新该文章相关附件的文章Id。
** @param artid 文章Id
** @param userid 用户Id
* @return 最新文章列表
* @throws DBConnException
*/
public abstract void updateArtFiles(int artid,int userid) throws DBConnException;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -