| org.compass.sample.petclinic.Clinic
All known Subclasses: org.compass.sample.petclinic.jdbc.AbstractJdbcClinic, org.compass.sample.petclinic.ojb.PersistenceBrokerClinic, org.compass.sample.petclinic.hibernate.HibernateClinic,
Clinic | public interface Clinic (Code) | | The high-level PetClinic business interface.
This is basically a data access object, as PetClinic doesn't have dedicated
business logic.
author: Ken Krebs author: Juergen Hoeller |
Method Summary | |
Collection | findOwners(String lastName) Retrieve Owner s from the datastore by last name,
returning all owners whose last name starts with the given name. | Collection | getPetTypes() Retrieve all PetType s from the datastore. | public Collection | getPets() Retrieve all Pet s from the datastore. | Collection | getVets() Retrieve all Vet s from the datastore. | Owner | loadOwner(int id) Retrieve an Owner from the datastore by id. | Pet | loadPet(int id) Retrieve a Pet from the datastore by id. | void | storeOwner(Owner owner) Save an Owner to the datastore, either inserting or
updating it. | void | storePet(Pet pet) Save a Pet to the datastore, either inserting or updating
it. | void | storeVisit(Visit visit) Save a Visit to the datastore, either inserting or
updating it. |
findOwners | Collection findOwners(String lastName) throws DataAccessException(Code) | | Retrieve Owner s from the datastore by last name,
returning all owners whose last name starts with the given name.
Parameters: lastName - Value to search for a Collection of matching Owner s(or an empty Collection if none found) |
getPetTypes | Collection getPetTypes() throws DataAccessException(Code) | | Retrieve all PetType s from the datastore.
a Collection of PetType s |
getPets | public Collection getPets() throws DataAccessException(Code) | | Retrieve all Pet s from the datastore.
a Collection of Pet s. |
getVets | Collection getVets() throws DataAccessException(Code) | | Retrieve all Vet s from the datastore.
a Collection of Vet s |
loadOwner | Owner loadOwner(int id) throws DataAccessException(Code) | | Retrieve an Owner from the datastore by id.
Parameters: id - the id to search for the Owner if found throws: org.springframework.dao.DataRetrievalFailureException - if not found |
loadPet | Pet loadPet(int id) throws DataAccessException(Code) | | Retrieve a Pet from the datastore by id.
Parameters: id - the id to search for the Pet if found throws: org.springframework.dao.DataRetrievalFailureException - if not found |
storeOwner | void storeOwner(Owner owner) throws DataAccessException(Code) | | Save an Owner to the datastore, either inserting or
updating it.
Parameters: owner - the Owner to save See Also: Entity.isNew |
storePet | void storePet(Pet pet) throws DataAccessException(Code) | | Save a Pet to the datastore, either inserting or updating
it.
Parameters: pet - the Pet to save See Also: Entity.isNew |
storeVisit | void storeVisit(Visit visit) throws DataAccessException(Code) | | Save a Visit to the datastore, either inserting or
updating it.
Parameters: visit - the Visit to save See Also: Entity.isNew |
|
|