KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > za > co > csir > icomtek > workflow > WorkflowData


1 package za.co.csir.icomtek.workflow;
2
3 import za.co.csir.icomtek.workflow.model.State;
4 import za.co.csir.icomtek.workflow.model.Workflow;
5
6 import java.io.Serializable JavaDoc;
7
8 /**
9  * @hibernate.class
10  * table="CSIR_WORKFLOW_DATA"
11  */

12 public class WorkflowData implements Serializable JavaDoc {
13
14     private Long JavaDoc id;
15     private Long JavaDoc linkId;
16     private String JavaDoc workflowName;
17     private String JavaDoc currentState;
18     private String JavaDoc currentStateDescription;
19     private long version;
20
21     /**
22      * No arg constructor for hibernate
23      */

24     public WorkflowData () {}
25
26     /**
27      * Gets the value of id
28      *
29      * @return the value of id
30      * @hibernate.id
31      * generator-class="native"
32      * column="ID"
33      */

34     public Long JavaDoc getId() {
35         return this.id;
36     }
37
38     /**
39      * Sets the value of id
40      *
41      * @param argId Value to assign to this.id
42      */

43     public void setId(Long JavaDoc argId){
44         this.id = argId;
45     }
46
47     /**
48      * Gets the value of linkId
49      *
50      * @return the value of linkId
51      * @hibernate.property
52      * column="LINK_ID"
53      */

54     public Long JavaDoc getLinkId() {
55         return this.linkId;
56     }
57
58     /**
59      * Sets the value of linkId
60      *
61      * @param argId Value to assign to this.id
62      */

63     public void setLinkId(Long JavaDoc argId){
64         this.linkId = argId;
65     }
66
67     /**
68      * Gets the value of workflowName
69      *
70      * @return the value of workflowName
71      * @hibernate.property
72      * column="WORKFLOW_NAME"
73      */

74     public String JavaDoc getWorkflowName() {
75         return this.workflowName;
76     }
77
78     /**
79      * Sets the value of workflowName
80      *
81      * @param argWorkflowName Value to assign to this.workflowName
82      */

83     public void setWorkflowName(String JavaDoc argWorkflowName){
84         this.workflowName = argWorkflowName;
85     }
86
87
88     /**
89      * Gets the value of current state
90      *
91      * @return the value of state
92      * @hibernate.property
93      * column="CURRENT_STATE"
94      */

95     public String JavaDoc getCurrentState() {
96         return this.currentState;
97     }
98
99     /**
100      * Sets the value of current state
101      *
102      * @param currentState Value to assign to this.currentState
103      */

104     public void setCurrentState(String JavaDoc currentState){
105         this.currentState = currentState;
106     }
107
108     /**
109      * Gets the value of current state description
110      *
111      * @return the value of state
112      * @hibernate.property
113      * column="CURRENT_STATE_DESC"
114      */

115     public String JavaDoc getCurrentStateDescription() {
116         return this.currentStateDescription;
117     }
118
119     /**
120      * Sets the value of current state descrition
121      *
122      * @param currentStateDescrition Value to assign to this.currentStateDescrition
123      */

124     public void setCurrentStateDescription(String JavaDoc currentStateDescription){
125         this.currentStateDescription = currentStateDescription;
126     }
127
128     public Workflow getWorkflow () {
129         return WorkflowEvaluator.getWorkflow(workflowName);
130     }
131
132     /**
133      * Gets the value of version
134      *
135      * @return the value of version
136      * @hibernate.version
137      * column="VERSION"
138      * type="long"
139      */

140     public long getVersion() {
141         return this.version;
142     }
143
144     /**
145      * Sets the value of version
146      *
147      * @param version Value to assign to this.version
148      */

149     public void setVersion(long version){
150         this.version = version;
151     }
152 }
153
Popular Tags