|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ProductDaoBase
ProductDaoBaseData Access Object (DAO). Responsible for accessing database.
| Method Summary | |
|---|---|
Product |
add(Product object)
Adds a new Product to the database |
void |
delete(Product object)
Deletes a Product from the database. |
java.util.List<Product> |
listAllProducts()
Selects all Products from the database. |
Product |
retrieve(long id)
Retrieves a Product by its ID from the database. |
Product |
update(Product object)
Stores/Updates the Product in the database. |
| Method Detail |
|---|
Product retrieve(long id)
id - id of the Product to retrieve.
Product add(Product object)
object - the Product to add to the database.
Product update(Product object)
object - the Product to store/update
void delete(Product object)
object - the Product to deletejava.util.List<Product> listAllProducts()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||