|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.samples.petclinic.jdbc.SimpleJdbcClinic
org.springframework.richclient.samples.petclinic.domain.InMemoryClinic
public class InMemoryClinic
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.
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 |
---|
public InMemoryClinic()
Method Detail |
---|
public void setDataSource(DataSource dataSource)
dataSource
- public void init()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |