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

All Known Subinterfaces:
CustomerDao
All Known Implementing Classes:
CustomerDaoImpl, CustomerDaoImplBase

public interface CustomerDaoBase

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

Author:
Mod4j generated

Method Summary
 Customer add(Customer object)
          Adds a new Customer to the database
 void delete(Customer object)
          Deletes a Customer from the database.
 java.util.List<Customer> listAllCustomers()
          Selects all Customers from the database.
 Customer retrieve(long id)
          Retrieves a Customer by its ID from the database.
 Customer update(Customer object)
          Stores/Updates the Customer in the database.
 

Method Detail

retrieve

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

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

add

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

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

update

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

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

delete

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

Parameters:
object - the Customer to delete

listAllCustomers

java.util.List<Customer> listAllCustomers()
Selects all Customers from the database.

Returns:
a List of all Customer objects.


Copyright © 2010. All Rights Reserved.