Source Code Cross Referenced for OJBStep.java in  » Workflow-Engines » OSWorkflow » com » opensymphony » workflow » spi » ojb » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Workflow Engines » OSWorkflow » com.opensymphony.workflow.spi.ojb 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * Copyright (c) 2002-2003 by OpenSymphony
003:         * All rights reserved.
004:         */
005:        package com.opensymphony.workflow.spi.ojb;
006:
007:        import com.opensymphony.workflow.spi.Step;
008:
009:        import java.util.Date;
010:        import java.util.Iterator;
011:        import java.util.List;
012:
013:        /**
014:         * @author picard
015:         * Created on 9 sept. 2003
016:         */
017:        public abstract class OJBStep implements  Step {
018:            //~ Instance fields ////////////////////////////////////////////////////////
019:
020:            Date dueDate;
021:            Date finishDate;
022:            Date startDate;
023:            List previousSteps;
024:            OJBWorkflowEntry entry;
025:            String caller;
026:            String owner;
027:            String status;
028:            int actionId;
029:            int stepId;
030:            long entryId;
031:            long id;
032:
033:            //~ Constructors ///////////////////////////////////////////////////////////
034:
035:            public OJBStep() {
036:                super ();
037:            }
038:
039:            public OJBStep(OJBStep step) {
040:                this .actionId = step.getActionId();
041:                this .caller = step.getCaller();
042:                this .finishDate = step.getFinishDate();
043:                this .dueDate = step.getDueDate();
044:                this .startDate = step.getStartDate();
045:                this .id = step.getId();
046:                this .owner = step.getOwner();
047:                this .status = step.getStatus();
048:                this .stepId = step.getStepId();
049:                this .previousSteps = step.getPreviousSteps();
050:            }
051:
052:            //~ Methods ////////////////////////////////////////////////////////////////
053:
054:            public void setActionId(int i) {
055:                actionId = i;
056:            }
057:
058:            public int getActionId() {
059:                return actionId;
060:            }
061:
062:            public void setCaller(String string) {
063:                caller = string;
064:            }
065:
066:            public String getCaller() {
067:                return caller;
068:            }
069:
070:            public void setDueDate(Date date) {
071:                dueDate = date;
072:            }
073:
074:            public Date getDueDate() {
075:                return dueDate;
076:            }
077:
078:            public void setEntry(OJBWorkflowEntry entry) {
079:                this .entry = entry;
080:            }
081:
082:            public OJBWorkflowEntry getEntry() {
083:                return entry;
084:            }
085:
086:            public void setEntryId(long l) {
087:                entryId = l;
088:            }
089:
090:            public long getEntryId() {
091:                return entryId;
092:            }
093:
094:            public void setFinishDate(Date date) {
095:                finishDate = date;
096:            }
097:
098:            public Date getFinishDate() {
099:                return finishDate;
100:            }
101:
102:            public void setId(long l) {
103:                id = l;
104:            }
105:
106:            public long getId() {
107:                return id;
108:            }
109:
110:            public void setOwner(String string) {
111:                owner = string;
112:            }
113:
114:            public String getOwner() {
115:                return owner;
116:            }
117:
118:            public long[] getPreviousStepIds() {
119:                if (previousSteps == null) {
120:                    return new long[0];
121:                }
122:
123:                long[] previousStepIds = new long[previousSteps.size()];
124:                int i = 0;
125:
126:                for (Iterator iterator = previousSteps.iterator(); iterator
127:                        .hasNext();) {
128:                    OJBStep ojbStep = (OJBStep) iterator.next();
129:                    previousStepIds[i] = ojbStep.getId();
130:                    i++;
131:                }
132:
133:                return previousStepIds;
134:            }
135:
136:            public void setPreviousSteps(List list) {
137:                previousSteps = list;
138:            }
139:
140:            public List getPreviousSteps() {
141:                return previousSteps;
142:            }
143:
144:            public void setStartDate(Date date) {
145:                startDate = date;
146:            }
147:
148:            public Date getStartDate() {
149:                return startDate;
150:            }
151:
152:            public void setStatus(String string) {
153:                status = string;
154:            }
155:
156:            public String getStatus() {
157:                return status;
158:            }
159:
160:            public void setStepId(int i) {
161:                stepId = i;
162:            }
163:
164:            public int getStepId() {
165:                return stepId;
166:            }
167:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.