net.uidl.carsales
Class CustomerManager

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
          extended by net.uidl.carsales.CustomerManager
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean

public class CustomerManager
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport

CustomerManager implementation for carsales example application

Version:
1.0
Author:
Dominic Cioccarelli (uidl.net)

Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
CustomerManager()
           
 
Method Summary
 java.util.List<Customer> getAllCustomers()
           
 Customer getCustomer(int id)
           
 int saveCustomer(Customer c)
           
 
Methods inherited from class org.springframework.orm.hibernate3.support.HibernateDaoSupport
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory
 
Methods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDao
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomerManager

public CustomerManager()
Method Detail

getCustomer

public Customer getCustomer(int id)
                     throws java.lang.Exception
Throws:
java.lang.Exception

saveCustomer

public int saveCustomer(Customer c)

getAllCustomers

public java.util.List<Customer> getAllCustomers()
                                         throws java.lang.Exception
Throws:
java.lang.Exception