| |
|
| org.compass.sample.petclinic.jdbc.AbstractJdbcClinic
All known Subclasses: org.compass.sample.petclinic.jdbc.HsqlJdbcClinic, org.compass.sample.petclinic.jdbc.MySQLJdbcClinic,
AbstractJdbcClinic | abstract public class AbstractJdbcClinic extends JdbcDaoSupport implements Clinic,CachingClinic(Code) | | Base class for JDBC implementations of the Clinic interface.
author: Ken Krebs author: Juergen Hoeller author: Rob Harrop |
Inner Class :protected class VetsQuery extends MappingSqlQuery | |
Inner Class :protected class SpecialtiesQuery extends MappingSqlQuery | |
Inner Class :protected class VetSpecialtiesQuery extends MappingSqlQuery | |
Inner Class :abstract protected class OwnersQuery extends MappingSqlQuery | |
Inner Class :protected class OwnersByNameQuery extends OwnersQuery | |
Inner Class :protected class OwnerQuery extends OwnersQuery | |
Inner Class :protected class OwnerInsert extends SqlUpdate | |
Inner Class :protected class OwnerUpdate extends SqlUpdate | |
Inner Class :abstract protected class PetsQuery extends MappingSqlQuery | |
Inner Class :protected class PetsByOwnerQuery extends PetsQuery | |
Inner Class :protected class PetQuery extends PetsQuery | |
Inner Class :protected class PetInsert extends SqlUpdate | |
Inner Class :protected class PetUpdate extends SqlUpdate | |
Inner Class :protected class PetTypesQuery extends MappingSqlQuery | |
Inner Class :protected class VisitsQuery extends MappingSqlQuery | |
Inner Class :protected class VisitInsert extends SqlUpdate | |
findOwners | public Collection findOwners(String lastName) throws DataAccessException(Code) | | Method loads owners plus pets and visits if not already loaded
|
getIdentityQuery | abstract protected String getIdentityQuery()(Code) | | Return the identity query for the particular database: a query that can
be used to retrieve the id of a row that has just been inserted.
the identity query |
initDao | protected void initDao()(Code) | | |
loadOwner | public Owner loadOwner(int id) throws DataAccessException(Code) | | Method loads an owner plus pets and visits if not already loaded
|
loadPet | public Pet loadPet(int id) throws DataAccessException(Code) | | |
loadPetsAndVisits | protected void loadPetsAndVisits(Owner owner)(Code) | | Method to retrieve the Pet and Visit data
for an Owner .
|
loadVisits | protected void loadVisits(JdbcPet pet)(Code) | | Method to retrieve the Visit data for a Pet .
|
mapEntityList | final protected Map mapEntityList(List list)(Code) | | Method maps a List of Entity objects keyed to their ids.
Parameters: list - List containing Entity objects Map containing Entity objects |
refreshVetsCache | public void refreshVetsCache() throws DataAccessException(Code) | | |
retrieveIdentity | protected void retrieveIdentity(Entity entity)(Code) | | Retrieve and set the identity for the given entity, assuming that the
last executed insert affected that entity and generated an auto-increment
value for it.
Parameters: entity - the entity object to retrieved the id for See Also: AbstractJdbcClinic.getIdentityQuery |
storeOwner | public void storeOwner(Owner owner) throws DataAccessException(Code) | | |
storePet | public void storePet(Pet pet) throws DataAccessException(Code) | | |
storeVisit | public void storeVisit(Visit visit) throws DataAccessException(Code) | | |
|
|
|