KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > example > cmp > transaction > StudentJavaBean


1 package example.cmp.transaction;
2
3 import java.util.*;
4
5 import java.security.*;
6
7 /**
8  * Holds Student Information to be displayed on the presenation layer XTP page
9  */

10 public class StudentJavaBean implements Principal {
11
12   public StudentJavaBean(int id, String name, String gender)
13   {
14     this.setId(id);
15     this.setName(name);
16     this.setGender(gender);
17   }
18
19   public int getId()
20   {
21     return this.id;
22   }
23
24   public void setId(int id)
25   {
26     this.id = id;
27   }
28
29   public String getName()
30   {
31     return this.name;
32   }
33
34   public void setName(String name)
35   {
36     this.name = name;
37   }
38
39   public String getGender()
40   {
41     return this.gender;
42   }
43
44   public void setGender(String gender)
45   {
46     this.gender = gender;
47   }
48
49   public Collection getSelectedCourses()
50   {
51     return this.selectedCourses;
52   }
53
54   public void setSelectedCourses(Collection selectedCourses)
55   {
56     this.selectedCourses = selectedCourses;
57   }
58
59   public Collection getAvailableCourses()
60   {
61     return availableCourses;
62   }
63
64   public void setAvailableCourses(Collection availableCourses)
65   {
66     this.availableCourses = availableCourses;
67   }
68
69   public Collection getEnrolledCourses()
70   {
71     return enrolledCourses;
72   }
73
74   public void setEnrolledCourses(Collection enrolledCourses)
75   {
76     this.enrolledCourses = enrolledCourses;
77   }
78
79   private int id;
80   private String name;
81   private String gender;
82   private Collection selectedCourses;
83   private Collection enrolledCourses;
84   private Collection availableCourses;
85 }
86
Popular Tags