catalogdao.java
来自「这是一些关于JSF实例的源代码,很难得的,对学习Web页面编程很有帮助」· Java 代码 · 共 71 行
JAVA
71 行
/*
* 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 + =
减小字号Ctrl + -
显示快捷键?