org.springframework.richclient.samples.petclinic.domain
Class InMemoryClinic

java.lang.Object
  extended by org.springframework.samples.petclinic.jdbc.SimpleJdbcClinic
      extended by org.springframework.richclient.samples.petclinic.domain.InMemoryClinic
All Implemented Interfaces:
org.springframework.samples.petclinic.Clinic, org.springframework.samples.petclinic.jdbc.SimpleJdbcClinicMBean

public class InMemoryClinic
extends org.springframework.samples.petclinic.jdbc.SimpleJdbcClinic

Provides an in-memory PetClinic business object.

Leverages HSQL database's in-memory option and uses the Spring-supplied SimpleJdbcClinic. This class simply inserts the schema and base data into the in-memory instance at startup time. It also inserts data required for security.

Author:
Ben Alex

Constructor Summary
InMemoryClinic()
           
 
Method Summary
 void init()
           
 void setDataSource(DataSource dataSource)
          Note: the SimpleJdbcClinic uses autowiring, we could do the same here.
 
Methods inherited from class org.springframework.samples.petclinic.jdbc.SimpleJdbcClinic
findOwners, getPetTypes, getVets, init, loadOwner, loadPet, refreshVetsCache, storeOwner, storePet, storeVisit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InMemoryClinic

public InMemoryClinic()
Method Detail

setDataSource

public void setDataSource(DataSource dataSource)
Note: the SimpleJdbcClinic uses autowiring, we could do the same here.

Parameters:
dataSource -

init

public void init()


Copyright © 2004-2008 The Spring Framework. All Rights Reserved.