org.springframework.osgi.samples.petclinic.jdbc
Class JdbcClinic

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.jdbc.core.support.JdbcDaoSupport
          extended by org.springframework.osgi.samples.petclinic.jdbc.JdbcClinic
All Implemented Interfaces:
InitializingBean, Clinic

public class JdbcClinic
extends JdbcDaoSupport
implements Clinic

Author:
Costin Leau

Nested Class Summary
protected  class JdbcClinic.PetsQuery
          Abstract base class for all Pet Query Objects.
protected  class JdbcClinic.PetTypesQuery
           
 
Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
JdbcClinic()
           
 
Method Summary
 String getDatabaseName()
           
 Collection getPets()
          Retrieve all Vets from the datastore.
 Collection getPetTypes()
          Retrieve all PetTypes from the datastore.
 void init()
           
 
Methods inherited from class org.springframework.jdbc.core.support.JdbcDaoSupport
checkDaoConfig, createJdbcTemplate, getConnection, getDataSource, getExceptionTranslator, getJdbcTemplate, initTemplateConfig, releaseConnection, setDataSource, setJdbcTemplate
 
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

JdbcClinic

public JdbcClinic()
Method Detail

init

public void init()
          throws Exception
Throws:
Exception

getDatabaseName

public String getDatabaseName()
                       throws DataAccessException
Specified by:
getDatabaseName in interface Clinic
Throws:
DataAccessException

getPetTypes

public Collection getPetTypes()
                       throws DataAccessException
Description copied from interface: Clinic
Retrieve all PetTypes from the datastore.

Specified by:
getPetTypes in interface Clinic
Returns:
a Collection of PetTypes
Throws:
DataAccessException

getPets

public Collection getPets()
                   throws DataAccessException
Description copied from interface: Clinic
Retrieve all Vets from the datastore.

Specified by:
getPets in interface Clinic
Returns:
a Collection of Vets
Throws:
DataAccessException


Copyright © 2006-2007 Spring Framework. All Rights Reserved.