?? 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 + -