KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > springframework > samples > petclinic > jdbc > JdbcPet


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
7  * which are only relevant for AbstractJdbcClinic.
8  *
9  * @author Juergen Hoeller
10  * @see AbstractJdbcClinic
11  */

12 public class JdbcPet extends Pet {
13
14     private int typeId;
15
16     private int ownerId;
17
18     public void setTypeId(int typeId) {
19         this.typeId = typeId;
20     }
21
22     public int getTypeId() {
23         return this.typeId;
24     }
25
26     public void setOwnerId(int ownerId) {
27         this.ownerId = ownerId;
28     }
29
30     public int getOwnerId() {
31         return ownerId;
32     }
33
34 }
35
Popular Tags