KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > petals > demo > icare > model > Reservation


1 package org.objectweb.petals.demo.icare.model;
2
3 import java.util.Date JavaDoc;
4
5 /**
6  * @author Cristian Spiescu
7  * @author Imad Zarzouri
8  * @author Omar Senhaji Rhazi
9  * @author Anass Ouazzani Chahdi
10  *
11  * @since 15.01.2007
12  */

13 public class Reservation extends Entity
14 {
15     public Reservation() {
16         super();
17     }
18
19     private Date JavaDoc startDate;
20     
21     private Date JavaDoc endDate;
22     
23     private String JavaDoc clientName;
24     
25     private Car car;
26
27     public Car getCar() {
28         return car;
29     }
30
31     public void setCar(Car car) {
32         this.car = car;
33     }
34
35     public String JavaDoc getClientName() {
36         return clientName;
37     }
38
39     public void setClientName(String JavaDoc clientName) {
40         this.clientName = clientName;
41     }
42
43     public Date JavaDoc getEndDate() {
44         return endDate;
45     }
46
47     public void setEndDate(Date JavaDoc endDate) {
48         this.endDate = endDate;
49     }
50
51     public Date JavaDoc getStartDate() {
52         return startDate;
53     }
54
55     public void setStartDate(Date JavaDoc startDate) {
56         this.startDate = startDate;
57     }
58
59     public Reservation(Date JavaDoc startDate, Date JavaDoc endDate, String JavaDoc clientName, Car car) {
60         super();
61         this.startDate = startDate;
62         this.endDate = endDate;
63         this.clientName = clientName;
64         this.car = car;
65     }
66     
67     public String JavaDoc toString(){
68         return "anass";
69     }
70     
71 }
72
Popular Tags