net.uidl.carsales
Class OptionManager

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

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

OptionManager 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
OptionManager()
           
 
Method Summary
 java.util.List<Option> getAllOptions()
           
 Option getOption(int id)
           
 int saveOption(Option o)
           
 
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

OptionManager

public OptionManager()
Method Detail

getOption

public Option getOption(int id)
                 throws java.lang.Exception
Throws:
java.lang.Exception

saveOption

public int saveOption(Option o)

getAllOptions

public java.util.List<Option> getAllOptions()
                                     throws java.lang.Exception
Throws:
java.lang.Exception