⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 categorydao.java

📁 一个免费wap站
💻 JAVA
字号:
package com.eline.wap.resource.dao;

import java.util.List;

import com.eline.wap.common.model.Page;
import com.eline.wap.resource.exceptions.ResourceDAOSysException;
import com.eline.wap.resource.model.Category;
import com.eline.wap.resource.model.CategoryCondition;

public interface CategoryDAO {

	public Category getCategory(int categoryId) throws ResourceDAOSysException;

	public Page getCategories(int parentId, int type, int start, int count) throws ResourceDAOSysException;

	public Page searchCategories(CategoryCondition condition, int start, int count) throws ResourceDAOSysException;

	public void createCategory(Category item) throws ResourceDAOSysException;

	public void updateCategory(Category item) throws ResourceDAOSysException;

	public void deleteCategory(int categoryId) throws ResourceDAOSysException;
	
	/**
	 * 专用于生成xml tree
	 * 必须严格按照parentId asc排序方式获取数据
	 * @param type
	 * @return
	 * @throws ResourceDAOSysException
	 */
	public List getCategoriesForXmlTree(int type) throws ResourceDAOSysException;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -