-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPerformance.java
88 lines (70 loc) · 1.49 KB
/
Performance.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
import java.sql.*;
public class Performance extends Product{
private Place place;
private int placeNum;
private Schedule schedule;
private Host host;
private int cost;
private String name;
private String description;
public Performance(int placeNum, Host host, Schedule schedule, String name, int cost, String description){
this.placeNum = placeNum;
this.place = new Place(placeNum);
this.host = host;
this.name = name;
this.schedule = schedule;
this.cost = cost;
this.description = description;
}
public Place getPlace() {
return place;
}
public void setPlace(Place place) {
this.place = place;
}
public int getPlaceNum() {
return placeNum;
}
public void setPlaceNum(int placeNum) {
this.placeNum = placeNum;
}
public Schedule getSchedule() {
return schedule;
}
public void setSchedule(Schedule schedule) {
this.schedule = schedule;
}
public Host getHost() {
return host;
}
public void setHost(Host host) {
this.host = host;
}
public int getCost() {
return cost;
}
public void setCost(int cost) {
this.cost = cost;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
@Override
public String getProductName() {
return this.getName();
}
@Override
public Performance getPerformance() {
// TODO Auto-generated method stub
return this;
}
}