categorydao.java
来自「java写的blog」· Java 代码 · 共 30 行
JAVA
30 行
/*
* Created on 2004-8-28
* Author: Xuefeng, Copyright (C) 2004, Xuefeng.
*/
package org.crystalblog.dao;
import java.util.*;
import org.crystalblog.domain.*;
import org.crystalblog.exception.*;
/**
* Inteface of all operations on category table.
*
* @author Xuefeng
*/
public interface CategoryDao {
// for browse:
List getCategories(int accountId) throws QueryException;
List getCategoriesOfArticle(int accountId) throws QueryException;
List getCategoriesOfType(int accountId, int type) throws QueryException;
Category getCategory(int categoryId) throws QueryException;
// for management:
void createCategory(Category category) throws CreateException;
void updateCategory(Category category) throws UpdateException;
void deleteCategory(int categoryId) throws DeleteException;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?