org.company.thesandbox.data.spring.dao
Interface ProductDaoBase

All Known Subinterfaces:
ProductDao
All Known Implementing Classes:
ProductDaoImpl, ProductDaoImplBase

public interface ProductDaoBase

ProductDaoBaseData Access Object (DAO). Responsible for accessing database.

Author:
Mod4j generated

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

retrieve

Product retrieve(long id)
Retrieves a Product by its ID from the database.

Parameters:
id - id of the Product to retrieve.
Returns:
Product retrieved or null when no Product was found.

add

Product add(Product object)
Adds a new Product to the database

Parameters:
object - the Product to add to the database.
Returns:
the stored Product.

update

Product update(Product object)
Stores/Updates the Product in the database. Inclusive all its posts.

Parameters:
object - the Product to store/update
Returns:

delete

void delete(Product object)
Deletes a Product from the database.

Parameters:
object - the Product to delete

listAllProducts

java.util.List<Product> listAllProducts()
Selects all Products from the database.

Returns:
a List of all Product objects.


Copyright © 2010. All Rights Reserved.