KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > opensymphony > workflow > spi > hibernate > HibernateWorkflowEntry


1 /*
2  * Copyright (c) 2002-2003 by OpenSymphony
3  * All rights reserved.
4  */

5 package com.opensymphony.workflow.spi.hibernate;
6
7 import com.opensymphony.workflow.spi.WorkflowEntry;
8
9 import java.util.List JavaDoc;
10
11
12 /**
13  *
14  *
15  * @author $Author: hani $
16  * @version $Revision: 1.5 $
17  */

18 public class HibernateWorkflowEntry implements WorkflowEntry {
19     //~ Instance fields ////////////////////////////////////////////////////////
20

21     List JavaDoc currentSteps;
22     List JavaDoc historySteps;
23     String JavaDoc workflowName;
24     long id = -1;
25     private int state;
26
27     //~ Methods ////////////////////////////////////////////////////////////////
28

29     public void setCurrentSteps(List JavaDoc currentSteps) {
30         this.currentSteps = currentSteps;
31     }
32
33     public List JavaDoc getCurrentSteps() {
34         return currentSteps;
35     }
36
37     public void setHistorySteps(List JavaDoc historySteps) {
38         this.historySteps = historySteps;
39     }
40
41     public List JavaDoc getHistorySteps() {
42         return historySteps;
43     }
44
45     public void setId(long id) {
46         this.id = id;
47     }
48
49     public long getId() {
50         return id;
51     }
52
53     public boolean isInitialized() {
54         return state > 0;
55     }
56
57     public void setState(int state) {
58         this.state = state;
59     }
60
61     public int getState() {
62         return state;
63     }
64
65     public void setWorkflowName(String JavaDoc workflowName) {
66         this.workflowName = workflowName;
67     }
68
69     public String JavaDoc getWorkflowName() {
70         return workflowName;
71     }
72 }
73
Popular Tags