📄 icategorydao.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 + -