|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Catalog DAO interface.
This class contains catalog management related data access logic.
Method Summary | |
void |
deleteProduct(Product product)
Delete product. |
java.util.List |
getAllCategories()
Get all categories. |
java.util.List |
getAllProducts()
Get all the products. |
Category |
getCategory(java.lang.String id)
Get category by category id. |
Product |
getProduct(java.lang.String id)
Get product by product id. |
Product |
saveProduct(Product product)
Save the product. |
void |
updateProduct(Product product)
Update product. |
Method Detail |
public Product saveProduct(Product product)
product
- the product to be saved
public Product getProduct(java.lang.String id)
id
- the product id
public void updateProduct(Product product)
product
- the product to be updatedpublic void deleteProduct(Product product)
product
- the product to be deletedpublic java.util.List getAllProducts()
public Category getCategory(java.lang.String id)
id
- The category id
public java.util.List getAllCategories()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |