1
2
3
4 package sk.stuba.fiit.foo07.genex.beans;
5
6 import java.sql.Timestamp;
7 import java.util.ArrayList;
8
9
10
11
12
13 public class Test {
14 private String name;
15 private String subject;
16 private Timestamp generated;
17 private Integer testID;
18 private Integer userID;
19 private Integer categoryID;
20 private ArrayList<QuestionPoints> questionPoints;
21
22 public Test() {
23
24 }
25
26 public Test(String name, String subject, Timestamp generated,
27 Integer testID, Integer userID, Integer categoryID,
28 ArrayList<QuestionPoints> questionPoints) {
29 super();
30 this.name = name;
31 this.subject = subject;
32 this.generated = generated;
33 this.testID = testID;
34 this.userID = userID;
35 this.categoryID = categoryID;
36 this.questionPoints = questionPoints;
37 }
38
39
40
41
42 public String getName() {
43 return name;
44 }
45
46
47
48
49
50 public void setName(String name) {
51 this.name = name;
52 }
53
54
55
56
57 public String getSubject() {
58 return subject;
59 }
60
61
62
63
64
65 public void setSubject(String subject) {
66 this.subject = subject;
67 }
68
69
70
71
72 public Timestamp getGenerated() {
73 return generated;
74 }
75
76
77
78
79
80 public void setGenerated(Timestamp generated) {
81 this.generated = generated;
82 }
83
84
85
86
87 public Integer getTestID() {
88 return testID;
89 }
90
91
92
93
94
95 public void setTestID(Integer testID) {
96 this.testID = testID;
97 }
98
99
100
101
102 public Integer getUserID() {
103 return userID;
104 }
105
106
107
108
109
110 public void setUserID(Integer userID) {
111 this.userID = userID;
112 }
113
114
115
116
117 public Integer getCategoryID() {
118 return categoryID;
119 }
120
121
122
123
124
125 public void setCategoryID(Integer categoryID) {
126 this.categoryID = categoryID;
127 }
128
129
130
131
132 public ArrayList<QuestionPoints> getQuestionPoints() {
133 return questionPoints;
134 }
135
136
137
138
139
140 public void setQuestionPoints(ArrayList<QuestionPoints> questionPoints) {
141 this.questionPoints = questionPoints;
142 }
143
144
145
146
147 @Override
148 public String toString() {
149 return this.name;
150 }
151 }