org.springframework.osgi.samples.petclinic.jdbc
Class JdbcClinic
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.jdbc.core.support.JdbcDaoSupport
org.springframework.osgi.samples.petclinic.jdbc.JdbcClinic
- All Implemented Interfaces:
- InitializingBean, Clinic
public class JdbcClinic
- extends JdbcDaoSupport
- implements Clinic
- Author:
- Costin Leau
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JdbcClinic
public JdbcClinic()
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
PetType
s from the datastore.
- Specified by:
getPetTypes
in interface Clinic
- Returns:
- a
Collection
of PetType
s
- Throws:
DataAccessException
getPets
public Collection getPets()
throws DataAccessException
- Description copied from interface:
Clinic
- Retrieve all
Vet
s from the datastore.
- Specified by:
getPets
in interface Clinic
- Returns:
- a
Collection
of Vet
s
- Throws:
DataAccessException
Copyright © 2006-2007 Spring Framework. All Rights Reserved.