📄 articledao.java
字号:
/*
* Created on 2004-8-28
* Author: Xuefeng, Copyright (C) 2004, Xuefeng.
*/
package org.crystalblog.dao;
import java.util.List;
import org.crystalblog.domain.*;
import org.crystalblog.exception.*;
/**
* Inteface of all operations on article table.
*
* @author Xuefeng
*/
public interface ArticleDao {
// for browse:
Article getArticle(int articleId) throws QueryException;
Article getArticleInfo(int articleId) throws QueryException;
List getRecentArticlesInfo(int num) throws QueryException;
List getArticles(int accountId, int num, int page) throws QueryException;
List getArticlesByCategory(int categoryId) throws QueryException;
List getArticlesByCategory(int categoryId, int num, int page) throws QueryException;
int getArticlesCount(int categoryId) throws QueryException;
List searchArticle(String keyword, int num, int page) throws QueryException;
// for management:
void createArticle(Article article) throws CreateException;
void updateArticle(Article article) throws UpdateException;
void updateArticleInfo(Article article) throws UpdateException;
void deleteArticle(int articleId) throws DeleteException;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -