View Javadoc

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   * @author Martin
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       * @return the name
41       */
42      public String getName() {
43          return name;
44      }
45  
46      /**
47       * @param name
48       *                the name to set
49       */
50      public void setName(String name) {
51          this.name = name;
52      }
53  
54      /**
55       * @return the subject
56       */
57      public String getSubject() {
58          return subject;
59      }
60  
61      /**
62       * @param subject
63       *                the subject to set
64       */
65      public void setSubject(String subject) {
66          this.subject = subject;
67      }
68  
69      /**
70       * @return the generated
71       */
72      public Timestamp getGenerated() {
73          return generated;
74      }
75  
76      /**
77       * @param generated
78       *                the generated to set
79       */
80      public void setGenerated(Timestamp generated) {
81          this.generated = generated;
82      }
83  
84      /**
85       * @return the testID
86       */
87      public Integer getTestID() {
88          return testID;
89      }
90  
91      /**
92       * @param testID
93       *                the testID to set
94       */
95      public void setTestID(Integer testID) {
96          this.testID = testID;
97      }
98  
99      /**
100      * @return the userID
101      */
102     public Integer getUserID() {
103         return userID;
104     }
105 
106     /**
107      * @param userID
108      *                the userID to set
109      */
110     public void setUserID(Integer userID) {
111         this.userID = userID;
112     }
113 
114     /**
115      * @return the categoryID
116      */
117     public Integer getCategoryID() {
118         return categoryID;
119     }
120 
121     /**
122      * @param categoryID
123      *                the categoryID to set
124      */
125     public void setCategoryID(Integer categoryID) {
126         this.categoryID = categoryID;
127     }
128 
129     /**
130      * @return the questionPoints
131      */
132     public ArrayList<QuestionPoints> getQuestionPoints() {
133         return questionPoints;
134     }
135 
136     /**
137      * @param questionPoints
138      *                the questionPoints to set
139      */
140     public void setQuestionPoints(ArrayList<QuestionPoints> questionPoints) {
141         this.questionPoints = questionPoints;
142     }
143 
144     /* (non-Javadoc)
145      * @see java.lang.Object#toString()
146      */
147     @Override
148     public String toString() {
149         return this.name;
150     }
151 }