|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Clinic
The high-level PetClinic business interface.
This is basically a data access object. PetClinic doesn't have a dedicated business facade.
Method Summary | |
---|---|
void |
deletePet(int id)
Deletes a Pet from the data store. |
java.util.Collection<Owner> |
findOwners(java.lang.String lastName)
Retrieve Owner s from the data store by last name,
returning all owners whose last name starts with the given name. |
java.util.Collection<PetType> |
getPetTypes()
Retrieve all PetType s from the data store. |
java.util.Collection<Vet> |
getVets()
Retrieve all Vet s from the data store. |
Owner |
loadOwner(int id)
Retrieve an Owner from the data store by id. |
Pet |
loadPet(int id)
Retrieve a Pet from the data store by id. |
void |
storeOwner(Owner owner)
Save an Owner to the data store, either inserting or updating it. |
void |
storePet(Pet pet)
Save a Pet to the data store, either inserting or updating it. |
void |
storeVisit(Visit visit)
Save a Visit to the data store, either inserting or updating it. |
Method Detail |
---|
java.util.Collection<Vet> getVets() throws org.springframework.dao.DataAccessException
Vet
s from the data store.
Collection
of Vet
s
org.springframework.dao.DataAccessException
java.util.Collection<PetType> getPetTypes() throws org.springframework.dao.DataAccessException
PetType
s from the data store.
Collection
of PetType
s
org.springframework.dao.DataAccessException
java.util.Collection<Owner> findOwners(java.lang.String lastName) throws org.springframework.dao.DataAccessException
Owner
s from the data store by last name,
returning all owners whose last name starts with the given name.
lastName
- Value to search for
Collection
of matching Owner
s
(or an empty Collection
if none found)
org.springframework.dao.DataAccessException
Owner loadOwner(int id) throws org.springframework.dao.DataAccessException
Owner
from the data store by id.
id
- the id to search for
Owner
if found
org.springframework.dao.DataRetrievalFailureException
- if not found
org.springframework.dao.DataAccessException
Pet loadPet(int id) throws org.springframework.dao.DataAccessException
Pet
from the data store by id.
id
- the id to search for
Pet
if found
org.springframework.dao.DataRetrievalFailureException
- if not found
org.springframework.dao.DataAccessException
void storeOwner(Owner owner) throws org.springframework.dao.DataAccessException
Owner
to the data store, either inserting or updating it.
owner
- the Owner
to save
org.springframework.dao.DataAccessException
BaseEntity.isNew()
void storePet(Pet pet) throws org.springframework.dao.DataAccessException
Pet
to the data store, either inserting or updating it.
pet
- the Pet
to save
org.springframework.dao.DataAccessException
BaseEntity.isNew()
void storeVisit(Visit visit) throws org.springframework.dao.DataAccessException
Visit
to the data store, either inserting or updating it.
visit
- the Visit
to save
org.springframework.dao.DataAccessException
BaseEntity.isNew()
void deletePet(int id) throws org.springframework.dao.DataAccessException
Pet
from the data store.
org.springframework.dao.DataAccessException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |