View Javadoc

1   package org.springframework.samples.petclinic.jdbc;
2   
3   import org.springframework.samples.petclinic.Pet;
4   
5   /**
6    * Subclass of Pet that carries temporary id properties which
7    * are only relevant for a JDBC implmentation of the Clinic.
8    *
9    * @author Juergen Hoeller
10   * @see SimpleJdbcClinic
11   */
12  class JdbcPet extends Pet {
13  
14  	private int typeId;
15  
16  	private int ownerId;
17  
18  
19  	public void setTypeId(int typeId) {
20  		this.typeId = typeId;
21  	}
22  
23  	public int getTypeId() {
24  		return this.typeId;
25  	}
26  
27  	public void setOwnerId(int ownerId) {
28  		this.ownerId = ownerId;
29  	}
30  
31  	public int getOwnerId() {
32  		return this.ownerId;
33  	}
34  
35  }