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

📄 catalogdao.java

📁 采用java开源框架spring
💻 JAVA
字号:
/*
 * JCatalog Project
 */
package catalog.model.dao;

import java.util.List;
//
import catalog.model.businessobject.Product;
import catalog.model.businessobject.Category;

/**
 * Catalog DAO interface.
 * <p>
 * This class contains catalog management related data access logic.
 * 
 * @author <a href="mailto:derek_shen@hotmail.com">Derek Y. Shen</a>
 */
public interface CatalogDao {
	/**
	 * Save the product.
	 * 
	 * @param product the product to be saved
	 * @return the product saved
	 */
	public abstract Product saveProduct(Product product);
	
	/**
	 * Get product by product id.
	 * 
	 * @param id the product id
	 * @return the product associated with the product id
	 */
	public abstract Product getProduct(String id);
	
	/**
	 * Update product.
	 * 
	 * @param product the product to be updated
	 */
	public abstract void updateProduct(Product product);
	
	/**
	 * Delete product.
	 * 
	 * @param product the product to be deleted
	 */
	public abstract void deleteProduct(Product product);
	
	/**
	 * Get all the products.
	 * 
	 * @return a list of all products
	 */
	public abstract List getAllProducts();
	
	/**
	 * Get category by category id.
	 * 
	 * @param id The category id
	 * @return the category associated with the category id
	 */
	public abstract Category getCategory(String id);
	
	/**
	 * Get all categories.
	 * 
	 * @return a list of all categories
	 */
	public abstract List getAllCategories();
}

⌨️ 快捷键说明

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