icategorydao.java

来自「基于Struts的网络商店源码。使用Hibernate技术」· Java 代码 · 共 28 行

JAVA
28
字号
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 + =
减小字号Ctrl + -
显示快捷键?