KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > springframework > samples > petclinic > Visit


1 package org.springframework.samples.petclinic;
2
3 import java.util.Date JavaDoc;
4
5 /**
6  * Simple JavaBean domain object representing a visit.
7  *
8  * @author Ken Krebs
9  */

10 public class Visit extends Entity {
11
12     /** Holds value of property date. */
13     private Date JavaDoc date;
14
15     /** Holds value of property description. */
16     private String JavaDoc description;
17
18     /** Holds value of property pet. */
19     private Pet pet;
20
21     /** Creates a new instance of Visit for the current date */
22     public Visit() {
23         this.date = new Date JavaDoc();
24     }
25
26     /** Getter for property date.
27      * @return Value of property date.
28      */

29     public Date JavaDoc getDate() {
30         return this.date;
31     }
32
33     /** Setter for property date.
34      * @param date New value of property date.
35      */

36     public void setDate(Date JavaDoc date) {
37         this.date = date;
38     }
39
40     /** Getter for property description.
41      * @return Value of property description.
42      */

43     public String JavaDoc getDescription() {
44         return this.description;
45     }
46
47     /** Setter for property description.
48      * @param description New value of property description.
49      */

50     public void setDescription(String JavaDoc description) {
51         this.description = description;
52     }
53
54     /** Getter for property pet.
55      * @return Value of property pet.
56      */

57     public Pet getPet() {
58         return this.pet;
59     }
60
61     /** Setter for property pet.
62      * @param pet New value of property pet.
63      */

64     protected void setPet(Pet pet) {
65         this.pet = pet;
66     }
67
68 }
69
Popular Tags