KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > ojb > broker > Task


1 package org.apache.ojb.broker;
2
3 import java.io.Serializable JavaDoc;
4
5 public class Task implements Serializable JavaDoc
6 {
7     private int task_id;
8     
9     private int person_id;
10
11     private int project_id;
12
13     private String JavaDoc taskName;
14     
15     private Role role;
16
17     public Task()
18     {
19     }
20
21     public Task(int pTaskId, int pPersonId, int pProjectId, String JavaDoc pTaskname)
22     {
23         task_id = pTaskId;
24         person_id = pPersonId;
25         project_id = pProjectId;
26         taskName = pTaskname;
27     }
28
29
30     public int getTask_id()
31     {
32         return task_id;
33     }
34
35     public void setTask_id(int task_id)
36     {
37         this.task_id = task_id;
38     }
39
40     public String JavaDoc getTaskName()
41     {
42         return taskName;
43     }
44
45     public void setTaskName(String JavaDoc taskName)
46     {
47         this.taskName = taskName;
48     }
49
50     public int getPerson_id()
51     {
52         return person_id;
53     }
54
55     public void setPerson_id(int person_id)
56     {
57         this.person_id = person_id;
58     }
59
60     public int getProject_id()
61     {
62         return project_id;
63     }
64
65     public void setProject_id(int project_id)
66     {
67         this.project_id = project_id;
68     }
69
70     public Role getRole()
71     {
72         return role;
73     }
74
75     public void setRole(Role role)
76     {
77         this.role = role;
78     }
79
80     public String JavaDoc toString()
81     {
82         return taskName + " has the " + role.getRoleName() + " role assigned to it.";
83     }
84 }
85
Popular Tags