|
||||||||||
| 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 Owners 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 PetTypes from the data store. |
java.util.Collection<Vet> |
getVets()
Retrieve all Vets 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
Vets from the data store.
Collection of Vets
org.springframework.dao.DataAccessException
java.util.Collection<PetType> getPetTypes()
throws org.springframework.dao.DataAccessException
PetTypes from the data store.
Collection of PetTypes
org.springframework.dao.DataAccessException
java.util.Collection<Owner> findOwners(java.lang.String lastName)
throws org.springframework.dao.DataAccessException
Owners 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 Owners
(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.DataAccessExceptionBaseEntity.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.DataAccessExceptionBaseEntity.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.DataAccessExceptionBaseEntity.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 | |||||||||