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

📄 icategorydao.java

📁 基于Struts的网络商店源码。使用Hibernate技术
💻 JAVA
字号:
package com.sush.webstore.store.data.dao;

import java.util.Set;

import com.sush.webstore.store.domain.ICategory;
import com.sush.webstore.store.domain.IProduct;

public interface ICategoryDAO {

	boolean addSubCategory(ICategory category, ICategory subCategory);
	
	boolean addProduct(ICategory category, IProduct product);
	
	ICategory getCategory(long id);
	
	Set<ICategory> getSubCategories(ICategory category);
	
	Set<IProduct> getProducts(ICategory category);
	
	boolean hasSubCategories(ICategory category);
	
	boolean hasProducts(ICategory category);
	
	boolean removeProduct(ICategory category, IProduct product);	
	
	boolean updateCategory(ICategory category);
}

⌨️ 快捷键说明

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